gotoheavenbro

Vital

Sep 30th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. public class Vital : ModifiedStat {
  2.     private int _curValue;
  3.     public Vital()
  4.     {
  5.         _curValue = 0;
  6.         NextLevel = 50;
  7.         NextLevelModifier = 1.1f;
  8.     }
  9.     public int CurValue
  10.     {
  11.         get
  12.         {
  13.             return _curValue;
  14.         }
  15.         set
  16.         {
  17.  
  18.             _curValue = value;
  19.             if (_curValue > BuffedValue)
  20.                 _curValue = BuffedValue;
  21.         }
  22.     }
  23.    
  24. }
  25. public enum VitalName
  26. {
  27.     Health,
  28.     Energy,
  29.     Mana
  30. }
Advertisement
Add Comment
Please, Sign In to add comment