X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomrogue%2Fthings.py;h=46ea770ab302994272afe7d83612ba5204dd0d18;hb=69849fbd3ecdf9f937d1353a8ffbd96bfb44b742;hp=2c3f540443b46fbca6b4aee5170619d53d287d59;hpb=2dc444966037a42b51ed190ab0eab88a09c0282a;p=plomrogue2 diff --git a/plomrogue/things.py b/plomrogue/things.py index 2c3f540..46ea770 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -174,6 +174,21 @@ class ThingInstallable(Thing): +class Thing_SignSpawner(ThingSpawner): + child_type = 'Sign' + + + +class Thing_Sign(ThingInstallable): + symbol_hint = '?' + design_size = YX(16, 36) + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.design = 'x' * self.design_size.y * self.design_size.x + + + class Thing_DoorSpawner(ThingSpawner): child_type = 'Door' @@ -276,6 +291,7 @@ class Thing_Hat(Thing): design = ' +--+ ' + ' | | ' + '======' spinnable = True cookable = True + design_size = YX(3, 6) def spin(self): new_design = ''