removes monster to-hit bonus from player

This commit is contained in:
Llywelwyn 2023-08-22 13:11:21 +01:00
parent f55f4504db
commit bd90c3f760
8 changed files with 41 additions and 12 deletions

View file

@ -17,7 +17,7 @@ pub fn hp_per_level(rng: &mut rltk::RandomNumberGenerator, constitution: i32) ->
#[allow(dead_code)]
/// Returns a total HP roll for a player, based on a given constitution score and level.
pub fn player_hp_at_level(rng: &mut rltk::RandomNumberGenerator, constitution: i32, level: i32) -> i32 {
let mut total = 10 + attr_bonus(constitution);
let mut total = 8 + attr_bonus(constitution);
for _i in 0..level {
total += hp_per_level(rng, constitution);
}