Anim Editor: added play functionality to battle and editor

This commit is contained in:
Maruno17
2024-04-13 16:28:52 +01:00
parent d0e15a8939
commit 44cc500fdc
15 changed files with 1221 additions and 175 deletions

View File

@@ -275,6 +275,29 @@ module GameData
return ret
end
def inspect
ret = super.chop + ": "
case @type
when :move then ret += _INTL("[Move]")
when :opp_move then ret += _INTL("[Foe Move]")
when :common then ret += _INTL("[Common]")
when :opp_common then ret += _INTL("[Foe Common]")
else
raise _INTL("Unknown animation type.")
end
case @type
when :move, :opp_move
move_data = GameData::Move.try_get(@move)
move_name = (move_data) ? move_data.name : @move
ret += " " + move_name
when :common, :opp_common
ret += " " + @move
end
ret += " (" + @version.to_s + ")" if @version > 0
ret += " - " + @name if @name
return ret
end
def move_animation?
return [:move, :opp_move].include?(@type)
end