From e278521e545ab66a8c5b40461e875c35fd22594b Mon Sep 17 00:00:00 2001 From: Sharkmare <34294231+Sharkmare@users.noreply.github.com> Date: Tue, 5 Jan 2021 05:25:33 +0100 Subject: [PATCH] Changing the max value for the random egun sprite state Currently as defined an egun can be between egun1 and egun12, xenoarcheology_vr.dmi however does not currently support this as it only has 6 sprites while the original has 12. --- code/modules/xenoarcheaology/finds/find_spawning.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/xenoarcheaology/finds/find_spawning.dm b/code/modules/xenoarcheaology/finds/find_spawning.dm index b121724219b..c6be35df69d 100644 --- a/code/modules/xenoarcheaology/finds/find_spawning.dm +++ b/code/modules/xenoarcheaology/finds/find_spawning.dm @@ -295,7 +295,7 @@ if(spawn_type) var/obj/item/weapon/gun/energy/new_gun = new spawn_type(src.loc) new_item = new_gun - new_item.icon_state = "egun[rand(1,12)]" + new_item.icon_state = "egun[rand(1,6)]" //VOREStation Edit: max value is 6 since xenoarcheoloy_vr only has 6 egun variants new_gun.desc = "This is an antique energy weapon, you're not sure if it will fire or not." //5% chance to explode when first fired