early-roguelike/rogue4
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 rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
armor.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
chase.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
command.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
configure.ac Generate text documentation from the troff source files. 2016-02-21 20:47:12 -05:00
daemon.c Daemons and fuses now return void. 2016-03-05 20:49:37 -05:00
daemons.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
extern.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
extern.h rogue4: add more function declarations. 2016-01-28 18:55:47 -05:00
fight.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
findpw.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
init.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
io.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
LICENSE.TXT Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
list.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
mach_dep.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
main.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
Makefile.in Makefiles: don't rely on built-in implicit rules. 2016-03-08 19:45:41 -05:00
mdport.c rogue4: add more function declarations. 2016-01-28 18:55:47 -05:00
misc.c Declare some function arguments as const. 2016-03-06 19:32:47 -05:00
monsters.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
move.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
new_level.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
options.c Use uniform return types for functions related to options. 2016-03-06 14:45:18 -05:00
pack.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
passages.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
potions.c Rogue V4, V5: disable a cheat granting permanent monster detection. 2016-03-05 12:10:20 -05:00
prob.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
rings.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
rip.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
rogue.6.in Generate text documentation from the troff source files. 2016-02-21 20:47:12 -05:00
rogue.h Rogue V4: add two more function declarations. 2016-03-07 19:26:08 -05:00
rogue.me.in rogue4: ported to autoconf. 2011-10-11 15:20:40 +00:00
rogue4.vcxproj Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rogue4.vcxproj.filters Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rooms.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
save.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
scrolls.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
state.c Fix some functions not returning the right type. 2016-03-19 16:18:58 -04:00
sticks.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
things.c Rogue V4, V5: fix messages when viewing the identified items. 2016-04-24 13:33:17 -04:00
vers.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
weapons.c rogue4: fix most GCC5 warnings. 2016-01-27 19:41:05 -05:00
wizard.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
xcrypt.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00
xstr.c Import Rogue 5.2 from the Roguelike Restoration Project (r1490) 2009-10-24 16:52:52 +00:00