From 083a1b054f87ce2fa68bb9e66c1ab4ced293692c Mon Sep 17 00:00:00 2001 From: "Tormod G. Hellen" Date: Sat, 3 Apr 2021 01:46:09 +0200 Subject: [PATCH] Make randoms use green lantern. --- server/src/rtsim/entity.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/rtsim/entity.rs b/server/src/rtsim/entity.rs index 57eada69a4..624a5668c8 100644 --- a/server/src/rtsim/entity.rs +++ b/server/src/rtsim/entity.rs @@ -97,13 +97,16 @@ impl Entity { _ => None, }; - let lantern = match rng.gen_range(0..3) { + let lantern = match rng.gen_range(0..4) { 0 => Some(comp::Item::new_from_asset_expect( "common.items.lantern.black_0", )), 1 => Some(comp::Item::new_from_asset_expect( "common.items.lantern.blue_0", )), + 2 => Some(comp::Item::new_from_asset_expect( + "common.items.lantern.green_0", + )), _ => Some(comp::Item::new_from_asset_expect( "common.items.lantern.red_0", )),