예제 #1
0
 public void Update(LifePointsRegenEndMessage message)
 {
     Stats.Health = message.lifePoints;
     // TODO : unfortunately, we never receive a message saying we have full health. 
     // So have to consider regen rate and compute current health based on it. 
 }
예제 #2
0
 public static void HandleLifePointsRegenEndMessage(Bot bot, LifePointsRegenEndMessage message)
 {
     bot.Character.RegenRate = 0;
     bot.Character.RegenStartTime = null;
     bot.Character.Update(message);
 }