Tweak PlayerFun values and add multiplier for boredom

This commit is contained in:
Sofia 2019-08-14 18:11:59 +03:00
parent b3af672199
commit 64846a45ed
2 changed files with 3 additions and 2 deletions

View File

@ -529,7 +529,7 @@ MonoBehaviour:
MaxFun: 100
FunDegradeSpeed: 4
StandingStillMultiplier: 1.5
WeaponFun: 20
WeaponFun: 12
EnemyExplosionFun: 6
FurnitureExplosionFun: 4
ShootingFunAmount: 0.2

View File

@ -63,7 +63,8 @@ namespace Saltosion.OneWeapon.Player {
}
private void AddFun(float fun) {
float NewFun = CurrentFun + fun;
float FunAdded = fun * (2 - (CurrentFun / MaxFun));
float NewFun = CurrentFun + FunAdded;
CurrentFun = Mathf.Min(MaxFun, NewFun);
}