Skip to content

Commit

Permalink
Fix linters error
Browse files Browse the repository at this point in the history
  • Loading branch information
Drsmail committed Jan 31, 2025
1 parent 1538fc9 commit db8eca8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion code/datums/components/element_chameleon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

if(chameleon_type_name == "Glasses")
var/datum/component/chameleon_system/sys = user.GetComponent(/datum/component/chameleon_system)
if(slot == ITEM_SLOT_EYES )
if(slot == ITEM_SLOT_EYES)
sys.give_scan()

if(slot != ITEM_SLOT_EYES && sys.scan)
Expand Down
21 changes: 11 additions & 10 deletions code/modules/clothing/chameleon/system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
//////////////////////////////

// Called when iteam with chameleon component is pickid up by mob, now this item is trucked by system.
/datum/component/chameleon_system/proc/link_item(var/obj/item/item, name, type, blacklist)
/datum/component/chameleon_system/proc/link_item(obj/item/I, name, type, blacklist)

if(!length(system_items_names))
change_all = new(system_owner)
Expand All @@ -69,25 +69,25 @@
//if(!is_type_in_list(item, system_items))
if(!items_disguises[name])
// caled onece for every unique chameleon type item.
initialize_item_disguises(item, name, type, blacklist)
initialize_item_disguises(I, name, type, blacklist)


// TODO TEST 2 IDENTICAL ITEMS
system_items_UIDs.Add(item.UID())
system_items_UIDs.Add(I.UID())
system_items_names.Add(name)
system_items_types.Add(type)



// Called when item leaves mob inventory and hands, now we no longer control this item
/datum/component/chameleon_system/proc/is_item_in_system(var/obj/item/item)
return system_items_UIDs.Find(item.UID())
/datum/component/chameleon_system/proc/is_item_in_system(obj/item/I)
return system_items_UIDs.Find(I.UID())



/datum/component/chameleon_system/proc/unlink_item(var/obj/item/item, name, type, blacklist)
/datum/component/chameleon_system/proc/unlink_item(obj/item/I, name, type, blacklist)
// TODO TEST 2 IDENTICAL ITEMS
system_items_UIDs.Remove(item.UID())
system_items_UIDs.Remove(I.UID())
system_items_names.Remove(name)
system_items_types.Remove(type)

Expand All @@ -100,7 +100,7 @@


// Adds new "type" of item and it's disguises options in global list
/datum/component/chameleon_system/proc/initialize_item_disguises(obj/item, chameleon_name, chameleon_type, chameleon_blacklist)
/datum/component/chameleon_system/proc/initialize_item_disguises(obj/item/item, chameleon_name, chameleon_type, chameleon_blacklist)

chameleon_blacklist |= typecacheof(item.type)
items_disguises[chameleon_name] = list()
Expand Down Expand Up @@ -263,7 +263,7 @@


// Memory Helpers
/datum/component/chameleon_system/proc/get_memory_names(var/item)
/datum/component/chameleon_system/proc/get_memory_names(/obj/item/item)
var/list/save_slot_names = list()
for(var/i in 1 to CHAMELEON_MEMORY_SLOTS)
save_slot_names += chameleon_memory[i]["name"]
Expand Down Expand Up @@ -314,7 +314,8 @@

user.changeNext_click(5)

if(!ishuman(target)) // can scan only crew PunPun is human to :( ) // TODO FIX
// can scan only crew PunPun is human to :( ) // TODO FIX
if(!ishuman(target))
return

to_chat(user, "<span class='warning'>You have scaned [target.name].</span>")
Expand Down

0 comments on commit db8eca8

Please sign in to comment.