mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 19:39:42 +01:00
running in impractical footwear makes you trip (#10809)
This commit is contained in:
@@ -668,6 +668,7 @@
|
||||
pickup_sound = 'sound/items/pickup/shoes.ogg'
|
||||
|
||||
var/can_hold_knife
|
||||
var/footstep = 1
|
||||
var/obj/item/holding
|
||||
|
||||
var/shoes_under_pants = 0
|
||||
@@ -677,6 +678,7 @@
|
||||
var/overshoes = 0
|
||||
species_restricted = list("exclude",BODYTYPE_UNATHI,BODYTYPE_TAJARA,BODYTYPE_VAURCA,BODYTYPE_VAURCA_BREEDER,BODYTYPE_VAURCA_WARFORM)
|
||||
var/silent = 0
|
||||
var/last_trip = 0
|
||||
|
||||
/obj/item/clothing/shoes/proc/draw_knife()
|
||||
set name = "Draw Boot Knife"
|
||||
@@ -752,6 +754,22 @@
|
||||
var/mob/M = src.loc
|
||||
M.update_inv_shoes()
|
||||
|
||||
/obj/item/clothing/shoes/proc/trip_up(var/turf/walking, var/running)
|
||||
if(!running)
|
||||
if(footstep >= 2)
|
||||
footstep = 0
|
||||
else
|
||||
footstep++
|
||||
else
|
||||
if(prob(5))
|
||||
if(last_trip <= world.time - 20) //So you don't trip immediately after.
|
||||
last_trip = world.time
|
||||
if(ismob(loc))
|
||||
var/mob/M = loc
|
||||
M.Weaken(3)
|
||||
to_chat(M, SPAN_WARNING("You trip from running in \the [src]!"))
|
||||
return
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//Suit
|
||||
/obj/item/clothing/suit
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
desc = "Taller synthleather boots with an artificial shine."
|
||||
icon_state = "kneeboots"
|
||||
item_state = "kneeboots"
|
||||
|
||||
/obj/item/clothing/shoes/jackboots/knee/handle_movement(var/turf/walking, var/running)
|
||||
trip_up(walking, running)
|
||||
|
||||
/obj/item/clothing/shoes/jackboots/thigh
|
||||
name = "thigh-length black boots"
|
||||
@@ -35,6 +38,9 @@
|
||||
icon_state = "thighboots"
|
||||
item_state = "thighboots"
|
||||
|
||||
/obj/item/clothing/shoes/jackboots/thigh/handle_movement(var/turf/walking, var/running)
|
||||
trip_up(walking, running)
|
||||
|
||||
/obj/item/clothing/shoes/jackboots/toeless
|
||||
name = "toe-less black boots"
|
||||
desc = "Modified pair of boots, particularly friendly to those species whose toes hold claws."
|
||||
|
||||
@@ -81,7 +81,6 @@ obj/item/clothing/shoes/sandal/clogs
|
||||
icon_state = "clown"
|
||||
item_state = "clown_shoes"
|
||||
slowdown = 1
|
||||
var/footstep = 1 //used for squeeks whilst walking
|
||||
species_restricted = null
|
||||
|
||||
/obj/item/clothing/shoes/clown_shoes/handle_movement(var/turf/walking, var/running)
|
||||
@@ -197,6 +196,9 @@ obj/item/clothing/shoes/sandal/clogs
|
||||
M = user
|
||||
return eyestab(M,user)
|
||||
|
||||
/obj/item/clothing/shoes/heels/handle_movement(var/turf/walking, var/running)
|
||||
trip_up(walking, running)
|
||||
|
||||
/obj/item/clothing/shoes/winter
|
||||
name = "winter boots"
|
||||
desc = "A pair of heavy winter boots made out of animal furs, reaching up to the knee."
|
||||
|
||||
Reference in New Issue
Block a user