Akció animációk

This commit is contained in:
markojozsef
2026-10-05 17:49:18 +02:00
parent 6a91d3e6db
commit c9b7c0c001
3 changed files with 47 additions and 22 deletions

View File

@@ -39,12 +39,13 @@ class StatusChange:
# where = reference to the target, who = reference to the inflictor
class Action:
def __init__(self, name, who, where, damage, status):
self.name = name
self.who = who
self.where = where
self.damage = damage
self.status = status
def __init__(self, name, who, where, damage, status, animation):
self.name = name
self.who = who
self.where = where
self.damage = damage
self.status = status
self.animation = animation
def __str__(self):
return (
@@ -113,4 +114,4 @@ class Action:
target.ko = True
target.stone = False
target.def_up = False
print(f" -> {target.name} got hurt and collapsed!")
print(f" -> {target.name} got hurt and collapsed!")