home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
64cf00e
)
Spawn Psychedelics, Stimulants from BottleDeposit too.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 20 Dec 2020 15:39:34 +0000
(16:39 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 20 Dec 2020 15:39:34 +0000
(16:39 +0100)
plomrogue/things.py
patch
|
blob
|
history
diff --git
a/plomrogue/things.py
b/plomrogue/things.py
index 3c8f09da72ff02bd96584ae4297cfc053c6499e7..3a72ca31728dfd72ebeb8e6cd8b23510db34615c 100644
(file)
--- a/
plomrogue/things.py
+++ b/
plomrogue/things.py
@@
-449,13
+449,15
@@
class Thing_BottleDeposit(Thing):
def proceed(self):
if self.bottle_counter >= 3:
self.bottle_counter = 0
def proceed(self):
if self.bottle_counter >= 3:
self.bottle_counter = 0
- choice = random.choice(['MusicPlayer', 'Hat'])
+ choice = random.choice(['MusicPlayer', 'Hat'
, 'Stimulant', 'Psychedelic'
])
self.game.add_thing(choice, self.position)
msg = 'here is a gift as a reward for ecological consciousness –'
if choice == 'MusicPlayer':
msg += 'pick it up and then use "command thing" on it!'
elif choice == 'Hat':
msg += 'pick it up and then use "(un-)wear" on it!'
self.game.add_thing(choice, self.position)
msg = 'here is a gift as a reward for ecological consciousness –'
if choice == 'MusicPlayer':
msg += 'pick it up and then use "command thing" on it!'
elif choice == 'Hat':
msg += 'pick it up and then use "(un-)wear" on it!'
+ elif choice in {'Psychedelic', 'Stimulant'}:
+ msg += 'pick it up and then use "consume" on it!'
self.sound('BOTTLE DEPOSITOR', msg)
def accept(self):
self.sound('BOTTLE DEPOSITOR', msg)
def accept(self):