mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +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:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user