ping update
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user