Core: Add item.filler helper (#4081)

* Add filler helper

* Update BaseClasses.py
This commit is contained in:
Exempt-Medic 2024-11-28 19:38:53 -05:00 committed by GitHub
parent 3cb5219e09
commit c022c742b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -1262,6 +1262,10 @@ class Item:
def trap(self) -> bool: def trap(self) -> bool:
return ItemClassification.trap in self.classification return ItemClassification.trap in self.classification
@property
def filler(self) -> bool:
return not (self.advancement or self.useful or self.trap)
@property @property
def excludable(self) -> bool: def excludable(self) -> bool:
return not (self.advancement or self.useful) return not (self.advancement or self.useful)