mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Linter Introduction + Cleanup
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
|
||||
user.verbs |= /mob/living/carbon/human/proc/nif_menu
|
||||
|
||||
/datum/component/nif_menu/proc/nif_menu_click(atom/movable/screen/nif/image, location, control, params, user)
|
||||
/datum/component/nif_menu/proc/nif_menu_click(obj/screen/nif/image, location, control, params, user)
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(istype(H) && H.nif)
|
||||
INVOKE_ASYNC(H.nif, .proc/tgui_interact, user)
|
||||
@@ -118,13 +118,14 @@
|
||||
data["nif_percent"] = round((durability/initial(durability))*100)
|
||||
data["nif_stat"] = stat
|
||||
|
||||
data["modules"] = list()
|
||||
|
||||
var/list/modules = list()
|
||||
if(stat == NIF_WORKING)
|
||||
for(var/nifsoft in nifsofts)
|
||||
if(!nifsoft)
|
||||
continue
|
||||
var/datum/nifsoft/NS = nifsoft
|
||||
data["modules"].Add(list(list(
|
||||
modules.Add(list(list(
|
||||
"name" = NS.name,
|
||||
"desc" = NS.desc,
|
||||
"p_drain" = NS.p_drain,
|
||||
@@ -137,6 +138,7 @@
|
||||
"stat_text" = NS.stat_text(),
|
||||
"ref" = REF(NS),
|
||||
)))
|
||||
data["modules"] = modules
|
||||
|
||||
return data
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
if((. = ..()))
|
||||
mode = 1
|
||||
|
||||
/datum/nifsoft/medichines_org/deactivate()
|
||||
/datum/nifsoft/medichines_org/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
a_drain = initial(a_drain)
|
||||
mode = initial(mode)
|
||||
@@ -94,7 +94,7 @@
|
||||
if((. = ..()))
|
||||
mode = 1
|
||||
|
||||
/datum/nifsoft/medichines_syn/deactivate()
|
||||
/datum/nifsoft/medichines_syn/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
mode = 0
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
if((. = ..()))
|
||||
nif.notify("Now taking air from reserves.")
|
||||
|
||||
/datum/nifsoft/spare_breath/deactivate()
|
||||
/datum/nifsoft/spare_breath/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
nif.notify("Now taking air from environment and refilling reserves.")
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
deactivate()
|
||||
return TRUE
|
||||
|
||||
/datum/nifsoft/mindbackup/deactivate()
|
||||
/datum/nifsoft/mindbackup/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
arscreen.tgui_interact(nif.human)
|
||||
return TRUE
|
||||
|
||||
/datum/nifsoft/crewmonitor/deactivate()
|
||||
/datum/nifsoft/crewmonitor/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
tgarscreen.tgui_interact(nif.human)
|
||||
return TRUE
|
||||
|
||||
/datum/nifsoft/alarmmonitor/deactivate()
|
||||
/datum/nifsoft/alarmmonitor/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
spawn(0)
|
||||
deactivate()
|
||||
|
||||
/datum/nifsoft/soulcatcher/deactivate()
|
||||
/datum/nifsoft/soulcatcher/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
return FALSE
|
||||
..()
|
||||
|
||||
/mob/living/carbon/brain/caught_soul/show_message()
|
||||
/mob/living/carbon/brain/caught_soul/show_message(msg, type, alt, alt_type)
|
||||
if(ext_blind || !client)
|
||||
return FALSE
|
||||
..()
|
||||
@@ -363,7 +363,7 @@
|
||||
else
|
||||
return ..(direction)
|
||||
|
||||
/mob/living/carbon/brain/caught_soul/say(var/message)
|
||||
/mob/living/carbon/brain/caught_soul/say(var/message, var/datum/language/speaking = null, var/whispering = 0)
|
||||
if(silent) return FALSE
|
||||
soulcatcher.say_into(message,src,eyeobj)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
H.visible_message("<span class='warning'>Thin snakelike tendrils grow from [H] and connect to \the [apc].</span>","<span class='notice'>Thin snakelike tendrils grow from you and connect to \the [apc].</span>")
|
||||
|
||||
/datum/nifsoft/apc_recharge/deactivate()
|
||||
/datum/nifsoft/apc_recharge/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
apc = null
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
spawn(0)
|
||||
deactivate()
|
||||
|
||||
/datum/nifsoft/sizechange/deactivate()
|
||||
/datum/nifsoft/sizechange/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
return TRUE
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
H.display_alt_appearance("animals", justme)
|
||||
alt_farmanimals += nif.human
|
||||
|
||||
/datum/nifsoft/worldbend/deactivate()
|
||||
/datum/nifsoft/worldbend/deactivate(var/force = FALSE)
|
||||
if((. = ..()))
|
||||
var/list/justme = list(nif.human)
|
||||
for(var/human in human_mob_list)
|
||||
|
||||
Reference in New Issue
Block a user