Skip to content

Commit

Permalink
Исправление модулей на шлем (#353)
Browse files Browse the repository at this point in the history
* фикс модулей на шлем

* Update loadout_ec_skillbadges.dm

* Update loadout_ec_skillbadges.dm

* Update loadout_ec_skillbadges.dm
  • Loading branch information
polerno authored Nov 19, 2023
1 parent 261a652 commit 24510f3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
11 changes: 10 additions & 1 deletion code/modules/clothing/under/accessories/goggle_mods.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
)
activation_sound = 'sound/items/goggles_charge.ogg'

/obj/item/clothing/accessory/glassesmod/on_update_icon()
icon_state = initial(icon_state)
if (active == 0)
icon_state += "_off"
if (active == 1)
icon_state -= "_off"
update_clothing_icon()



/obj/item/clothing/accessory/glassesmod/proc/process_hud(mob/M)
return

Expand All @@ -43,7 +53,6 @@
slot = ACCESSORY_SLOT_VISOR
see_invisible = SEE_INVISIBLE_NOLIGHTING
toggleable = TRUE
off_state = "nvgoff"
electric = TRUE
nvg = TRUE
darkness_view = 4
Expand Down
Binary file modified icons/mob/onmob/onmob_goggle_mod.dmi
Binary file not shown.
Binary file modified icons/obj/clothing/obj_accessories.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions maps/torch/loadout/loadout_ec_skillbadges.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@
allowed_skills = list(
SKILL_SCIENCE = SKILL_ADEPT
)

11 changes: 11 additions & 0 deletions proxima/code/modules/clothing/accessories/patch.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/obj/item/clothing/accessory/solgov/skillbadge/weapon
name = "marksman specialist badge"
desc = "This patch is an indicator of your skill with ranged weapons."
icon = 'icons/obj/clothing/obj_accessories.dmi'
icon_state = "patch_marksman"

/obj/item/clothing/accessory/solgov/skillbadge/iic
name = "interstellar infantry corps patch"
desc = "This is a regular Interstellar Infantry Corps patch."
icon = 'icons/obj/clothing/obj_accessories.dmi'
icon_state = "patch_specialforces"

0 comments on commit 24510f3

Please sign in to comment.