6ef421be42
* Renames a few variables. Also reorders fallback order again. Renames item_state to inhand_icon_state Renames mob_overlay_icon to worn_icon Renames mob_overlay_state to worn_icon_state worn_icon_state/mob_overlay_state now never gets used for inhands. * Fixes some comments * Fixes map issue * Restart lints * Properly resolves conflicts
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
/proc/getbrokeninhands()
|
|
var/text
|
|
for(var/A in typesof(/obj/item))
|
|
var/obj/item/O = new A( locate(1,1,1) )
|
|
if(!O)
|
|
continue
|
|
var/icon/IL = new(O.lefthand_file)
|
|
var/list/Lstates = IL.IconStates()
|
|
var/icon/IR = new(O.righthand_file)
|
|
var/list/Rstates = IR.IconStates()
|
|
var/icon/J = new(O.icon)
|
|
var/list/istates = J.IconStates()
|
|
if(!Lstates.Find(O.icon_state) && !Lstates.Find(O.inhand_icon_state))
|
|
if(O.icon_state)
|
|
text += "[O.type] WANTS IN LEFT HAND CALLED\n\"[O.icon_state]\".\n"
|
|
if(!Rstates.Find(O.icon_state) && !Rstates.Find(O.inhand_icon_state))
|
|
if(O.icon_state)
|
|
text += "[O.type] WANTS IN RIGHT HAND CALLED\n\"[O.icon_state]\".\n"
|
|
|
|
|
|
if(O.icon_state)
|
|
if(!istates.Find(O.icon_state))
|
|
text += "[O.type] MISSING NORMAL ICON CALLED\n\"[O.icon_state]\" IN \"[O.icon]\"\n"
|
|
if(O.inhand_icon_state)
|
|
if(!istates.Find(O.inhand_icon_state))
|
|
text += "[O.type] MISSING NORMAL ICON CALLED\n\"[O.inhand_icon_state]\" IN \"[O.icon]\"\n"
|
|
text+="\n"
|
|
qdel(O)
|
|
if(text)
|
|
var/F = file("broken_icons.txt")
|
|
fdel(F)
|
|
WRITE_FILE(F, text)
|
|
to_chat(world, "Completely successfully and written to [F]", confidential = TRUE)
|
|
|
|
|