Skip to content

Commit

Permalink
Небольшие фиксы шлема
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Jan 16, 2025
1 parent c43762a commit 08f0d0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modular_bandastation/objects/code/items/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/obj/item/clothing/head/helmet/bike_helmet
/obj/item/clothing/head/helmet/biker_helmet
name = "biker helmet"
desc = "Крутой шлем."
icon = 'modular_bandastation/objects/icons/obj/clothing/head/helmet.dmi'
Expand All @@ -13,24 +13,24 @@
dog_fashion = null
var/on = TRUE

/obj/item/clothing/head/helmet/bike_helmet/replica
/obj/item/clothing/head/helmet/biker_helmet/replica
desc = "Крутой шлем. На вид хлипкий..."

/obj/item/clothing/head/helmet/bike_helmet/ui_action_click(mob/user, toggle_helmet)
/obj/item/clothing/head/helmet/biker_helmet/ui_action_click(mob/user, toggle_helmet)
helm_toggle(user)

/obj/item/clothing/head/helmet/bike_helmet/update_icon_state()
/obj/item/clothing/head/helmet/biker_helmet/update_icon_state()
icon_state = "[base_icon_state][on ? null : "_up" ]"
if (on)
flags_cover &= ~HEADCOVERSEYES
else
flags_cover |= HEADCOVERSEYES
return ..()

/obj/item/clothing/head/helmet/bike_helmet/proc/helm_toggle(mob/user)
/obj/item/clothing/head/helmet/biker_helmet/proc/helm_toggle(mob/user)
on = !on

update_icon_state()
update_appearance()

/obj/item/clothing/head/helmet/space/hardsuit/security
icon = 'modular_bandastation/objects/icons/obj/clothing/head/helmet.dmi'
Expand Down

0 comments on commit 08f0d0c

Please sign in to comment.