Exemple #1
0
 void StartCombat()
 {
     print("start combat");
     player.damage = CombatInfo.PlayerDamage;
     enemy.attackManager.hpWrong      = CombatInfo.EnemyDamage;
     enemy.attackManager.staminaRight = CombatInfo.StaminaGain;
     player.maxStamina               = CombatInfo.MaxStamina;
     player.maxHealth                = CombatInfo.MaxHealth;
     enemy.maxHealth                 = CombatInfo.EnemyHealth;
     enemy.health                    = CombatInfo.EnemyHealth;
     enemy.attackManager.time        = CombatInfo.TimePerBar;
     enemy.attackManager.attackCount = CombatInfo.ArrowCount;
     enemy.attackManager.bufferTime  = CombatInfo.BufferTime;
     player.healthCount              = CombatInfo.HealthPotionCount;
     player.iceCream.ModNum(CombatInfo.HealthPotionCount);
     player.enabled = true;
     enemy.enabled  = true;
     am.Begin();
 }