I'm trying to modify damage numbers during battle, but I'm running into a problem where, whenever I write an "if" statement, the thing I'm "iffing" always ends up happening, regardless of whether the "if" condition is actually met. For example, if I write:
then "self.damage" always returns 100, regardless of the value of skill.power, just because it was what was calculated last. Similarly, if I write:
then "self.damage" always returns 25. What am I doing wrong? I can't figure it out.
if skill.power = 2
self.damage = 25
elsif skill.power = 3
self.damage = 100
end
then "self.damage" always returns 100, regardless of the value of skill.power, just because it was what was calculated last. Similarly, if I write:
if skill.power = 3
self.damage = 100
elsif skill.power = 2
self.damage = 25
end
then "self.damage" always returns 25. What am I doing wrong? I can't figure it out.