Esempio n. 1
0
 public static bool LowersSpecialAttack(MonsterNature nature)
 {
     return(nature == MonsterNature.Adamant ||
            nature == MonsterNature.Impish ||
            nature == MonsterNature.Jolly ||
            nature == MonsterNature.Careful);
 }
Esempio n. 2
0
 public static bool LowersAttack(MonsterNature nature)
 {
     return(nature == MonsterNature.Bold ||
            nature == MonsterNature.Timid ||
            nature == MonsterNature.Modest ||
            nature == MonsterNature.Calm);
 }
Esempio n. 3
0
 public static bool LowersDefense(MonsterNature nature)
 {
     return(nature == MonsterNature.Lonely ||
            nature == MonsterNature.Hasty ||
            nature == MonsterNature.Mild ||
            nature == MonsterNature.Gentle);
 }
Esempio n. 4
0
 public static bool RaisesSpecialDefense(MonsterNature nature)
 {
     return(nature == MonsterNature.Calm ||
            nature == MonsterNature.Gentle ||
            nature == MonsterNature.Sassy ||
            nature == MonsterNature.Careful);
 }
Esempio n. 5
0
 public static bool RaisesSpeed(MonsterNature nature)
 {
     return(nature == MonsterNature.Timid ||
            nature == MonsterNature.Hasty ||
            nature == MonsterNature.Jolly ||
            nature == MonsterNature.Naive);
 }
Esempio n. 6
0
 public static bool RaisesDefense(MonsterNature nature)
 {
     return(nature == MonsterNature.Bold ||
            nature == MonsterNature.Relaxed ||
            nature == MonsterNature.Impish ||
            nature == MonsterNature.Lax);
 }
Esempio n. 7
0
 public static bool RaisesSpecialAttack(MonsterNature nature)
 {
     return(nature == MonsterNature.Modest ||
            nature == MonsterNature.Mild ||
            nature == MonsterNature.Quiet ||
            nature == MonsterNature.Rash);
 }
Esempio n. 8
0
 public static bool LowersSpeed(MonsterNature nature)
 {
     return(nature == MonsterNature.Brave ||
            nature == MonsterNature.Relaxed ||
            nature == MonsterNature.Quiet ||
            nature == MonsterNature.Sassy);
 }
Esempio n. 9
0
 public static bool RaisesAttack(MonsterNature nature)
 {
     return(nature == MonsterNature.Lonely ||
            nature == MonsterNature.Adamant ||
            nature == MonsterNature.Naughty ||
            nature == MonsterNature.Brave);
 }
Esempio n. 10
0
 public static bool LowersSpecialDefense(MonsterNature nature)
 {
     return(nature == MonsterNature.Naughty ||
            nature == MonsterNature.Lax ||
            nature == MonsterNature.Naive ||
            nature == MonsterNature.Rash);
 }
Esempio n. 11
0
 public static double CalculateFactorForStat( MonsterNature nature, Stat stat )
 {
     if( _store.ContainsKey( nature ) )
     {
         if( _store[nature].PreferredStat == stat )
             return 1.1;
         if( _store[nature].DiminishedStat == stat )
             return 0.9;
     }
     return 1;
 }
Esempio n. 12
0
 public void Initialize(Monster mon)
 {
     Species          = mon.Species;
     Nickname         = mon.Nickname;
     Type1            = mon.Type1;
     Type2            = mon.Type2;
     Level            = mon.Level;
     CurrentHp        = mon.CurrentHp;
     Nature           = mon.Nature;
     BaseStats        = mon.BaseStats;
     EVs              = mon.EVs;
     IVs              = mon.IVs;
     ExperiencePoints = mon.ExperiencePoints;
     Move1            = mon.Move1;
     Move2            = mon.Move2;
     Move3            = mon.Move3;
     Move4            = mon.Move4;
     LearnSet         = mon.LearnSet;
     CaptureObject    = mon.CaptureObject;
     Sprite           = mon.Sprite;
 }
Esempio n. 13
0
 static void Add( MonsterNature nature, Stat pref, Stat dim, Flavor fav, Flavor dis )
 {
     _store.Add( nature, new PreferenceEntry { PreferredStat = pref, DiminishedStat = dim, FavoriteFlavor = fav, DislikedFlavor = dis } );
 }
Esempio n. 14
0
    public void LoadMonsterBySpecies(MonsterList species)
    {
        switch (species)
        {
        case MonsterList.Greenmon:
            Species                  = MonsterList.Greenmon;
            Nickname                 = "";
            Type1                    = MonsterType.Grass;
            Type2                    = MonsterType.Poison;
            Level                    = 1;
            Nature                   = (MonsterNature)Random.Range(0, 25);
            BaseStats                = new MonsterStats();
            BaseStats.HP             = 45;
            BaseStats.Attack         = 49;
            BaseStats.Defense        = 49;
            BaseStats.SpecialAttack  = 65;
            BaseStats.SpecialDefense = 65;
            BaseStats.Speed          = 45;
            EVs = new MonsterEffortValues();
            IVs = new MonsterIndividualValues(true);
            ExperiencePoints = 0;
            CurrentHp        = MaxHp;
            Move1            = new MonsterMove()
            {
                DisplayName = "Tackle", Type = MonsterType.Normal, Style = MoveStyle.Physical, BaseDamage = 40, BaseHitChance = 100
            };
            Move2 = new MonsterMove()
            {
                DisplayName = "Growl", Type = MonsterType.Normal, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 100
            };
            Move3 = new MonsterMove()
            {
                DisplayName = "Vine Whip", Type = MonsterType.Grass, Style = MoveStyle.Physical, BaseDamage = 45, BaseHitChance = 100
            };
            Move4 = new MonsterMove()
            {
                DisplayName = "Poisonpowder", Type = MonsterType.Grass, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 75
            };
            LearnSet      = new Dictionary <int, MonsterMove>();
            CaptureObject = Resources.Load("Capture/greenmon_capture", typeof(GameObject)) as GameObject;
            Sprite        = Resources.Load("Monster/greenmon", typeof(Sprite)) as Sprite;
            break;

        case MonsterList.Redmon:
            Species                  = MonsterList.Redmon;
            Nickname                 = "";
            Type1                    = MonsterType.Fire;
            Type2                    = MonsterType.None;
            Level                    = 1;
            Nature                   = (MonsterNature)Random.Range(0, 25);
            BaseStats                = new MonsterStats();
            BaseStats.HP             = 39;
            BaseStats.Attack         = 52;
            BaseStats.Defense        = 43;
            BaseStats.SpecialAttack  = 60;
            BaseStats.SpecialDefense = 50;
            BaseStats.Speed          = 65;
            EVs = new MonsterEffortValues();
            IVs = new MonsterIndividualValues(true);
            ExperiencePoints = 0;
            CurrentHp        = MaxHp;
            Move1            = new MonsterMove()
            {
                DisplayName = "Scratch", Type = MonsterType.Normal, Style = MoveStyle.Physical, BaseDamage = 40, BaseHitChance = 100
            };
            Move2 = new MonsterMove()
            {
                DisplayName = "Growl", Type = MonsterType.Normal, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 100
            };
            Move3 = new MonsterMove()
            {
                DisplayName = "Ember", Type = MonsterType.Fire, Style = MoveStyle.Special, BaseDamage = 40, BaseHitChance = 100
            };
            Move4 = new MonsterMove()
            {
                DisplayName = "Smokescreen", Type = MonsterType.Grass, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 100
            };
            LearnSet      = new Dictionary <int, MonsterMove>();
            CaptureObject = Resources.Load("Capture/redmon_capture", typeof(GameObject)) as GameObject;
            Sprite        = Resources.Load("Monster/redmon", typeof(Sprite)) as Sprite;
            break;

        case MonsterList.Bluemon:
            Species                  = MonsterList.Bluemon;
            Nickname                 = "";
            Type1                    = MonsterType.Water;
            Type2                    = MonsterType.None;
            Level                    = 1;
            Nature                   = (MonsterNature)Random.Range(0, 25);
            BaseStats                = new MonsterStats();
            BaseStats.HP             = 44;
            BaseStats.Attack         = 48;
            BaseStats.Defense        = 65;
            BaseStats.SpecialAttack  = 50;
            BaseStats.SpecialDefense = 64;
            BaseStats.Speed          = 43;
            EVs = new MonsterEffortValues();
            IVs = new MonsterIndividualValues(true);
            ExperiencePoints = 0;
            CurrentHp        = MaxHp;
            Move1            = new MonsterMove()
            {
                DisplayName = "Tackle", Type = MonsterType.Normal, Style = MoveStyle.Physical, BaseDamage = 40, BaseHitChance = 100
            };
            Move2 = new MonsterMove()
            {
                DisplayName = "Tail Whip", Type = MonsterType.Normal, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 100
            };
            Move3 = new MonsterMove()
            {
                DisplayName = "Water Gun", Type = MonsterType.Water, Style = MoveStyle.Special, BaseDamage = 40, BaseHitChance = 100
            };
            Move4 = new MonsterMove()
            {
                DisplayName = "Withdraw", Type = MonsterType.Water, Style = MoveStyle.Status, BaseDamage = 0, BaseHitChance = 100
            };
            LearnSet      = new Dictionary <int, MonsterMove>();
            CaptureObject = Resources.Load("Capture/bluemon_capture", typeof(GameObject)) as GameObject;
            Sprite        = Resources.Load("Monster/bluemon", typeof(Sprite)) as Sprite;
            break;
        }
    }