This commit is contained in:
unknown
2014-06-09 12:35:00 -04:00
parent fde799dc53
commit 58700869fe
3 changed files with 26 additions and 17 deletions

View File

@@ -550,6 +550,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
//Will return the location of the turf an atom is ultimatly sitting on
//isn't this just a null-reference-vulnerable copy of /proc/get_turf()?
/proc/get_turf_loc(var/atom/movable/M) //gets the location of the turf that the atom is on, or what the atom is in is on, etc
//in case they're in a closet or sleeper or something
var/atom/loc = M.loc

View File

@@ -172,7 +172,6 @@ BLIND // can't see anything
icon = 'icons/obj/clothing/shoes.dmi'
desc = "Comfortable-looking shoes."
gender = PLURAL //Carn: for grammarically correct text-parsing
var/chained = 0
siemens_coefficient = 0.9
body_parts_covered = FEET
slot_flags = SLOT_FEET

View File

@@ -84,22 +84,31 @@
name = "orange shoes"
icon_state = "orange"
item_color = "orange"
var/chained = null
/obj/item/clothing/shoes/orange/proc/attach_cuffs(/obj/item/weapon/handcuffs/cuffs)
if (src.chained) return
cuffs.loc = src
src.chained = cuffs
src.slowdown = 15
src.icon_state = "orange1"
/obj/item/clothing/shoes/orange/proc/remove_cuffs()
if (!src.chained) return
src.chained.loc = get_turf(src)
src.slowdown = initial(slowdown)
src.icon_state = "orange"
src.chained = null
/obj/item/clothing/shoes/orange/attack_self(mob/user as mob)
if (src.chained)
src.chained = null
src.slowdown = SHOES_SLOWDOWN
new /obj/item/weapon/handcuffs( user.loc )
src.icon_state = "orange"
return
/obj/item/clothing/shoes/orange/attackby(H as obj, loc)
..()
if ((istype(H, /obj/item/weapon/handcuffs) && !( src.chained )))
//H = null
if (src.icon_state != "orange") return
del(H)
src.chained = 1
src.slowdown = 15
src.icon_state = "orange1"
return
remove_cuffs()
/obj/item/clothing/shoes/orange/attackby(H as obj, mob/user as mob)
..()
if (istype(H, /obj/item/weapon/handcuffs))
attach_cuffs(H)