[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Proposal: Changes to DruidNoWeaponDrop.uc  XML
Forum Index -> Druids RPG Development
Author Message
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

In order to fix some annoyances (not necessarily full blown bugs, but potentially) in Denial and Ghost which will occur until we come up with a more workable solution to what I've come to call the ?Death Order issue, I'd like to add:

Code:
 // Fix for Denial before Ghost - this does icky things if we don't run ghost first.
 // Once we "fix" ?death, things like this won't be an issue.
 	StatsInv = RPGStatsInv(Killed.FindInventoryType(class'RPGStatsInv'));
 // Loop through - stop when you find ghost.  If you've found denial by then, then
 // you have Denial before Ghost and Ghost needs to run first.
 	if (StatsInv != None)
 	{
 		for (y = 0; y < StatsInv.Data.Abilities.length && !gotghost; y++)
 		{
 			if (StatsInv.Data.Abilities[y] == class'DruidNoWeaponDrop')
 			{
 				gotdenial = true;
 			}
 			if (StatsInv.Data.Abilities[y] == class'DruidGhost')
 			{
 				gotghost = true;
 				GhostLevel = StatsInv.Data.AbilityLevels[y];
 			}
 		}
 	}
 
 	if (gotghost && gotdenial)
 	{
 // If DruidGhost returns true, we need to return true - and the bAP check in Ghost
 // should result in DruidGhost's PD (when run by RPGRules) doing nothing.
 		if(class'DruidGhost'.static.PreventDeath(Killed, Killer, DamageType, HitLocation, GhostLevel, bAlreadyPrevented))
 			return true;
 	}
 // End Denial before Ghost fix.
 

After the 'bAlreadyPrevented' check in DruidNoWeaponDrop's PreventDeath function.

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

I can't see any immediate problems with it. It should plug a hole for the time being.

In the long term, if/when we get a more comprehensive solution to the PreventDeath ordering problems, then code will have to come back out. But, until then, I say go for it.
TheDruidXpawX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:32:13
Messages: 1946
Offline

I like it. Check it in

Skin download: http://www.disastrousconsequences.com/dcforum/posts/list/1189.page

The fundamental problem is this: The first word we learn as children is NO. From that point forward society teaches women that saying no isn't polite, and society teaches men to respect those who wont take no for an answer.

The world is what you make of it, my friend. If it doesn't fit, you make alterations. -- Stella, The Morning Star
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Do you want me look at slipping it in to anything else? Do we want to implement the LA Pinata fix using this or do we want to wait until we've developed DruidRPGRules and DruidRPGAbility?

For question two, I'd vote option "B" but if you want Pinata fixed "now" I think I could rig something up.

As for question one, I don't think there's anything that screams "Fix this now!" as far as I can remember ...

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
 
Forum Index -> Druids RPG Development
Go to: