mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -34,12 +34,12 @@ GLOBAL_LIST_INIT(custom_items, load_custom_items())
|
||||
var/kit_icon
|
||||
var/additional_data //for modular modkits, item path; for mech modkits, allowed mechs; for voidsuit modkits, light overlays
|
||||
|
||||
/datum/custom_item/proc/spawn_item(var/newloc)
|
||||
/datum/custom_item/proc/spawn_item(newloc)
|
||||
var/obj/item/citem = new item_path(newloc)
|
||||
apply_to_item(citem)
|
||||
return citem
|
||||
|
||||
/datum/custom_item/proc/apply_to_item(var/obj/item/item)
|
||||
/datum/custom_item/proc/apply_to_item(obj/item/item)
|
||||
if(!item)
|
||||
return
|
||||
if(name)
|
||||
@@ -74,7 +74,7 @@ GLOBAL_LIST_INIT(custom_items, load_custom_items())
|
||||
K.set_info(kit_name, kit_desc, kit_icon, additional_data = additional_data)
|
||||
return item
|
||||
|
||||
/datum/custom_item/proc/apply_inherit_inhands(var/obj/item/item)
|
||||
/datum/custom_item/proc/apply_inherit_inhands(obj/item/item)
|
||||
var/list/new_item_icons = list()
|
||||
var/list/new_item_state_slots = list()
|
||||
|
||||
@@ -94,7 +94,7 @@ GLOBAL_LIST_INIT(custom_items, load_custom_items())
|
||||
item.item_icons = new_item_icons
|
||||
|
||||
//this has to mirror the way update_inv_*_hand() selects the state
|
||||
/datum/custom_item/proc/get_state(var/obj/item/item, var/slot_str, var/hand_str)
|
||||
/datum/custom_item/proc/get_state(obj/item/item, slot_str, hand_str)
|
||||
var/t_state
|
||||
if(LAZYACCESS(item.item_state_slots, slot_str))
|
||||
t_state = item.item_state_slots[slot_str]
|
||||
@@ -107,7 +107,7 @@ GLOBAL_LIST_INIT(custom_items, load_custom_items())
|
||||
return t_state
|
||||
|
||||
//this has to mirror the way update_inv_*_hand() selects the icon
|
||||
/datum/custom_item/proc/get_icon(var/obj/item/item, var/slot_str, var/icon/hand_icon)
|
||||
/datum/custom_item/proc/get_icon(obj/item/item, slot_str, icon/hand_icon)
|
||||
var/icon/t_icon
|
||||
if(item.icon_override)
|
||||
t_icon = item.icon_override
|
||||
@@ -223,7 +223,7 @@ GLOBAL_LIST_INIT(custom_items, load_custom_items())
|
||||
place_custom_item(M,citem)
|
||||
|
||||
// Places the item on the target mob.
|
||||
/proc/place_custom_item(mob/living/carbon/human/M, var/datum/custom_item/citem)
|
||||
/proc/place_custom_item(mob/living/carbon/human/M, datum/custom_item/citem)
|
||||
|
||||
if(!citem) return
|
||||
var/obj/item/newitem = citem.spawn_item()
|
||||
|
||||
Reference in New Issue
Block a user