X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=plomrogue%2Fthings.py;fp=plomrogue%2Fthings.py;h=6dbe8ef7eee4ccd2d4bb17354895edc0cc584044;hb=cf2a7a164c24e82a5efc4cfe9c56c4b4f2c442df;hp=c538a235d8c4a7d301800563022470b3a41638c7;hpb=1ece82099bbf02faed3d1348d7014b8ed38528a9;p=plomrogue2 diff --git a/plomrogue/things.py b/plomrogue/things.py index c538a23..6dbe8ef 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -28,6 +28,7 @@ class Thing(ThingBase): commandable = False cookable = False carried = False + consumable = False def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -208,6 +209,7 @@ class Thing_Psychedelic(Thing): symbol_hint = 'P' portable = True cookable = True + consumable = True @@ -224,6 +226,7 @@ class Thing_Bottle(Thing): thing_char = '~' spinnable = True cookable = True + consumable = True def empty(self): self.thing_char = '_' @@ -435,9 +438,24 @@ class Thing_BottleDeposit(Thing): +class Thing_Stimulant(Thing): + symbol_hint = 'e' + cookable = True + portable = True + consumable = True + + + +class Thing_StimulantSpawner(ThingSpawner): + symbol_hint = 'e' + child_type = 'Stimulant' + + + class Thing_Cookie(Thing): symbol_hint = 'c' portable = True + consumable = True def __init__(self, *args, **kwargs): import string