Commit dbb2863
committed
Fix: double Bell of Opening in Val and Arc quests
This is the result of the fix in 2d4f989 that makes a nemesis who's
about to receive lua-specified inventory drop any special items they may
have already received. In the commit note there I even noted two Bells
could generate if a level developer specified the nemesis gets the Bell
and fails to specify keep_default_invent = true, but also noted that
"two Bells is better than none", which it is - the player who reported
this wasn't facing an unwinnable situation.
Specifying keep_default_invent = true as I did here was not necessary to
fix the two-Bells issue, but does address another problem: that the
default behavior when keep_default_invent is false is to *drop* special
items, meaning the nemesis would either abandon the Bell on the floor or
waste turns warping back to pick it up once they moved off. I considered
doing a more comprehensive fix that would keep the special items in the
nemesis's inventory, but decided not to since it would duplicate code
from mdrop_special_objs.1 parent fc80a50 commit dbb2863
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments