Weapon combat fixes:

- Modified energy and speed scaling of sword, axe, and hammer combo melees.
 - Nerfed bow basic attack knockback. Buffed bow damage and energy regen.
 - Corrected xp values for theropods. Removed unnecessary function for xp increase per level.
 - Guards no longer flee at low health.
 - Buffed sword spin.
 - Nerfed axe spin and sword dash moderately.
 - Dash now takes a little time to reach full speed. Sword M2 and hammer M1 damage values tweaked.
This commit is contained in:
Sam
2020-11-25 14:19:11 -06:00
committed by Marcel Märtens
parent 00175e866b
commit 6a6260daa1
15 changed files with 57 additions and 63 deletions

View File

@ -154,11 +154,20 @@ impl Agent {
self
}
pub fn new(patrol_origin: Option<Vec3<f32>>, can_speak: bool, body: &Body) -> Self {
pub fn new(
patrol_origin: Option<Vec3<f32>>,
can_speak: bool,
body: &Body,
no_flee: bool,
) -> Self {
Agent {
patrol_origin,
can_speak,
psyche: Psyche::from(body),
psyche: if no_flee {
Psyche { aggro: 1.0 }
} else {
Psyche::from(body)
},
..Default::default()
}
}