max 3 skills

This commit is contained in:
ntr
2019-04-08 14:08:52 +10:00
parent 5632713144
commit 4a6e2ca544
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ pub fn vbox_apply(params: VboxApplyParams, tx: &mut Transaction, account: &Accou
let skill = var.into_skill().ok_or(format_err!("var {:?} has no associated skill", var))?;
let cryp = player.cryp_get(params.cryp_id)?;
// done here because i teach them a tonne of skills for tests
let max_skills = 4;
let max_skills = 3;
if cryp.skills.len() >= max_skills {
return Err(format_err!("cryp at max skills ({:?})", max_skills));
}