Blood Spray refills vim before spending

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
complexityQuantifier
Higher
Posts: 56
Joined: Sun Jan 16, 2011 2:52 pm

Blood Spray refills vim before spending

#1 Post by complexityQuantifier »

b25:

If I cast Blood Spray while my vim level is at maximum, it always costs full vim, no matter how many creatures I kill with it (or what I'm targeting). On the other hand, when I'm missing a lot of vim, it's correctly free when I kill with it.

I think that Blood Spray might be somehow refunding its vim cost before you've actually paid the cost? So if your vim was previously full, you don't go over the maximum, and then it drops.

Edit: Actually, this is happening with Blood Boil too; maybe it happens for all area-effects?
Edit: Well, no, it doesn't happen with Darkfire; I guess it's with spells that emanate from you?

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Blood Spray refills vim before spending

#2 Post by yufra »

IIRC the vim recover is a bit difficult to code. The current method is to store the amount and turn you last used vim during, and if the NEXT turn you kill something you recover the vim. This doesn't work for attacks that take time to kill, for example projectiles. Not sure if this is how it works now, though.
<DarkGod> lets say it's intended

Marcotte
Wyrmic
Posts: 203
Joined: Sat Jan 26, 2008 1:12 am

Re: Blood Spray refills vim before spending

#3 Post by Marcotte »

Couldn't the refund cost be stored in a variable that is sent to the projectile (or project), and have the damage code decide on the refund?

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Blood Spray refills vim before spending

#4 Post by yufra »

Marcotte wrote:Couldn't the refund cost be stored in a variable that is sent to the projectile (or project), and have the damage code decide on the refund?
That sounds workable... want to code it? :wink:
<DarkGod> lets say it's intended

Frumple
Sher'Tul Godslayer
Posts: 1517
Joined: Sat May 15, 2010 9:17 pm

Re: Blood Spray refills vim before spending

#5 Post by Frumple »

Just bumping this to say it's still in b31 and apparently effects blood boil as well. I can only assume the issue occurs with all vim-based AoE attacks, not just the ones that inflict damage over time.

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Blood Spray refills vim before spending

#6 Post by greycat »

Swallow also works this way -- you get the EQ back from the monster you eat, and then you're charged the cost of Swallow itself after that, so you always end up at 4 EQ (plus whatever sustains you have) instead of 0.

Post Reply