Skip to content

Commit

Permalink
Adds more tactical binoculars mode overlays (#16372) (#214)
Browse files Browse the repository at this point in the history
Co-authored-by: jonashx <[email protected]>
  • Loading branch information
Helg2 and jonash07 authored Sep 6, 2024
1 parent 4ad304b commit 792d1fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions code/game/objects/items/binoculars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,15 @@

/obj/item/binoculars/tactical/update_overlays()
. = ..()
if(mode)
. += "binoculars_range"
else
. += "binoculars_laser"
switch(mode)
if(MODE_CAS)
. += "binoculars_cas"
if(MODE_RANGE_FINDER)
. += "binoculars_range"
if(MODE_RAILGUN)
. += "binoculars_railgun"
if(MODE_ORBITAL)
. += "binoculars_orbital"

/// Proc that when called checks if the selected mortar isnt out of list bounds and if it is, resets to 1
/obj/item/binoculars/tactical/proc/check_mortar_index()
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/firesupport_binoculars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@
/obj/item/binoculars/fire_support/update_overlays()
. = ..()
if(mode)
. += "binoculars_range"
. += "binoculars_cas"
else
. += "binoculars_laser"
. += "binoculars_orbital"

///Selects a firemode
/obj/item/binoculars/fire_support/proc/select_radial(mob/user)
Expand Down
Binary file modified icons/Marine/marine-navigation.dmi
Binary file not shown.

0 comments on commit 792d1fb

Please sign in to comment.