refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+7 -7
View File
@@ -22,7 +22,7 @@
/datum/data/pda/messenger_plugin/virus/clown/user_act(mob/user as mob, obj/item/pda/P)
. = ..(user, P)
if(.)
user.show_message("<span class='notice'>Virus sent!</span>", 1)
user.show_message(span_notice("Virus sent!"), 1)
P.honkamt = (rand(15,20))
P.ttone = "honk"
@@ -33,7 +33,7 @@
/datum/data/pda/messenger_plugin/virus/mime/user_act(mob/user as mob, obj/item/pda/P)
. = ..(user, P)
if(.)
user.show_message("<span class='notice'>Virus sent!</span>", 1)
user.show_message(span_notice("Virus sent!"), 1)
var/datum/data/pda/app/M = P.find_program(/datum/data/pda/app/messenger)
if(M)
M.notify_silent = 1
@@ -55,18 +55,18 @@
difficulty += 2
if(!P.detonate || P.hidden_uplink)
user.show_message("<span class='warning'>The target PDA does not seem to respond to the detonation command.</span>", 1)
user.show_message(span_warning("The target PDA does not seem to respond to the detonation command."), 1)
pda.cartridge.charges++
else if(prob(difficulty * 12))
user.show_message("<span class='warning'>An error flashes on your [pda].</span>", 1)
user.show_message(span_warning("An error flashes on your [pda]."), 1)
else if(prob(difficulty * 3))
user.show_message("<span class='danger'>Energy feeds back into your [pda]!</span>", 1)
user.show_message(span_danger("Energy feeds back into your [pda]!"), 1)
pda.close(user)
pda.explode()
log_admin("[key_name(user)] just attempted to blow up [P] with the Detomatix cartridge but failed, blowing themselves up")
message_admins("[key_name_admin(user)] just attempted to blow up [P] with the Detomatix cartridge but failed, blowing themselves up", 1)
else
user.show_message("<span class='notice'>Success!</span>", 1)
user.show_message(span_notice("Success!"), 1)
log_admin("[key_name(user)] just attempted to blow up [P] with the Detomatix cartridge and succeded")
message_admins("[key_name_admin(user)] just attempted to blow up [P] with the Detomatix cartridge and succeded", 1)
P.explode()
@@ -78,7 +78,7 @@
. = ..(user, P)
if(.)
var/lock_code = "[rand(100,999)] [pick("Alpha","Bravo","Charlie","Delta","Echo","Foxtrot","Golf","Hotel","India","Juliet","Kilo","Lima","Mike","November","Oscar","Papa","Quebec","Romeo","Sierra","Tango","Uniform","Victor","Whiskey","X-ray","Yankee","Zulu")]"
user.show_message("<span class='notice'>Virus Sent! The unlock code to the target is: [lock_code]</span>")
user.show_message(span_notice("Virus Sent! The unlock code to the target is: [lock_code]"))
if(!P.hidden_uplink)
var/obj/item/uplink/hidden/uplink = new(P)
P.hidden_uplink = uplink