[pre lang="ruby" line="1"]def str
n = [[base_str + @str_plus, 1].max, 999].min
for i in @states
n *= $data_states.str_rate / 100.0
end
n = [[Integer(n), 1].max, 999].min
return n
end[/pre]
将之改为:
[pre lang="ruby" line="1"]def str
n_max = $game_variables[@actor.id + (@actor.id - 1) * 3 + 100]
n = [[base_str + @str_plus, 1].max, n_max].min
for i in @states
n *= $data_states.str_rate / 100.0
end
n = [[Integer(n), 1].max, n_max].min
return n
end[/pre]
[pre lang="ruby" line="1"]def str
n = [[base_str + @str_plus, 1].max, 999].min
for i in @states
n *= $data_states.str_rate / 100.0
end
n = [[Integer(n), 1].max, 999].min
return n
end[/pre]
将之改为:
[pre lang="ruby" line="1"]def str
n_max = $game_variables[@actor.id + (@actor.id - 1) * 3 + 100]
n = [[base_str + @str_plus, 1].max, n_max].min
for i in @states
n *= $data_states.str_rate / 100.0
end
n = [[Integer(n), 1].max, n_max].min
return n
end[/pre]