mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Compile fix for a fix for legcuffs.
This commit is contained in:
@@ -147,10 +147,10 @@
|
|||||||
if(new_shoe_icon_state && new_shoe_name)
|
if(new_shoe_icon_state && new_shoe_name)
|
||||||
for(var/obj/item/clothing/shoes/S in contents)
|
for(var/obj/item/clothing/shoes/S in contents)
|
||||||
//world << "DEBUG: YUP! FOUND IT!"
|
//world << "DEBUG: YUP! FOUND IT!"
|
||||||
if (S.chained == 1)
|
if (istype(S,/obj/item/clothing/shoes/orange))
|
||||||
S.chained = 0
|
var/obj/item/clothing/shoes/orange/L = S
|
||||||
S.slowdown = SHOES_SLOWDOWN
|
if (L.chained)
|
||||||
new /obj/item/weapon/handcuffs( src )
|
L.remove_cuffs()
|
||||||
S.icon_state = new_shoe_icon_state
|
S.icon_state = new_shoe_icon_state
|
||||||
S.item_color = wash_color
|
S.item_color = wash_color
|
||||||
S.name = new_shoe_name
|
S.name = new_shoe_name
|
||||||
|
|||||||
@@ -84,9 +84,9 @@
|
|||||||
name = "orange shoes"
|
name = "orange shoes"
|
||||||
icon_state = "orange"
|
icon_state = "orange"
|
||||||
item_color = "orange"
|
item_color = "orange"
|
||||||
var/chained = null
|
var/obj/item/weapon/handcuffs/chained = null
|
||||||
|
|
||||||
/obj/item/clothing/shoes/orange/proc/attach_cuffs(/obj/item/weapon/handcuffs/cuffs)
|
/obj/item/clothing/shoes/orange/proc/attach_cuffs(var/obj/item/weapon/handcuffs/cuffs)
|
||||||
if (src.chained) return
|
if (src.chained) return
|
||||||
|
|
||||||
cuffs.loc = src
|
cuffs.loc = src
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
/obj/item/clothing/shoes/orange/proc/remove_cuffs()
|
/obj/item/clothing/shoes/orange/proc/remove_cuffs()
|
||||||
if (!src.chained) return
|
if (!src.chained) return
|
||||||
|
|
||||||
src.chained.loc = get_turf(src)
|
src.chained.loc = get_turf(src)
|
||||||
src.slowdown = initial(slowdown)
|
src.slowdown = initial(slowdown)
|
||||||
src.icon_state = "orange"
|
src.icon_state = "orange"
|
||||||
|
|||||||
Reference in New Issue
Block a user