Apply state_change() to mirror object.
This commit is contained in:
parent
c4cbb859c2
commit
9eda1f424d
2 changed files with 10 additions and 5 deletions
|
@ -253,7 +253,7 @@ static int vbreak(verb_t verb, obj_t obj)
|
||||||
switch (obj) {
|
switch (obj) {
|
||||||
case MIRROR:
|
case MIRROR:
|
||||||
if (game.closed) {
|
if (game.closed) {
|
||||||
rspeak(BREAK_MIRROR);
|
state_change(MIRROR, MIRROR_BROKEN);
|
||||||
return GO_DWARFWAKE;
|
return GO_DWARFWAKE;
|
||||||
} else {
|
} else {
|
||||||
rspeak(TOO_FAR);
|
rspeak(TOO_FAR);
|
||||||
|
|
|
@ -2883,9 +2883,6 @@ arbitrary_messages: !!omap
|
||||||
information to escape? Sorry, but this initial hint is all you get."
|
information to escape? Sorry, but this initial hint is all you get."
|
||||||
- DONT_UNDERSTAND: &dont_understand 'I''m afraid I don''t understand.'
|
- DONT_UNDERSTAND: &dont_understand 'I''m afraid I don''t understand.'
|
||||||
- HAND_PASSTHROUGH: 'Your hand passes through it as though it weren''t there.'
|
- HAND_PASSTHROUGH: 'Your hand passes through it as though it weren''t there.'
|
||||||
- BREAK_MIRROR: |-
|
|
||||||
You strike the mirror a resounding blow, whereupon it shatters into a
|
|
||||||
myriad tiny fragments.
|
|
||||||
- PROD_DWARF: |-
|
- PROD_DWARF: |-
|
||||||
You prod the nearest dwarf, who wakes up grumpily, takes one look at
|
You prod the nearest dwarf, who wakes up grumpily, takes one look at
|
||||||
you, curses, and grabs for his axe.
|
you, curses, and grabs for his axe.
|
||||||
|
@ -3274,7 +3271,15 @@ objects: !!omap
|
||||||
inventory: '*mirror'
|
inventory: '*mirror'
|
||||||
locations: LOC_MIRRORCANYON
|
locations: LOC_MIRRORCANYON
|
||||||
immovable: true
|
immovable: true
|
||||||
descriptions: !!null
|
states: [MIRROR_UNBROKEN, MIRROR_BROKEN]
|
||||||
|
descriptions:
|
||||||
|
- ''
|
||||||
|
- ''
|
||||||
|
changes:
|
||||||
|
- ''
|
||||||
|
- |-
|
||||||
|
You strike the mirror a resounding blow, whereupon it shatters into a
|
||||||
|
myriad tiny fragments.
|
||||||
- PLANT:
|
- PLANT:
|
||||||
words: ['plant', 'beans']
|
words: ['plant', 'beans']
|
||||||
inventory: '*plant'
|
inventory: '*plant'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue