//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, "ERROR: Suit systems busy, cannot initiate [suitActive ? "de-activation" : "activation"] protocols at this time.") 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, "Now de-initializing...") sleep(15) to_chat(usr, "Logging off, [usr.real_name]. Shutting down SpiderOS.") sleep(10) to_chat(usr, "Primary system status: OFFLINE.\nBackup system status: OFFLINE.") sleep(5) to_chat(usr, "VOID-shift device status: OFFLINE.\nCLOAK-tech device status: OFFLINE.") //TODO: Shut down any active abilities sleep(10) to_chat(usr, "Disconnecting neural-net interface... Success.") QDEL_NULL(usr.hud_used) usr.create_mob_hud() usr.regenerate_icons() sleep(5) to_chat(usr, "Disengaging neural-net interface... Success.") sleep(10) to_chat(usr, "Unsecuring external locking mechanism...\nNeural-net abolished.\nOperation status: FINISHED.") //TODO: Grant verbs toggle_suit_lock(usr) usr.regenerate_icons() suitBusy = 0 suitActive = 0 else if(!suitActive) // Activate the suit. to_chat(usr, "Now initializing...") sleep(15) to_chat(usr, "Now establishing neural-net interface...") if(usr.mind.special_role != "Ninja") to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.") return sleep(10) to_chat(usr, "Neural-net established. Now monitoring brainwave pattern. \nBrainwave pattern GREEN, proceeding.") sleep(10) to_chat(usr, "Securing external locking mechanism...") if(!toggle_suit_lock(usr)) return sleep(5) to_chat(usr, "Suit secured, extending neural-net interface...") 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, "VOID-shift device status: ONLINE.\nCLOAK-tech device status:ONLINE") sleep(5) to_chat(usr, "Primary system status: ONLINE.\nBackup system status: ONLINE.") if(suitCell) to_chat(usr, "Current energy capacity: [suitCell.charge]/[suitCell.maxcharge].") sleep(10) to_chat(usr, "All systems operational. Welcome to SpiderOS, [usr.real_name].") //TODO: Grant ninja verbs here. suitBusy = 0 suitActive = 1 else suitBusy = 0 to_chat(usr, "NOTICE: Suit de-activation protocols aborted.") else to_chat(usr, "FĆAL �Rr�R: ŧer nt recgnized, c-cntr-r䣧-ç äcked.") return