fix stats
This commit is contained in:
@@ -58,8 +58,6 @@ public class Player : MonoBehaviour
|
||||
_navAgent.updatePosition = false;
|
||||
|
||||
_currentActing = PlayerStates.Awake;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
@@ -177,12 +175,6 @@ public class Player : MonoBehaviour
|
||||
return Mathf.Abs(Quaternion.Dot(q1, q2)) >= 1 - precision;
|
||||
}
|
||||
|
||||
//private TaskStatus InteractWithObject(BaseInteractableObject interactableObject)
|
||||
//{
|
||||
// interactableObject.Interact(this);
|
||||
// return TaskStatus.Complete;
|
||||
//}
|
||||
|
||||
public void SetPlayerAnimation(AnimationStates newState, Action onAnimationFinish)
|
||||
{
|
||||
_OnAnimationFinish = onAnimationFinish;
|
||||
@@ -225,9 +217,10 @@ public class Player : MonoBehaviour
|
||||
break;
|
||||
case PlayerStates.Sleeping:
|
||||
Stats[StatsId.Energy].increase(0.2f);
|
||||
Stats[StatsId.Food].deduct(0.03f);
|
||||
break;
|
||||
default:
|
||||
Stats[StatsId.Food].deduct(0.034f); // 48 hours it's 100, 100/2880=~0.034 per minute
|
||||
Stats[StatsId.Food].deduct(0.05f); // 48 hours it's 100, 100/2880=~0.034 per minute
|
||||
Stats[StatsId.Energy].deduct(0.1f); // 24 hours it's 100, 100/1440=~0.096 per minute
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user