ping update

This commit is contained in:
ntr
2019-05-02 14:37:11 +10:00
parent 22e3dae9be
commit 269e29fcb0
10 changed files with 54 additions and 9 deletions
+4
View File
@@ -241,6 +241,10 @@ impl Cryp {
}
pub fn spec_add(&mut self, spec: Spec) -> Result<&mut Cryp, Error> {
if self.specs.len() >= 6 {
return Err(err_msg("maximum specs equipped"));
}
self.specs.push(spec);
return Ok(self.calculate_colours());
}