changes to characters and potions, work in progress
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
#include <algorithm>
|
||||
|
||||
restore_health::restore_health():
|
||||
potion{potion_type::restore_health, -1} {}
|
||||
potion{potion_type::restore_health, -1, {0, 0}} {}
|
||||
|
||||
void restore_health::apply(enum race &race, int &HP, int &ATK, int &DEF,
|
||||
float &base_hit_rate) {
|
||||
void restore_health::apply(const enum race &race, int &HP, int &ATK, int &DEF,
|
||||
fraction &base_hit_rate) {
|
||||
if (remaining_duration > 0) {
|
||||
if (race == rdrow)
|
||||
HP = std::min(HP + 7, MAX_HP[race]);
|
||||
|
Reference in New Issue
Block a user