496 B
496 B
Hints
1. Introduce yourself
- The [
option.unwrapfunction][unwrap] can be used to get the value from an option, or a default value if there is no value.
2. Implement the revive mechanic
- Option values can be created using the
SomeandNoneconstructors from thegleam/optionmodule.
3. Implement the spell casting mechanic
- The
int.maxfunction can be used to make sure the health does not go below 0.