Esempio n. 1
0
 public bool UseSkill(BattleData user)
 {
     if (user.TechniquePoints < _tpCost)
         return false;
     else
     {
         user.TechniquePoints -= _tpCost;
         return true;
     }
 }
 public void Init()
 {
     var list = _characters.ToList();
     list.Sort(
         delegate(BattleData lhs, BattleData rhs)
         {
             return rhs.Speed.CompareTo(lhs.Speed);
         });
     _characters = list.ToArray();
     character = 0;
     Current_Actor = _characters[0];
 }
 private void _controller_OnActionPerform(BattleData data, ActionArgs args)
 {
     var damageWidget = new SystemWidgets.PopTextWidget(SystemWidgets.PopType.HealthPop)
     {
         Number = 40,
         Position = new Vector2(512, 512)
     };
     EngineGlobals.GameReference.WidgetDrawer.AddWidget(damageWidget);
     _controller.Paused = true;
 }