From 36762be2a7a682734d042beab24d73c334cb5e7b Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 30 Aug 2020 12:08:26 -0500 Subject: [PATCH] Fixed explosion color of sceptre M2. --- voxygen/src/scene/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/voxygen/src/scene/mod.rs b/voxygen/src/scene/mod.rs index 9757957998..1c7b86d7d0 100644 --- a/voxygen/src/scene/mod.rs +++ b/voxygen/src/scene/mod.rs @@ -390,7 +390,7 @@ impl Scene { pos, power, reagent, - .. + percent_damage, } => self.event_lights.push(EventLight { light: Light::new( *pos, @@ -400,7 +400,13 @@ impl Scene { Some(Reagent::Purple) => Rgb::new(0.7, 0.0, 1.0), Some(Reagent::Red) => Rgb::new(1.0, 0.0, 0.0), Some(Reagent::Yellow) => Rgb::new(1.0, 1.0, 0.0), - None => Rgb::new(1.0, 0.5, 0.0), + None => { + if *percent_damage < 0.5 { + Rgb::new(0.0, 1.0, 0.0) + } else { + Rgb::new(1.0, 0.5, 0.0) + } + }, }, *power * match reagent {