Well, I tested it, and there is no text spam... or any notification really. The only real sign someone has been completely drained is that they can no longer wiggle around inside by moving. Hmm, I could make a message that pops up once when they're weakened and put a condition that is impossible to have more than one in a single drain... unless they turn it off and turn it back on (But then it would be another instance, so... I dunno). I'll try to tinker a bit and see what I can do.
Another thing I notice is that draining someone by 3 points per tick would probably be a very slow process to drain someone to the point of weakening. I could turn it up to 5 or 10 where it can fairly easily be reached in a matter of minutes instead of what seems to be a quarter of an hour.
Edit: And I did it! I should probably update the post's code now. Anyway, here is the new drain code. As for 10 nutrients per tick, I think it's a pretty good number for feeding the predator fairly quick while giving enough ample time for the pred to react before it hits the threshold.
- Code: Select all
//STOMACH DRAIN
if(iscarbon(M) && owner.stat != DEAD && digest_mode == DM_DRAIN && M.stat != DEAD)
if(air_master.current_cycle%3==1)
if(!(M.status_flags & GODMODE))
if(M.nutrition > 90)
owner.nutrition += 10 // I took it from the womb code because I'm SOOOO clever... Edit the values and the code to your heart's content. -Daisy
M.nutrition -= 10
else if (M.nutrition <= 90)
if (M.weakened == 0) // If they were weakened before and they're that hungry, both of you are probably not going to notice a difference.
owner << "<span class='notice'>You feel [M]'s struggles dying down as their body is drained almost completely to the point of exaustion.</span>" //Pred's message.
M << "<span class='notice'>Your body feels too weak to offer any significant resistance inside of [owner]'s stomach.</span>" //Prey's message.
M.Weaken(10)
else
M.Weaken(10) // Knocked down, but still able to talk and emote clearly.Keeps resetting to 10 until free.
If anyone has a better message when they become weakened via draining, I'd like to hear it... really! I don't think mine are that good and a better message would be appreciated. Anyway, there it is!