|
|
@ -91,9 +91,9 @@ impl Character {
|
|
|
|
|
|
|
|
|
|
|
|
pub fn init_hp_mp(&mut self, encounter_type: EncounterType) {
|
|
|
|
pub fn init_hp_mp(&mut self, encounter_type: EncounterType) {
|
|
|
|
if encounter_type == EncounterType::Physical {
|
|
|
|
if encounter_type == EncounterType::Physical {
|
|
|
|
self.hp = (self.stat(Stat::CON) + self.stat(Stat::STB)) * 3;
|
|
|
|
self.hp = (self.stat(Stat::CON) + self.stat(Stat::STB)) * (2 + self.proficiency);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
self.mp = (self.stat(Stat::CMP) + self.stat(Stat::CHA)) * 3;
|
|
|
|
self.mp = (self.stat(Stat::CMP) + self.stat(Stat::CHA)) * (2 + self.proficiency);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|