Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Custom Shield Bug ("Each Defend" triggers on checking monster stats)
New Topic New Poll Post Reply
Poster Message
Lucky Luc
Level: Smitemaster
Rank Points: 1215
Registered: 08-19-2012
IP: Logged

File: Custom Shield Oddity.drh (1.3 KB)
Downloaded 43 times.
License: Public Domain
icon Custom Shield Bug (+1)  
So I guess there haven't been any holds with custom shields yet? :huh

Tested with the current release candidate (1.2.6.241).

Attached is a small demo hold using silly custom equipment: A sword that says hi and breaks on its first use, as well as a shield, which does the same and additionally builds some stuff.

This works as expected when fighting a monster. However, try to right-click on a monster and wait one move:

- the shield gets destroyed, but its name sticks around in the inventory
- the northern mud baby gets killed, but there's no visuals
- the bomb gets blown up, but again, no visuals.

Note that the room visuals are fixed when leaving and reentering the room.

Pressing + is even worse: The game will simply crash.

Expected behavior: Each Defend should not be triggered at all on checking monster stats.
02-28-2016 at 10:38 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5058
Registered: 02-04-2003
IP: Logged
icon Re: Custom Shield Bug (0)  
Thanks for the report and the sample hold. Makes the issue so easy to reproduce and test!

Fixed in rev 276. "Each attack/defend" shouldn't get executed while calculating projected fight resolution. There was an "Each defend" case that was missing for the player's armor.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
03-14-2016 at 01:57 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 2670
Registered: 07-11-2014
IP: Logged
icon Re: Custom Shield Bug (+1)  
Can confirm that the provided test hold in the original post works great in 1.2.6.278 :thumbsup

Did notice a different bug that I first mentioned in anohter thread that this hold ends up being a good test case for: http://forum.caravelgames.com/viewtopic.php?TopicID=40876&page=0#404766
03-14-2016 at 09:28 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Custom Shield Bug ("Each Defend" triggers on checking monster stats)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.