mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make bow zoom less intense
This commit is contained in:
parent
edc4af8023
commit
2e5f868f31
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user