Bug 2735 - limit adv maurader zaps to LEVEL2_AREAZAP_DMG
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P2 normal
Assignee: Tim Angus
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2006-06-08 17:33 EDT by Tony J. White
Modified: 2006-06-11 15:09:20 EDT
1 user (show)

See Also:


Attachments
svn789 zap cap (1.22 KB, patch)
2006-06-08 17:35 EDT, Tony J. White
svn790 oops (332 bytes, patch)
2006-06-10 19:26 EDT, Tony J. White

Description Tony J. White 2006-06-08 17:33:44 EDT
There are instances where a maurader can end up handing out more that 80 damage total for a zap.

See: http://tremulous.net/phpBB2/viewtopic.php?t=806

This patch tracks the total damage each zap_t has dealt and puts a cap of LEVEL2_AREAZAP_DMG on it.
Comment 1 Tony J. White 2006-06-08 17:35:02 EDT
Created attachment 927 [details]
svn789 zap cap
Comment 2 Tim Angus 2006-06-10 13:08:47 EDT
Hmm, good catch.
Comment 3 Tony J. White 2006-06-10 19:26:37 EDT
Created attachment 934 [details]
svn790 oops

Sorry, bad patch.  I didn't initialize zap->damageUsed when a new zap_t is created.
Comment 4 Tim Angus 2006-06-11 15:09:20 EDT
Heh, don't worry about it. That's the sort of stupid crap I manage on a daily basis :).