early-roguelike/rogue3
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 rogue3: begin porting to autoconf. 2013-08-24 13:36:13 -07:00
armor.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
chase.c rogue3: initialize various pointers. 2015-07-31 15:34:34 -04:00
command.c rogue3, srogue: showing the version should not take a turn. 2012-05-24 05:10:38 +00:00
configure.ac Generate text documentation from the troff source files. 2016-02-21 20:47:12 -05:00
daemon.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
daemons.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
fight.c Rogue V[345], Super-Rogue: Fix violet fungi/venus flytraps. 2016-05-01 19:39:56 -04:00
init.c Don't truncate player name in savefile name or log message. 2014-03-23 21:27:14 -07:00
io.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
LICENSE.TXT Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
list.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
machdep.h rogue3: begin porting to autoconf. 2013-08-24 13:36:13 -07:00
main.c rogue3, rogue5: fix all GCC5 warnings. 2016-01-23 09:35:14 -05:00
Makefile.in Makefiles: don't rely on built-in implicit rules. 2016-03-08 19:45:41 -05:00
mdport.c rogue3: replace alarm() calls with a portable function. 2016-01-22 19:19:48 -05:00
mdport.h rogue3: replace alarm() calls with a portable function. 2016-01-22 19:19:48 -05:00
misc.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
monsters.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
move.c rogue3: initialize various pointers. 2015-07-31 15:34:34 -04:00
newlevel.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
options.c Prevent changing name or save file when using system savedir 2009-10-14 11:21:33 +00:00
pack.c rogue3: initialize various pointers. 2015-07-31 15:34:34 -04:00
passages.c rogue3: initialize various pointers. 2015-07-31 15:34:34 -04:00
potions.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
readme36.html Update the documentation 2009-10-24 14:12:26 +00:00
rings.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
rip.c Remove an extra '='. 2015-07-23 19:28:12 -04:00
rogue.6.in Update some of the documentation. 2013-09-04 09:01:44 -07:00
rogue.h Don't truncate player name in savefile name or log message. 2014-03-23 21:27:14 -07:00
rogue.r.in rogue3: begin porting to autoconf. 2013-08-24 13:36:13 -07:00
rogue3.vcxproj Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rogue3.vcxproj.filters Update the Visual Studio project files. 2015-08-18 13:23:56 -04:00
rogue36.html Further updates to the documentation 2009-10-24 14:21:15 +00:00
rooms.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
save.c Refuse to restore if the character is dead. 2013-08-09 09:34:07 -07:00
scrolls.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
state.c Fix some terribly depressing corruption during restore. 2014-01-08 16:44:16 -05:00
sticks.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
things.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
vers.c Import Rogue 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00
weapons.c rogue3: short bows should not be called int bows. 2013-08-24 13:50:15 -07: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 3.6 from the Roguelike Restoration Project (r1490) 2009-10-13 13:33:34 +00:00