diff --git a/core/src/construct.rs b/core/src/construct.rs index 9dccc33d..7adf0d54 100644 --- a/core/src/construct.rs +++ b/core/src/construct.rs @@ -309,6 +309,10 @@ impl Construct { } pub fn spec_add(&mut self, spec: Spec) -> Result<&mut Construct, Error> { + // if self.specs.len() >= 3 { + // return Err(err_msg("maximum specs equipped")); + // } + self.specs.push(spec); return Ok(self.calculate_colours()); } diff --git a/core/src/player.rs b/core/src/player.rs index 6e5d34d0..a29e90fa 100644 --- a/core/src/player.rs +++ b/core/src/player.rs @@ -389,9 +389,11 @@ impl Player { // } // }); - // for construct in self.constructs.iter_mut() { - // construct.apply_modifiers(&player_colours); - // } + let player_colours = Colours { red: 0, blue: 0, green: 0 }; + + for construct in self.constructs.iter_mut() { + construct.apply_modifiers(&player_colours); + } Ok(self) }