Merge branch 'automnml' of ssh://git.mnml.gg:40022/~/mnml into automnml
This commit is contained in:
commit
6026203066
@ -309,6 +309,10 @@ impl Construct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn spec_add(&mut self, spec: Spec) -> Result<&mut Construct, Error> {
|
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);
|
self.specs.push(spec);
|
||||||
return Ok(self.calculate_colours());
|
return Ok(self.calculate_colours());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -389,9 +389,11 @@ impl Player {
|
|||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
|
|
||||||
// for construct in self.constructs.iter_mut() {
|
let player_colours = Colours { red: 0, blue: 0, green: 0 };
|
||||||
// construct.apply_modifiers(&player_colours);
|
|
||||||
// }
|
for construct in self.constructs.iter_mut() {
|
||||||
|
construct.apply_modifiers(&player_colours);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(self)
|
Ok(self)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user