fix github issue #666 - cursed light vs worn light
Another gold dragon scales/mail issue, reported bu vultur-cadens: reading a cursed scroll of light extinguishes carried light sources except for wielded Sunsword and worn gold dragon scales/mail; there was a special message for Sunsword (preventing the hero from being in darkness) but no such message for gold dragon scales/mail. Replace the special message with a more generic one applicable to both cases. Also, implement the suggestion that cursed light degrade the amount of light being emitted (which varies by bless/curse state) for those two cases. Sunsword has a 75% chance to resist, gold dragon scales 25% chance. And add the inverse: blessed scroll of light might increase the amount of light by improving their bless/curse state. The resistance check applies here too and isn't inverted; Sunsword is still fairly likely to resist. Uncursed scroll of light, spell of light regardless of skill, zapped or broken wand of light have so such effect. Closes #666
This commit is contained in:
@@ -2097,6 +2097,7 @@ extern int dopotion(struct obj *);
|
||||
extern int peffects(struct obj *);
|
||||
extern void healup(int, int, boolean, boolean);
|
||||
extern void strange_feeling(struct obj *, const char *);
|
||||
extern void impact_arti_light(struct obj *, boolean, boolean);
|
||||
extern void potionhit(struct monst *, struct obj *, int);
|
||||
extern void potionbreathe(struct obj *);
|
||||
extern int dodip(void);
|
||||
|
||||
Reference in New Issue
Block a user