[MIRROR] Fixes Russian Roulette [MDB IGNORE] (#10396)

* Fixes Russian Roulette (#63636)

* Cheater.

* Fixes Russian Roulette

Co-authored-by: SarmentiCampbell <61919894+SarmentiCampbell@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-02 12:59:49 +00:00
committed by GitHub
co-authored by SarmentiCampbell
parent db36cadb23
commit ed3d50871a
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -89,6 +89,8 @@
var/flip_cooldown = 0
var/suppressor_x_offset ///pixel offset for the suppressor overlay on the x axis.
var/suppressor_y_offset ///pixel offset for the suppressor overlay on the y axis.
/// Check if you are able to see if a weapon has a bullet loaded in or not.
var/hidden_chambered = FALSE
///Gun internal magazine modification and misfiring
@@ -494,7 +496,7 @@
var/count_chambered = !(bolt_type == BOLT_TYPE_NO_BOLT || bolt_type == BOLT_TYPE_OPEN)
. += "It has [get_ammo(count_chambered)] round\s remaining."
if (!chambered)
if (!chambered && !hidden_chambered)
. += "It does not seem to have a round chambered."
if (bolt_locked)
. += "The [bolt_wording] is locked back and needs to be released before firing or de-fouling."
@@ -188,6 +188,7 @@
icon_state = "russianrevolver"
mag_type = /obj/item/ammo_box/magazine/internal/cylinder/rus357
var/spun = FALSE
hidden_chambered = TRUE //Cheater.
/obj/item/gun/ballistic/revolver/russian/do_spin()
. = ..()