コード例 #1
0
        private string AttackTechTalk(Character enemyCharacter)
        {
            if (!CheckStamina(TechTalkCost))
            {
                return(GameLogUtils.LowStamina());
            }

            int YourPoints  = random.Next(Inteligence);
            int EnemyPoints = random.Next(enemyCharacter.Endurance);

            if (YourPoints < EnemyPoints)
            {
                return(GameLogUtils.TechTalk(this, false));
            }

            enemyCharacter.Status = Status.Sleep;
            return(GameLogUtils.TechTalk(this, true));
        }
コード例 #2
0
        private string InviteToTraining(Character enemyCharacter)
        {
            if (!CheckStamina(InviteToTrainingCost))
            {
                return(GameLogUtils.LowStamina());
            }

            int YourPoints  = random.Next(Charisma);
            int EnemyPoints = random.Next(enemyCharacter.Inteligence);

            Debug.Log(string.Format("Your Generated Charisma Chance: {0}, Enemy Generated Inteligence Point: {1}", YourPoints,
                                    EnemyPoints));
            if (YourPoints < EnemyPoints)
            {
                return(GameLogUtils.CouchTraining(this, false));
            }
            enemyCharacter.isEnemy = false;
            return(GameLogUtils.CouchTraining(this, true));
        }