early-roguelike/srogue
John "Elwin" Edwards ca1c442db2 Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps.
Violet fungi (renamed venus flytraps in Rogue V5) do an increasing
amount of damage each time they hit.  If they miss, you still suffer
the same number of HP.  This worked by keeping a counter and printing
new damage strings into monsters[5].m_stats.s_dmg, which is the
"prototype" of that particular monster.

Each individual monster has its own damage string.  Apparently these
were once char *, pointing to the same string as the prototype.  When
the s_dmg member was changed to be an internal char array, changing the
prototype's damage string no longer had any effect on actual monsters.

As a result, flytraps did no damage on a hit, or only one point in V5.
The mechanism for doing damage on a miss continued to work.

This has been fixed by overwriting the individual monster's damage
string instead of the prototype's.  It is now no longer necessary to
reset the damage string when the flytrap is killed.  The method for
resetting it when the hero teleports away had to be modified.  Comments
referencing the long-unused xstr have been removed.
2016-05-01 19:39:56 -04:00
..
acinclude.m4 srogue: begin porting to autoconf. 2013-09-01 20:50:52 -07:00
armor.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
bob.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
bsdtty.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
chase.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
command.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
configure.ac Generate text documentation from the troff source files. 2016-02-21 20:47:12 -05:00
cx.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
daemon.c Daemons and fuses now return void. 2016-03-05 20:49:37 -05:00
daemons.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
disply.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
encumb.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
fight.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
global.c srogue: open the score and log files when the program starts. 2015-08-01 15:12:11 -04:00
init.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
io.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
LICENSE.TXT Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
list.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
main.c Super-Rogue: begin fixing restore failures on Windows. 2016-03-03 21:30:38 -05:00
Makefile.in Makefiles: don't rely on built-in implicit rules. 2016-03-08 19:45:41 -05:00
makevers.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
mdport.c srogue: clean up configuration in mdport.c. 2015-08-03 17:16:42 -04:00
misc.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
monsters.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
move.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
ncx.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
new_leve.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
newterm.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
options.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
pack.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
passages.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
potions.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
pstats.c Fix some functions not returning the right type. 2016-03-19 16:18:58 -04:00
rdk.h Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rgdata.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rings.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
rip.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
rogue.ext Daemons and fuses now return void. 2016-03-05 20:49:37 -05:00
rogue.h Fix various overlooked causes of warnings. 2016-03-06 21:02:59 -05:00
rogue.nr Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
rooms.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
save.c Super-Rogue: fix saving and restoring on Windows. 2016-03-12 14:29:07 -05:00
scrolls.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
srogue.vcxproj Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
srogue.vcxproj.filters Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
state.c Fix some functions not returning the right type. 2016-03-19 16:18:58 -04:00
sticks.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
things.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
trader.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
vers.c Import Super-Rogue 9.0 from the Roguelike Restoration Project (r1490) 2010-11-25 12:21:41 +00:00
weapons.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
wizard.c Super-Rogue: convert to ANSI-style function declarations. 2016-01-31 13:45:07 -05:00
xcrypt.c srogue: more compatibility improvements. 2014-05-03 10:31:30 -07:00