diff --git a/code/modules/clothing/spacesuits/alien.dm b/code/modules/clothing/spacesuits/alien.dm index 7e35f4f1921..97446a95d27 100644 --- a/code/modules/clothing/spacesuits/alien.dm +++ b/code/modules/clothing/spacesuits/alien.dm @@ -149,28 +149,53 @@ /obj/item/clothing/shoes/magboots/vox desc = "A pair of heavy, jagged armoured foot pieces, seemingly suitable for a velociraptor." - name = "vox boots" + name = "vox magclaws" item_state = "boots-vox" icon_state = "boots-vox" species_restricted = list("Vox") + action_button_name = "Toggle the magclaws" - toggle() - //set name = "Toggle Floor Grip" - if(usr.stat) +//make sure these can only be used when equipped. +/obj/item/clothing/shoes/magboots/vox/proc/can_use() + if(!ismob(loc)) + return 0 + + var/mob/M = loc + if(src in M.get_equipped_items()) + return 1 + else + return 0 + +/obj/item/clothing/shoes/magboots/vox/attack_self(mob/user) + if(src.magpulse) + flags &= ~NOSLIP + magpulse = 0 + canremove = 1 + user << "You relax your deathgrip on the flooring." + else + if (!can_use()) + user << "You will have to put on the [src] before you can do that." return - if(src.magpulse) - src.flags &= ~NOSLIP - src.magpulse = 0 - usr << "You relax your deathgrip on the flooring." - else - src.flags |= NOSLIP - src.magpulse = 1 - usr << "You dig your claws deeply into the flooring, bracing yourself." + + flags |= NOSLIP + magpulse = 1 + canremove = 0 //kinda hard to take off magclaws when you are gripping them tightly. + user << "You dig your claws deeply into the flooring, bracing yourself." + user << "It would be hard to take off the [src] without relaxing your grip first." +//In case they somehow come off while enabled. +/obj/item/clothing/shoes/magboots/vox/dropped(mob/user as mob) + if(src.magpulse) + user.visible_message("The [src] go limp as they are removed from [usr]'s feet.", "The [src] go limp as they are removed from your feet.") + flags &= ~NOSLIP + magpulse = 0 + canremove = 1 - examine() - set src in view() - ..() +/obj/item/clothing/shoes/magboots/vox/examine() + set src in view() + ..() + if (magpulse) + usr << "It would be hard to take these off without relaxing your grip first." //theoretically this message should only be seen by the wearer when the claws are equipped. //Species-specific Syndicate rigs. @@ -282,4 +307,4 @@ icon_state = "unathi_breacher" item_state = "unathi_breacher" _color = "unathi_breacher" - slowdown = 1 \ No newline at end of file + slowdown = 1