finish up the spans (#9605)

This commit is contained in:
Kashargul
2024-12-09 22:51:05 +01:00
committed by GitHub
parent 19bc22ddb3
commit fe4b5ec2cb
80 changed files with 359 additions and 361 deletions
+3 -3
View File
@@ -473,7 +473,7 @@
if(reagents.total_volume >= 5) //CHOMPEdit Start
if(digest_mode == DM_DIGEST && M.digestable)
reagents.trans_to(M, reagents.total_volume * 0.1, 1 / max(LAZYLEN(contents), 1), FALSE)
to_chat(M, "<span class='vwarning'><B>You splash into a pool of [reagent_name]!</B></span>")
to_chat(M, span_vwarning("<B>You splash into a pool of [reagent_name]!</B>"))
if(!isliving(thing) && count_items_for_sprite) //CHOMPEdit - If this is enabled also update fullness for non-living things
owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
//if(istype(thing, /obj/item/capture_crystal)) //CHOMPEdit start: Capture crystal occupant gets to see belly text too. Moved to modular_chomp capture_crystal.dm.
@@ -484,7 +484,7 @@
//formatted_desc = replacetext(desc, "%belly", lowertext(name)) //replace with this belly's name
//formatted_desc = replacetext(formatted_desc, "%pred", owner) //replace with this belly's owner
//formatted_desc = replacetext(formatted_desc, "%prey", thing) //replace with whatever mob entered into this belly
//to_chat(CC.bound_mob, "<span class='notice'><B>[formatted_desc]</B></span>") //CHOMPedit end
//to_chat(CC.bound_mob, span_notice("<B>[formatted_desc]</B>")) //CHOMPedit end
/*/ Intended for simple mobs //CHMOPEdit: Counting belly cycles now.
if((!owner.client || autotransfer_enabled) && autotransferlocation && autotransferchance > 0)
@@ -1184,7 +1184,7 @@
M.mind.transfer_to(hasMMI.brainmob)
R.mmi = null
else if(!R.shell) // Shells don't have brainmobs in their MMIs.
to_chat(R, "<span class='danger'>Oops! Something went very wrong, your MMI was unable to receive your mind. You have been ghosted. Please make a bug report so we can fix this bug.</span>")
to_chat(R, span_danger("Oops! Something went very wrong, your MMI was unable to receive your mind. You have been ghosted. Please make a bug report so we can fix this bug."))
if(R.shell) // Let the standard procedure for shells handle this.
qdel(R)
return
@@ -75,7 +75,7 @@ GLOBAL_LIST_INIT(digest_modes, list())
L.adjustCloneLoss(B.digest_clone)
//CHOMPEdit start - Send a message when a prey-thing enters hard crit.
if(iscarbon(L) && old_health > 0 && L.health <= 0)
to_chat(B.owner, "<span class='notice'>You feel [L] go still within your [lowertext(B.name)].</span>")
to_chat(B.owner, span_notice("You feel [L] go still within your [lowertext(B.name)]."))
//CHOMPEdit end
var/actual_brute = L.getBruteLoss() - old_brute
var/actual_burn = L.getFireLoss() - old_burn
@@ -157,7 +157,7 @@ GLOBAL_LIST_INIT(digest_modes, list())
if(L.size_multiplier > B.shrink_grow_size)
L.resize(L.size_multiplier - 0.01) // Shrink by 1% per tick
if(L.size_multiplier <= B.shrink_grow_size) //CHOMPEdit - Adds some feedback so the pred knows their prey has stopped shrinking.
to_chat(B.owner, "<span class='notice'>You feel [L] get as small as you would like within your [lowertext(B.name)].</span>")
to_chat(B.owner, span_notice("You feel [L] get as small as you would like within your [lowertext(B.name)]."))
B.owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
. = ..()
@@ -169,7 +169,7 @@ GLOBAL_LIST_INIT(digest_modes, list())
if(L.size_multiplier < B.shrink_grow_size)
L.resize(L.size_multiplier + 0.01) // Shrink by 1% per tick
if(L.size_multiplier >= B.shrink_grow_size) //CHOMPEdit - Adds some feedback so the pred knows their prey has stopped growing.
to_chat(B.owner, "<span class='notice'>You feel [L] get as big as you would like within your [lowertext(B.name)].</span>")
to_chat(B.owner, span_notice("You feel [L] get as big as you would like within your [lowertext(B.name)]."))
B.owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
/datum/digest_mode/drain/sizesteal
@@ -179,10 +179,10 @@ GLOBAL_LIST_INIT(digest_modes, list())
if(L.size_multiplier > B.shrink_grow_size && B.owner.size_multiplier < 2) //Grow until either pred is large or prey is small.
B.owner.resize(B.owner.size_multiplier + 0.01) //Grow by 1% per tick.
if(B.owner.size_multiplier >= 2) //CHOMPEdit - Adds some feedback so the pred knows they can't grow anymore.
to_chat(B.owner, "<span class='notice'>You feel you have grown as much as you can.</span>")
to_chat(B.owner, span_notice("You feel you have grown as much as you can."))
L.resize(L.size_multiplier - 0.01) //Shrink by 1% per tick
if(L.size_multiplier <= B.shrink_grow_size) //CHOMPEdit - Adds some feedback so the pred knows their prey has stopped shrinking.
to_chat(B.owner, "<span class='notice'>You feel [L] get as small as you would like within your [lowertext(B.name)].</span>")
to_chat(B.owner, span_notice("You feel [L] get as small as you would like within your [lowertext(B.name)]."))
B.owner.update_fullness() //CHOMPEdit - This is run whenever a belly's contents are changed.
. = ..()
+2 -2
View File
@@ -124,7 +124,7 @@
//CHOMPEdit End
g_damage = w_class / 2
if(B.item_digest_logs)
to_chat(B.owner,"<span class='notice'>[src] was digested inside your [lowertext(B.name)].</span>")
to_chat(B.owner,span_notice("[src] was digested inside your [lowertext(B.name)]."))
qdel(src)
else if(istype(src,/obj/item/stack))
var/obj/item/stack/S = src
@@ -148,7 +148,7 @@
if(goodmeal.trash)
new goodmeal.trash(src)
if(B.item_digest_logs)
to_chat(B.owner,"<span class='notice'>[src] was digested inside your [lowertext(B.name)].</span>")
to_chat(B.owner,span_notice("[src] was digested inside your [lowertext(B.name)]."))
qdel(src)//CHOMPEdit End
if(g_damage > w_class)
return w_class
+1 -1
View File
@@ -127,7 +127,7 @@
set desc = "Slowly regenerate health using nutrition."
if(nutrition < 10)
to_chat(src, "<span class='warning'>You are too hungry to regenerate health.</span>")
to_chat(src, span_warning("You are too hungry to regenerate health."))
return
var/heal_amount = input(src, "Input the amount of health to regenerate at the rate of 10 nutrition per second per hitpoint. Current health: [health] / [maxHealth]", "Regenerate health.") as num|null
if(!heal_amount)