mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Buff swim thrust for humans reduce gains from skillpoints
This is intended to give a swim speed of 4.7 m/s when unskilled, and 7.2 when skilled However, this turns out to be horrifically fps-dependant, both after this branch and in master. Needs further research into fixes This commit tunes it for 60 fps
This commit is contained in:
parent
2fc62bfe7f
commit
a48fa0f349
@ -576,7 +576,7 @@ pub enum SwimSkill {
|
||||
impl Boost for SwimSkill {
|
||||
fn boost(self) -> BoostValue {
|
||||
match self {
|
||||
Self::Speed => 40.into(),
|
||||
Self::Speed => 25.into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ impl Body {
|
||||
Body::FishMedium(_) => Some(50.0 * self.mass().0),
|
||||
Body::FishSmall(_) => Some(50.0 * self.mass().0),
|
||||
Body::Dragon(_) => Some(200.0 * self.mass().0),
|
||||
Body::Humanoid(_) => Some(200.0 * self.mass().0),
|
||||
Body::Humanoid(_) => Some(2500.0 * self.mass().0),
|
||||
Body::Theropod(body) => match body.species {
|
||||
theropod::Species::Sandraptor
|
||||
| theropod::Species::Snowraptor
|
||||
@ -375,7 +375,7 @@ fn swim_move(
|
||||
let mut water_accel = force / data.mass.0;
|
||||
|
||||
if let Ok(Some(level)) = data.skill_set.skill_level(Skill::Swim(SwimSkill::Speed)) {
|
||||
water_accel *= 1.4_f32.powi(level.into());
|
||||
water_accel *= 1.25_f32.powi(level.into());
|
||||
}
|
||||
|
||||
let dir = if data.body.can_strafe() {
|
||||
|
Loading…
Reference in New Issue
Block a user