feature: verarbeite kritische Treffer auch bei großen Bauteilen
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import enum
|
||||
|
||||
from MechFabrik.bauteile.items import Item, ItemStatus
|
||||
from MechFabrik.bauteile.items import Gyroskope, Item, ItemStatus
|
||||
|
||||
|
||||
class ZoneNames(enum.Enum):
|
||||
@@ -144,11 +144,11 @@ class CriticalStrikeEvent:
|
||||
self.__dict__['_zone'].state = AreaStatus.DAMAGED
|
||||
self.__dict__['_area'].state = AreaStatus.DAMAGED
|
||||
item = self.__dict__['_area'].items[self.__dict__['_index']]
|
||||
if item is None:
|
||||
if item is None or item.state == ItemStatus.DESTROYED:
|
||||
self.__dict__['_item_is_empty'] = True
|
||||
else:
|
||||
self.__dict__['_item_is_empty'] = False
|
||||
item.state = ItemStatus.DESTROYED
|
||||
item.process_strike()
|
||||
return self
|
||||
|
||||
def is_empty(self):
|
||||
|
||||
Reference in New Issue
Block a user