removes var/ inside all procs (#19450)

* removes var/ inside all procs

* .

* ugh
This commit is contained in:
Kashargul
2026-05-05 10:55:17 +02:00
committed by GitHub
parent 13162d13a2
commit 5926589c16
1987 changed files with 7376 additions and 7377 deletions
@@ -56,7 +56,7 @@
/// Returns a list of lines containing diagnostic information for display.
/obj/item/computer_hardware/proc/diagnostics(var/mob/user)
/obj/item/computer_hardware/proc/diagnostics(mob/user)
to_chat(user, "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]")
/obj/item/computer_hardware/Initialize(mapload)
@@ -84,7 +84,7 @@
// Good to go.
return TRUE
/obj/item/computer_hardware/examine(var/mob/user)
/obj/item/computer_hardware/examine(mob/user)
. = ..()
if(damage > damage_failure)
. += span_danger("It seems to be severely damaged!")
@@ -94,6 +94,6 @@
. += "It seems to be slightly damaged."
/// Damages the component. Contains necessary checks. Negative damage "heals" the component.
/obj/item/computer_hardware/take_damage(var/amount)
/obj/item/computer_hardware/take_damage(amount)
damage += round(amount) // We want nice rounded numbers here.
damage = between(0, damage, max_damage) // Clamp the value.
@@ -53,7 +53,7 @@
/obj/item/computer_hardware/battery_module/lambda/Initialize(mapload)
. = ..(mapload, /obj/item/cell/infinite)
/obj/item/computer_hardware/battery_module/diagnostics(var/mob/user)
/obj/item/computer_hardware/battery_module/diagnostics(mob/user)
..()
to_chat(user, "Internal battery charge: [battery.charge]/[battery.maxcharge] CU")
@@ -53,7 +53,7 @@
icon_state = "hdd_micro"
hardware_size = 1
/obj/item/computer_hardware/hard_drive/diagnostics(var/mob/user)
/obj/item/computer_hardware/hard_drive/diagnostics(mob/user)
..()
// 999 is a byond limit that is in place. It's unlikely someone will reach that many files anyway, since you would sooner run out of space.
to_chat(user, "NT-NFS File Table Status: [stored_files.len]/999")
@@ -61,7 +61,7 @@
to_chat(user, "Read-only mode: [(read_only ? "ON" : "OFF")]")
// Use this proc to add file to the drive. Returns 1 on success and 0 on failure. Contains necessary sanity checks.
/obj/item/computer_hardware/hard_drive/proc/store_file(var/datum/computer_file/F)
/obj/item/computer_hardware/hard_drive/proc/store_file(datum/computer_file/F)
if(!F || !istype(F))
return 0
@@ -91,7 +91,7 @@
// Use this proc to remove file from the drive. Returns 1 on success and 0 on failure. Contains necessary sanity checks.
/obj/item/computer_hardware/hard_drive/proc/remove_file(var/datum/computer_file/F)
/obj/item/computer_hardware/hard_drive/proc/remove_file(datum/computer_file/F)
if(!F || !istype(F))
return 0
@@ -117,7 +117,7 @@
used_capacity = total_size
// Checks whether file can be stored on the hard drive.
/obj/item/computer_hardware/hard_drive/proc/can_store_file(var/size = 1)
/obj/item/computer_hardware/hard_drive/proc/can_store_file(size = 1)
// In the unlikely event someone manages to create that many files.
// BYOND is acting weird with numbers above 999 in loops (infinite loop prevention)
if(stored_files.len >= 999)
@@ -128,7 +128,7 @@
return 1
// Checks whether we can store the file. We can only store unique files, so this checks whether we wouldn't get a duplicity by adding a file.
/obj/item/computer_hardware/hard_drive/proc/try_store_file(var/datum/computer_file/F)
/obj/item/computer_hardware/hard_drive/proc/try_store_file(datum/computer_file/F)
if(!F || !istype(F))
return 0
var/name = F.filename + "." + F.filetype
@@ -140,7 +140,7 @@
// Tries to find the file by filename. Returns null on failure
/obj/item/computer_hardware/hard_drive/proc/find_file_by_name(var/filename)
/obj/item/computer_hardware/hard_drive/proc/find_file_by_name(filename)
if(!check_functionality())
return null
@@ -156,7 +156,7 @@
return null
// Tries to find the file by unique ID. Returns null on failure
/obj/item/computer_hardware/hard_drive/proc/find_file_by_uid(var/uid)
/obj/item/computer_hardware/hard_drive/proc/find_file_by_uid(uid)
if(!check_functionality())
return null
@@ -8,11 +8,11 @@
var/stored_paper = 5
var/max_paper = 10
/obj/item/computer_hardware/nano_printer/diagnostics(var/mob/user)
/obj/item/computer_hardware/nano_printer/diagnostics(mob/user)
..()
to_chat(user, "Paper buffer level: [stored_paper]/[max_paper]")
/obj/item/computer_hardware/nano_printer/proc/print_text(var/text_to_print, var/paper_title = null)
/obj/item/computer_hardware/nano_printer/proc/print_text(text_to_print, paper_title = null)
if(!stored_paper)
return 0
if(!enabled)
@@ -36,7 +36,7 @@
stored_paper--
return 1
/obj/item/computer_hardware/nano_printer/proc/count_fields(var/info)
/obj/item/computer_hardware/nano_printer/proc/count_fields(info)
//Count the fields. This is taken directly from paper.dm, /obj/item/paper/proc/parsepencode(). -Hawk_v3
var/fields = 0
var/t = info
@@ -21,7 +21,7 @@ GLOBAL_VAR_INIT(ntnet_card_uid, 1)
/// If set, uses the value to funnel connections through another network card.
var/proxy_id
/obj/item/computer_hardware/network_card/diagnostics(var/mob/user)
/obj/item/computer_hardware/network_card/diagnostics(mob/user)
..()
to_chat(user, "NIX Unique ID: [identification_id]")
to_chat(user, "NIX User Tag: [identification_string]")
@@ -53,7 +53,7 @@ GLOBAL_VAR_INIT(ntnet_card_uid, 1)
icon_state = "netcard_advanced"
hardware_size = 1
/obj/item/computer_hardware/network_card/quantum/get_signal(var/specific_action = 0)
/obj/item/computer_hardware/network_card/quantum/get_signal(specific_action = 0)
if(!holder2)
return 0
@@ -87,7 +87,7 @@ GLOBAL_VAR_INIT(ntnet_card_uid, 1)
return GLOB.ntnet_global.check_banned(identification_id)
// 0 - No signal, 1 - Low signal, 2 - High signal. 3 - Wired Connection
/obj/item/computer_hardware/network_card/proc/get_signal(var/specific_action = 0)
/obj/item/computer_hardware/network_card/proc/get_signal(specific_action = 0)
if(!holder2) // Hardware is not installed in anything. No signal. How did this even get called?
return 0