Skip to content

Commit

Permalink
Merge branch 'master' into Pre-awaking-equipment
Browse files Browse the repository at this point in the history
  • Loading branch information
LC4492 authored Jan 21, 2024
2 parents 85431dc + a6a28b6 commit 4209312
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 16 deletions.
9 changes: 5 additions & 4 deletions code/game/objects/items/devices/whistle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
actions_types = list(/datum/action/item_action)

var/volume = 60
var/spamcheck = 0
var/spam_cooldown_time = 10 SECONDS
COOLDOWN_DECLARE(spam_cooldown)

/obj/item/device/whistle/attack_self(mob/user)
..()
Expand All @@ -28,14 +29,14 @@
..()

/obj/item/device/whistle/proc/whistle_playsound(mob/user)
if (spamcheck)
if(!COOLDOWN_FINISHED(src, spam_cooldown))
to_chat(user, SPAN_DANGER("You are out of breath after using [src]! Wait [COOLDOWN_SECONDSLEFT(src, spam_cooldown)] second\s."))
return

user.visible_message(SPAN_WARNING("[user] blows into [src]!"))
playsound(get_turf(src), 'sound/items/whistle.ogg', volume, 1, vary = 0)

spamcheck = 1
addtimer(VARSET_CALLBACK(src, spamcheck, FALSE), 3 SECONDS)
COOLDOWN_START(src, spam_cooldown, spam_cooldown_time)

/obj/item/device/whistle/MouseDrop(obj/over_object)
if(ishuman(usr))
Expand Down
12 changes: 12 additions & 0 deletions code/modules/client/preferences_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,26 @@ GLOBAL_LIST_EMPTY(gear_datums_by_name)
display_name = "Ballistic goggles, black"
path = /obj/item/clothing/glasses/mgoggles/black

/datum/gear/eyewear/goggles_black/prescription
display_name = "Prescription ballistic goggles, black"
path = /obj/item/clothing/glasses/mgoggles/black/prescription

/datum/gear/eyewear/goggles_orange
display_name = "Ballistic goggles, orange"
path = /obj/item/clothing/glasses/mgoggles/orange

/datum/gear/eyewear/goggles_orange/prescription
display_name = "Prescription ballistic goggles, orange"
path = /obj/item/clothing/glasses/mgoggles/orange/prescription

/datum/gear/eyewear/goggles2
display_name = "Ballistic goggles, M1A1"
path = /obj/item/clothing/glasses/mgoggles/v2

/datum/gear/eyewear/goggles2/prescription
display_name = "Prescription ballistic goggles, M1A1"
path = /obj/item/clothing/glasses/mgoggles/v2/prescription

/datum/gear/eyewear/bimex_shades
display_name = "BiMex personal shades"
path = /obj/item/clothing/glasses/sunglasses/big
Expand Down
24 changes: 24 additions & 0 deletions code/modules/clothing/glasses/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -434,20 +434,44 @@
active_icon_state = "mgogglesblk_down"
inactive_icon_state = "mgogglesblk"

/obj/item/clothing/glasses/mgoggles/black/prescription
name = "prescription black marine ballistic goggles"
desc = "Standard issue USCM goggles. While commonly found mounted atop M10 pattern helmets, they are also capable of preventing insects, dust, and other things from getting into one's eyes. This one has black tinted lenses. ntop of that, these ones contain prescription lenses."
icon_state = "mgogglesblk"
active_icon_state = "mgogglesblk_down"
inactive_icon_state = "mgogglesblk"
prescription = TRUE

/obj/item/clothing/glasses/mgoggles/orange
name = "orange marine ballistic goggles"
desc = "Standard issue USCM goggles. While commonly found mounted atop M10 pattern helmets, they are also capable of preventing insects, dust, and other things from getting into one's eyes. This one has amber colored day lenses."
icon_state = "mgogglesorg"
active_icon_state = "mgogglesorg_down"
inactive_icon_state = "mgogglesorg"

/obj/item/clothing/glasses/mgoggles/orange/prescription
name = "prescription orange marine ballistic goggles"
desc = "Standard issue USCM goggles. While commonly found mounted atop M10 pattern helmets, they are also capable of preventing insects, dust, and other things from getting into one's eyes. This one has amber colored day lenses."
icon_state = "mgogglesorg"
active_icon_state = "mgogglesorg_down"
inactive_icon_state = "mgogglesorg"
prescription = TRUE

/obj/item/clothing/glasses/mgoggles/v2
name = "M1A1 marine ballistic goggles"
desc = "Newer issue USCM goggles. While commonly found mounted atop M10 pattern helmets, they are also capable of preventing insects, dust, and other things from getting into one's eyes. This version has larger lenses."
icon_state = "mgoggles2"
active_icon_state = "mgoggles2_down"
inactive_icon_state = "mgoggles2"

/obj/item/clothing/glasses/mgoggles/v2/prescription
name = "prescription M1A1 marine ballistic goggles"
desc = "Newer issue USCM goggles. While commonly found mounted atop M10 pattern helmets, they are also capable of preventing insects, dust, and other things from getting into one's eyes. This version has larger lenses."
icon_state = "mgoggles2"
active_icon_state = "mgoggles2_down"
inactive_icon_state = "mgoggles2"
prescription = TRUE

/obj/item/clothing/glasses/mgoggles/on_enter_storage(obj/item/storage/internal/S)
..()

Expand Down
3 changes: 3 additions & 0 deletions code/modules/clothing/head/head.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@
/obj/item/clothing/glasses/mgoggles = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/prescription = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/black = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/black/prescription = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/orange = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/orange/prescription = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/v2 = HAT_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/v2/prescription = HAT_GARB_RELAY_ICON_STATE,
/obj/item/prop/helmetgarb/helmet_nvg = HAT_GARB_RELAY_ICON_STATE,
/obj/item/prop/helmetgarb/helmet_nvg/cosmetic = HAT_GARB_RELAY_ICON_STATE,
/obj/item/prop/helmetgarb/helmet_nvg/marsoc = HAT_GARB_RELAY_ICON_STATE,
Expand Down
3 changes: 3 additions & 0 deletions code/modules/clothing/head/helmet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,12 @@ GLOBAL_LIST_INIT(allowed_helmet_items, list(
// EYEWEAR
/obj/item/clothing/glasses/mgoggles = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/v2 = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/v2/prescription = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/prescription = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/black = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/black/prescription = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/orange = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/mgoggles/orange/prescription = HELMET_GARB_RELAY_ICON_STATE,
/obj/item/clothing/glasses/sunglasses = "sunglasses",
/obj/item/clothing/glasses/sunglasses/prescription = "sunglasses",
/obj/item/clothing/glasses/sunglasses/aviator = "aviator",
Expand Down
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-5441.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-5495.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-5496.yml

This file was deleted.

14 changes: 14 additions & 0 deletions html/changelogs/archive/2024-01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,17 @@
- bugfix: Fixed mobs merged with weeds remaining ignited
SabreML:
- bugfix: Fixed the 'busy' circle icon being drawn above darkness and screen effects.
2024-01-21:
ClairionCM:
- qol: made whistles less spammy
Huffie56:
- rscadd: 'Add some boards to the board vendor in engi on almayer(Air Alarm Electronics,
Security Camera Monitor,
Station Alerts, Arcade, Atmospheric Monitor).'
Releasethesea:
- rscadd: adds prescription variants of the orange, black, and M1A1 goggles
SabreML:
- rscadd: Made larvae and facehuggers able to use custom emotes.
Vicacrov:
- bugfix: Fixes engine/weapon attach points layering below the dropship walls.

0 comments on commit 4209312

Please sign in to comment.