mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] some more spans (#9170)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -99,8 +99,8 @@
|
||||
if(isliving(hit_atom))
|
||||
var/mob/living/L = hit_atom
|
||||
if(L == user && !controlled_mobs.len)
|
||||
to_chat(user, "<span class='warning'>This function doesn't work on higher-intelligence entities, however since you're \
|
||||
trying to use it on yourself, perhaps you're an exception? Regardless, nothing happens.</span>")
|
||||
to_chat(user, span_warning("This function doesn't work on higher-intelligence entities, however since you're \
|
||||
trying to use it on yourself, perhaps you're an exception? Regardless, nothing happens."))
|
||||
return 0
|
||||
|
||||
if(L.mob_class & allowed_mob_classes)
|
||||
@@ -125,8 +125,8 @@
|
||||
if(pay_energy(25 * controlled_mobs.len))
|
||||
attack_all(L)
|
||||
add_attack_logs(user,L,"Commanded their army of [controlled_mobs.len]")
|
||||
to_chat(user, "<span class='notice'>You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to \
|
||||
attack \the [L].</span>")
|
||||
to_chat(user, span_notice("You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to \
|
||||
attack \the [L]."))
|
||||
//This is to stop someone from controlling beepsky and getting him to stun someone 5 times a second.
|
||||
user.setClickCooldown(8)
|
||||
adjust_instability(controlled_mobs.len)
|
||||
@@ -139,5 +139,5 @@
|
||||
if(pay_energy(10 * controlled_mobs.len))
|
||||
move_all(T)
|
||||
adjust_instability(controlled_mobs.len)
|
||||
to_chat(user, "<span class='notice'>You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to move \
|
||||
towards \the [T].</span>")
|
||||
to_chat(user, span_notice("You command your [controlled_mobs.len > 1 ? "entities" : "[controlled_mobs[1]]"] to move \
|
||||
towards \the [T]."))
|
||||
|
||||
@@ -63,8 +63,8 @@
|
||||
return .(pulses_remaining, victim, previous_damage)
|
||||
// Now check if our damage predictions are going to cause the victim to go into crit if no healing occurs.
|
||||
if(previous_damage + health_lost >= victim.getMaxHealth()) // We're probably going to hardcrit
|
||||
to_chat(victim, "<span class='danger'><font size='3'>A feeling of immense dread starts to overcome you as everything starts \
|
||||
to fade to black...</font></span>")
|
||||
to_chat(victim, span_danger(span_large("A feeling of immense dread starts to overcome you as everything starts \
|
||||
to fade to black...")))
|
||||
//to_world("Predicted hardcrit.")
|
||||
return 1
|
||||
else if(predicted_damage >= victim.species.total_health / 2) // Or perhaps we're gonna go into 'oxy crit'.
|
||||
|
||||
@@ -76,8 +76,8 @@
|
||||
var/obj/item/W = damage_source
|
||||
if(attacker)
|
||||
W.attack(attacker)
|
||||
to_chat(attacker, "<span class='danger'>Your [damage_source.name] goes through \the [src] in one location, comes out \
|
||||
on the same side, and hits you!</span>")
|
||||
to_chat(attacker, span_danger("Your [damage_source.name] goes through \the [src] in one location, comes out \
|
||||
on the same side, and hits you!"))
|
||||
|
||||
spark_system.start()
|
||||
playsound(src, 'sound/weapons/blade1.ogg', 50, 1)
|
||||
|
||||
Reference in New Issue
Block a user