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
+12 -12
View File
@@ -18,17 +18,17 @@
if(!attached_lock.controller_lock)
if(!attached_lock.stored_dna && !(M.dna in attached_lock.stored_dna))
to_chat(M, "<span class='warning'>\The [src] buzzes and displays a symbol showing the gun already contains your DNA.</span>")
to_chat(M, span_warning("\The [src] buzzes and displays a symbol showing the gun already contains your DNA."))
return 0
else
attached_lock.stored_dna += M.dna
to_chat(M, "<span class='notice'>\The [src] pings and a needle flicks out from the grip, taking a DNA sample from you.</span>")
to_chat(M, span_notice("\The [src] pings and a needle flicks out from the grip, taking a DNA sample from you."))
if(!attached_lock.controller_dna)
attached_lock.controller_dna = M.dna
to_chat(M, "<span class='notice'>\The [src] processes the dna sample and pings, acknowledging you as the primary controller.</span>")
to_chat(M, span_notice("\The [src] processes the dna sample and pings, acknowledging you as the primary controller."))
return 1
else
to_chat(M, "<span class='warning'>\The [src] buzzes and displays a locked symbol. It is not allowing DNA samples at this time.</span>")
to_chat(M, span_warning("\The [src] buzzes and displays a locked symbol. It is not allowing DNA samples at this time."))
return 0
/obj/item/gun/verb/give_dna()
@@ -41,19 +41,19 @@
var/mob/living/M = user
if(!attached_lock.controller_lock)
if(!authorized_user(M))
to_chat(M, "<span class='warning'>\The [src] buzzes and displays an invalid user symbol.</span>")
to_chat(M, span_warning("\The [src] buzzes and displays an invalid user symbol."))
return 0
else
attached_lock.stored_dna -= user.dna
to_chat(M, "<span class='notice'>\The [src] beeps and clears the DNA it has stored.</span>")
to_chat(M, span_notice("\The [src] beeps and clears the DNA it has stored."))
if(M.dna == attached_lock.controller_dna)
attached_lock.controller_dna = null
to_chat(M, "<span class='notice'>\The [src] beeps and removes you as the primary controller.</span>")
to_chat(M, span_notice("\The [src] beeps and removes you as the primary controller."))
if(attached_lock.controller_lock)
attached_lock.controller_lock = 0
return 1
else
to_chat(M, "<span class='warning'>\The [src] buzzes and displays a locked symbol. It is not allowing DNA modifcation at this time.</span>")
to_chat(M, span_warning("\The [src] buzzes and displays a locked symbol. It is not allowing DNA modifcation at this time."))
return 0
/obj/item/gun/verb/remove_dna()
@@ -67,12 +67,12 @@
if(authorized_user(M) && user.dna == attached_lock.controller_dna)
if(!attached_lock.controller_lock)
attached_lock.controller_lock = 1
to_chat(M, "<span class='notice'>\The [src] beeps and displays a locked symbol, informing you it will no longer allow DNA samples.</span>")
to_chat(M, span_notice("\The [src] beeps and displays a locked symbol, informing you it will no longer allow DNA samples."))
else
attached_lock.controller_lock = 0
to_chat(M, "<span class='notice'>\The [src] beeps and displays an unlocked symbol, informing you it will now allow DNA samples.</span>")
to_chat(M, span_notice("\The [src] beeps and displays an unlocked symbol, informing you it will now allow DNA samples."))
else
to_chat(M, "<span class='warning'>\The [src] buzzes and displays an invalid user symbol.</span>")
to_chat(M, span_warning("\The [src] buzzes and displays an invalid user symbol."))
/obj/item/gun/verb/allow_dna()
set name = "Toggle DNA Samples Allowance"
@@ -85,4 +85,4 @@
return 1
if(!(user.dna in attached_lock.stored_dna))
return 0
return 1
return 1