mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Convert most spans to defines (#31080)
* spanish? * aaaagain * keep maptext * Update robot_items.dm * Update span_defines.dm * compiles * Update silicon_mob.dm * compile
This commit is contained in:
@@ -14,7 +14,7 @@ This was also the case with the verb implementation, it's just much more obvious
|
||||
return FALSE
|
||||
if(vessel.stored_plasma < plasma_cost)
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>You require at least [plasma_cost] plasma to use this ability!</span>")
|
||||
to_chat(user, SPAN_WARNING("You require at least [plasma_cost] plasma to use this ability!"))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -22,12 +22,12 @@ This was also the case with the verb implementation, it's just much more obvious
|
||||
user.use_plasma_spell(plasma_cost, user)
|
||||
|
||||
/datum/spell_handler/alien/before_cast(list/targets, mob/living/carbon/user, datum/spell/spell)
|
||||
to_chat(user, "<span class='boldnotice'>You have [user.get_plasma()] plasma left to use.</span>")
|
||||
to_chat(user, SPAN_BOLDNOTICE("You have [user.get_plasma()] plasma left to use."))
|
||||
user.update_plasma_display(user)
|
||||
|
||||
/datum/spell_handler/alien/revert_cast(mob/living/carbon/user, datum/spell/spell)
|
||||
user.add_plasma(plasma_cost, user)
|
||||
to_chat(user, "<span class='boldnotice'>You have [user.get_plasma()] plasma left to use.</span>")
|
||||
to_chat(user, SPAN_BOLDNOTICE("You have [user.get_plasma()] plasma left to use."))
|
||||
user.update_plasma_display(user)
|
||||
|
||||
/mob/living/carbon/proc/get_plasma()
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
/datum/spell_handler/morph/can_cast(mob/living/simple_animal/hostile/morph/user, charge_check, show_message, datum/spell/spell)
|
||||
if(!istype(user))
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>You should not be able to use this ability! Report this as a bug on github please.</span>")
|
||||
to_chat(user, SPAN_WARNING("You should not be able to use this ability! Report this as a bug on github please."))
|
||||
return FALSE
|
||||
|
||||
if(user.gathered_food < hunger_cost)
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>You require at least [hunger_cost] stored food to use this ability!</span>")
|
||||
to_chat(user, SPAN_WARNING("You require at least [hunger_cost] stored food to use this ability!"))
|
||||
return FALSE
|
||||
|
||||
return TRUE
|
||||
@@ -20,8 +20,8 @@
|
||||
|
||||
/datum/spell_handler/morph/before_cast(list/targets, mob/living/simple_animal/hostile/morph/user, datum/spell/spell)
|
||||
if(hunger_cost)
|
||||
to_chat(user, "<span class='boldnotice'>You have [user.gathered_food] left to use.</span>")
|
||||
to_chat(user, SPAN_BOLDNOTICE("You have [user.gathered_food] left to use."))
|
||||
|
||||
/datum/spell_handler/morph/revert_cast(mob/living/simple_animal/hostile/morph/user, datum/spell/spell)
|
||||
user.add_food(hunger_cost)
|
||||
to_chat(user, "<span class='boldnotice'>You have [user.gathered_food] left to use.</span>")
|
||||
to_chat(user, SPAN_BOLDNOTICE("You have [user.gathered_food] left to use."))
|
||||
|
||||
@@ -13,21 +13,21 @@
|
||||
|
||||
if(user.stat >= DEAD) // TODO check if needed
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>Not while you're dead!</span>")
|
||||
to_chat(user, SPAN_WARNING("Not while you're dead!"))
|
||||
return FALSE
|
||||
|
||||
if(vampire.nullified >= VAMPIRE_COMPLETE_NULLIFICATION && !fullpower) // above 100 nullification vampire powers are useless
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>Something is blocking your powers!</span>")
|
||||
to_chat(user, SPAN_WARNING("Something is blocking your powers!"))
|
||||
return FALSE
|
||||
if(vampire.bloodusable < required_blood)
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>You require at least [required_blood] units of usable blood to do that!</span>")
|
||||
to_chat(user, SPAN_WARNING("You require at least [required_blood] units of usable blood to do that!"))
|
||||
return FALSE
|
||||
//chapel check
|
||||
if(istype(get_area(user), /area/station/service/chapel) && !fullpower)
|
||||
if(show_message)
|
||||
to_chat(user, "<span class='warning'>Your powers are useless on this holy ground.</span>")
|
||||
to_chat(user, SPAN_WARNING("Your powers are useless on this holy ground."))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -50,6 +50,6 @@
|
||||
if(!required_blood)
|
||||
return
|
||||
var/datum/antagonist/vampire/vampire = user.mind.has_antag_datum(/datum/antagonist/vampire)
|
||||
to_chat(user, "<span class='boldnotice'>You have [vampire.bloodusable] left to use.</span>")
|
||||
to_chat(user, SPAN_BOLDNOTICE("You have [vampire.bloodusable] left to use."))
|
||||
SSblackbox.record_feedback("tally", "vampire_powers_used", 1, "[spell]") // Only log abilities which require blood
|
||||
|
||||
|
||||
Reference in New Issue
Block a user