mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add new 4 heart logic for spike cave and misery mire
This commit is contained in:
@@ -368,6 +368,19 @@ class CollectionState(object):
|
||||
def bottle_count(self):
|
||||
return len([pritem for pritem in self.prog_items if pritem.startswith('Bottle')])
|
||||
|
||||
def has_hearts(self, count):
|
||||
# Warning: This oncly considers items that are marked as advancement items
|
||||
return self.heart_count() >= count
|
||||
|
||||
def heart_count(self):
|
||||
# Warning: This oncly considers items that are marked as advancement items
|
||||
return (
|
||||
self.item_count('Boss Heart Container')
|
||||
+ self.item_count('Sanctuary Heart Container')
|
||||
+ self.item_count('Piece of Heart') // 4
|
||||
+ 3 # starting hearts
|
||||
)
|
||||
|
||||
def can_lift_heavy_rocks(self):
|
||||
return self.has('Titans Mitts')
|
||||
|
||||
|
Reference in New Issue
Block a user