Files
Paradise/code/modules/ninja/suit/suit_initialisation.dm
Henri215 dc75a748f1 Fixing common spelling mistakes part 3 (#20870)
* Fixing common spelling mistakes part 3

* collectable

* another collectable

* part 3.2

* "</span>."

* A bunch more fixes
2023-04-22 09:44:27 +02:00

93 lines
3.8 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//Verbs link to procs because verb-like procs have a bug which prevents their use if the arguments are not readily referenced.
//^ Old coder words may be false these days, Not taking the risk for now.
/obj/item/clothing/suit/space/space_ninja/verb/toggle_suit()
set category = "Space Ninja - Equipment"
set name = "Toggle Suit"
if(usr.mind.special_role == "Ninja")
if(suitBusy)
to_chat(usr, "<span style='color: #ff0000;'><b>ERROR: </b>Suit systems busy, cannot initiate [suitActive ? "de-activation" : "activation"] protocols at this time.</span>")
return
suitBusy = 1
if(suitActive && (alert("Confirm suit systems shutdown? This cannot be halted once it has started.", "Confirm Shutdown", "Yes", "No") == "Yes"))
to_chat(usr, "<span class='darkmblue'>Now de-initializing...</span>")
sleep(15)
to_chat(usr, "<span class='darkmblue'>Logging off, [usr.real_name]. Shutting down <b>SpiderOS</b>.</span>")
sleep(10)
to_chat(usr, "<span class='darkmblue'>Primary system status: <B>OFFLINE</B>.\nBackup system status: <b>OFFLINE</b>.</span>")
sleep(5)
to_chat(usr, "<span class='darkmblue'>VOID-shift device status: <B>OFFLINE</B>.\nCLOAK-tech device status: <B>OFFLINE</B>.</span>")
//TODO: Shut down any active abilities
sleep(10)
to_chat(usr, "<span class='darkmblue'>Disconnecting neural-net interface...</span> <span style='color: #32CD32'><b>Success</b>.</span>")
QDEL_NULL(usr.hud_used)
usr.create_mob_hud()
usr.regenerate_icons()
sleep(5)
to_chat(usr, "<span class='darkmblue'>Disengaging neural-net interface...</span> <span style='color: #32CD32'><b>Success</b>.</span>")
sleep(10)
to_chat(usr, "<span class='darkmblue'>Unsecuring external locking mechanism...\nNeural-net abolished.\nOperation status: <B>FINISHED</B>.</span>")
//TODO: Grant verbs
toggle_suit_lock(usr)
usr.regenerate_icons()
suitBusy = 0
suitActive = 0
else if(!suitActive) // Activate the suit.
to_chat(usr, "<span class='darkmblue'>Now initializing...</span>")
sleep(15)
to_chat(usr, "<span class='darkmblue'>Now establishing neural-net interface...")
if(usr.mind.special_role != "Ninja")
to_chat(usr, "<span style='color: #ff0000;'><b>FĆAL <20>Rr<52>R</b>: ŧer nt recgnized, c-cntr-r䣧-ç äcked.")
return
sleep(10)
to_chat(usr, "<span class='darkmblue'>Neural-net established. Now monitoring brainwave pattern. \nBrainwave pattern</span> <span style='color: #32CD32;'><b>GREEN</b></span><span class='darkmblue'>, proceeding.</span>")
sleep(10)
to_chat(usr, "<span class='darkmblue'>Securing external locking mechanism...</span>")
if(!toggle_suit_lock(usr))
return
sleep(5)
to_chat(usr, "<span class='darkmblue'>Suit secured, extending neural-net interface...</span>")
QDEL_NULL(usr.hud_used)
usr.hud_used = new /datum/hud/human(usr, 'icons/mob/screen_ninja.dmi', "#ffffff", 255)
if(usr.hud_used)
usr.hud_used.show_hud(usr.hud_used.hud_version)
usr.regenerate_icons()
sleep(10)
to_chat(usr, "<span class='darkmblue'>VOID-shift device status: <b>ONLINE</b>.\nCLOAK-tech device status:<b>ONLINE</b></span>")
sleep(5)
to_chat(usr, "<span class='darkmblue'>Primary system status: <b>ONLINE</b>.\nBackup system status: <b>ONLINE</b>.</span>")
if(suitCell)
to_chat(usr, "<span class='darkmblue'>Current energy capacity: <b>[suitCell.charge]/[suitCell.maxcharge]</b>.</span>")
sleep(10)
to_chat(usr, "<span class='darkmblue'>All systems operational. Welcome to <b>SpiderOS</b>, [usr.real_name].</span>")
//TODO: Grant ninja verbs here.
suitBusy = 0
suitActive = 1
else
suitBusy = 0
to_chat(usr, "<span class='darkmblue'><b>NOTICE: </b>Suit de-activation protocols aborted.</span>")
else
to_chat(usr, "<span style='color: #ff0000;'><b>FĆAL <20>Rr<52>R</b>: ŧer nt recgnized, c-cntr-r䣧-ç äcked.")
return