Make bow zoom less intense

This commit is contained in:
juliancoffee 2021-06-11 01:46:32 +03:00
parent edc4af8023
commit 2e5f868f31

View File

@ -311,8 +311,11 @@ impl PlayState for SessionState {
.read_storage::<comp::CharacterState>()
.get(player_entity)
{
if cr.charge_frac() > 0.25 {
fov_scaling -= 3.0 * cr.charge_frac() / 4.0;
let crit_frac = 0.5;
if cr.charge_frac() > crit_frac {
let r1 = 3.0;
let r2 = 5.0;
fov_scaling -= r1 * cr.charge_frac() / r2;
}
let max_dist = if let Some(dist) = self.saved_zoom_dist {
dist