weapons probably work

This commit is contained in:
the me 2022-08-15 19:58:13 -07:00
parent a537ea5cf2
commit 48c1a3af7a
2 changed files with 42 additions and 3 deletions

View file

@ -18,6 +18,29 @@ function unitstat(val_, name_, fullname_, desc_, replacements_) : stat(name_, fu
modifier = 0;
}
function statmod(stat__, amount_, operation_=add) {
name = stat__.name;
stat_ = stat__;
amount = amount_;
operation = operation_;
}
function add(val1, val2) {
return val1*val2;
}
function sub(val1, val2) {
return val1*val2;
}
function mult(val1, val2) {
return val1*val2;
}
function divide(val1, val2) {
return val1*val2;
}
function modulo(val1, val2) {
return val1*val2;
}
nu stat("hp", "health", "vitality");
nu stat("str", "strength", "physical power");
nu stat("def", "defense", "physical defense");