* Fixes compile issues with vore code * Update voreconstants.dm * Update resize_vr.dm * Update tgstation.dme * Update parrot.dm * Update pet.dm * Update fox.dm * Update mouse.dm * Update farm_animals.dm * Update dog.dm * Update cat.dm * Update monkey.dm * Update alien.dm * Update vore_vr.dm * Update vorepanel_vr.dm * Update bellymodes_vr.dm * Update belly_vr.dm * Update living_vr.dm * Update voreconstants.dm * Update fox.dm
73 lines
2.5 KiB
Plaintext
73 lines
2.5 KiB
Plaintext
// Process the predator's effects upon the contents of its belly (i.e digestion/transformation etc)
|
|
// Called from /mob/living/Life() proc.
|
|
/datum/belly/proc/process_Life()
|
|
|
|
/////////////////////////// Auto-Emotes ///////////////////////////
|
|
if((digest_mode in emote_lists) && !emotePend)
|
|
emotePend = TRUE
|
|
|
|
spawn(emoteTime)
|
|
var/list/EL = emote_lists[digest_mode]
|
|
for(var/mob/living/M in internal_contents)
|
|
M << "<span class='notice'>[pick(EL)]</span>"
|
|
src.emotePend = FALSE
|
|
|
|
///////////////////////////// DM_HOLD /////////////////////////////
|
|
if(digest_mode == DM_HOLD)
|
|
return //Pretty boring, huh
|
|
|
|
//////////////////////////// DM_DIGEST ////////////////////////////
|
|
if(digest_mode == DM_DIGEST)
|
|
|
|
if(prob(50))
|
|
playsound(owner.loc, "digestion_sounds", 50, 0, -5)
|
|
|
|
for (var/mob/living/M in internal_contents)
|
|
//Pref protection!
|
|
if (!M.digestable)
|
|
continue
|
|
|
|
//Person just died in guts!
|
|
if(M.stat == DEAD)
|
|
var/digest_alert_owner = pick(digest_messages_owner)
|
|
var/digest_alert_prey = pick(digest_messages_prey)
|
|
|
|
//Replace placeholder vars
|
|
digest_alert_owner = replacetext(digest_alert_owner,"%pred",owner)
|
|
digest_alert_owner = replacetext(digest_alert_owner,"%prey",M)
|
|
digest_alert_owner = replacetext(digest_alert_owner,"%belly",lowertext(name))
|
|
|
|
digest_alert_prey = replacetext(digest_alert_prey,"%pred",owner)
|
|
digest_alert_prey = replacetext(digest_alert_prey,"%prey",M)
|
|
digest_alert_prey = replacetext(digest_alert_prey,"%belly",lowertext(name))
|
|
|
|
//Send messages
|
|
to_chat(owner, "<span class='warning'>[digest_alert_owner]</span>")
|
|
M.visible_message("<span class='notice'>You watch as [owner]'s form loses its additions.</span>", "<span class='warning'>[digest_alert_prey]</span>")
|
|
|
|
owner.nutrition += 400 // so eating dead mobs gives you *something*.
|
|
playsound(owner.loc, "death_gurgles", 50, 0, -5)
|
|
digestion_death(M)
|
|
owner.update_icons()
|
|
continue
|
|
|
|
|
|
// Deal digestion damage (and feed the pred)
|
|
if(!(M.status_flags & GODMODE))
|
|
M.adjustFireLoss(1)
|
|
owner.nutrition += 1
|
|
return
|
|
|
|
///////////////////////////// DM_HEAL /////////////////////////////
|
|
if(digest_mode == DM_HEAL)
|
|
if(prob(50))
|
|
playsound(owner.loc, "digestion_sounds", 45, 0, -6) //very quiet gurgles, supposedly.
|
|
|
|
for (var/mob/living/M in internal_contents)
|
|
if(M.stat != DEAD)
|
|
if(owner.nutrition >= NUTRITION_LEVEL_STARVING && (M.health < M.maxHealth))
|
|
M.adjustBruteLoss(-1)
|
|
M.adjustFireLoss(-1)
|
|
owner.nutrition -= 10
|
|
return
|