Skip to content

Commit

Permalink
code, now bug, free!
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Sep 26, 2023
1 parent 947e3da commit 0ea5077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@
new /obj/item/pamphlet/trait/vulture(src)

/obj/item/storage/box/guncase/vulture/skillless
storage_slots = 5

/obj/item/storage/box/guncase/vulture/skillless/fill_preset_inventory()
var/obj/item/weapon/gun/boltaction/vulture/skillless/rifle = new(src)
Expand Down
6 changes: 4 additions & 2 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,8 @@ Defined in conflicts.dm of the #defines folder.
var/darkness_view = 12
/// If there is currently a spotter using the linked spotting scope
var/spotter_spotting = FALSE
/// How much time it takes to adjust the position of the scope. Adjusting the offset will take half of this time
var/adjust_delay = 1 SECONDS

/obj/item/attachable/vulture_scope/Initialize(mapload, ...)
. = ..()
Expand Down Expand Up @@ -1289,7 +1291,7 @@ Defined in conflicts.dm of the #defines folder.
if(!COOLDOWN_FINISHED(src, scope_interact_cd))
return
to_chat(scoper, SPAN_NOTICE("You begin adjusting [src]..."))
COOLDOWN_START(src, scope_interact_cd, 0.5 SECONDS)
COOLDOWN_START(src, scope_interact_cd, adjust_delay / 2)
if(!do_after(scoper, 0.4 SECONDS))
return

Expand All @@ -1307,7 +1309,7 @@ Defined in conflicts.dm of the #defines folder.
return

to_chat(scoper, SPAN_NOTICE("You begin moving [src]..."))
COOLDOWN_START(src, scope_interact_cd, 1 SECONDS)
COOLDOWN_START(src, scope_interact_cd, adjust_delay)
if(!do_after(scoper, 0.8 SECONDS))
return

Expand Down

0 comments on commit 0ea5077

Please sign in to comment.