From 794fdd9edfe945016b354e2f3f8e17c1d7e6297d Mon Sep 17 00:00:00 2001 From: Bierkraan Date: Tue, 9 Jan 2024 22:16:50 +0100 Subject: [PATCH] has_scope var --- code/modules/1713/siege/cannon_types.dm | 1 + code/modules/1713/siege/piece.dm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/1713/siege/cannon_types.dm b/code/modules/1713/siege/cannon_types.dm index 66284d2945..a5126a91c2 100644 --- a/code/modules/1713/siege/cannon_types.dm +++ b/code/modules/1713/siege/cannon_types.dm @@ -29,6 +29,7 @@ is_naval = TRUE course = TRUE naval_position = "middle" + has_scope = FALSE /obj/structure/cannon/modern/naval/attack_hand(var/mob/user) if (ishuman(user) && (map.ID == MAP_CAMPAIGN || map.ID == MAP_BATTLE_SHIPS)) diff --git a/code/modules/1713/siege/piece.dm b/code/modules/1713/siege/piece.dm index 02ca41cd13..4cd88b43f0 100644 --- a/code/modules/1713/siege/piece.dm +++ b/code/modules/1713/siege/piece.dm @@ -38,6 +38,7 @@ var/degree = 270 var/distance = 5 + var/has_scope = TRUE var/scope_mod = "Disabled" var/target_x = 0 var/target_y = -5 @@ -885,7 +886,7 @@ Shell: [loaded.len ? loaded[1].name : (autoloader ? "Click here to load shell" : "No shell loaded")][see_amount_loaded ? (loaded.len ? " There are [loaded.len] [loaded[1].name]s loaded." : " There is nothing loaded.") : ""]

Increase/Decrease distance: -1 | [distance] meters | +1

Increase/Decrease azimuth: +10 | +1 | [azimuth] degrees | -1 | -10

- Scope: [scope_mod]

+ Scope: [has_scope ? ("[scope_mod]") : "This weapon has no scope" ]


FIRE!