Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. int GetBaseDamage() {
  2.         if (!this.canBecomeStrongerOverTime) {
  3.             return this.baseDamage;
  4.         }
  5.  
  6.         int resultingDamage = this.baseDamage + (DayNightCycle.singleton.currentDay * OVER_TIME_STRENGTH_RATIO);
  7.  
  8.         if (resultingDamage >= OVER_TIME_STRENGTH_MAX_DAMAGE) {
  9.             return OVER_TIME_STRENGTH_MAX_DAMAGE;
  10.         }
  11.  
  12.         return resultingDamage;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement