Ignore:
Timestamp:
2015-06-25 02:56:09 (6 years ago)
Author:
mijoliim
Message:

Taistelut melkein toimivat.

Location:
2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/EnemyBase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/EnemyBase/EnemyBase.cs

    r6281 r6304  
    4747        public int Luck = 5; 
    4848    } 
     49 
     50    public AttackBase PickRandomAttack() 
     51    { 
     52        int r = RandomGen.NextInt(0, Attacks.Count); 
     53 
     54        return Attacks[r]; 
     55    } 
    4956} 
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/EnemyBase/EnemyGroup.cs

    r6281 r6304  
    88{ 
    99    public int EncounterProbability { get; set; } 
    10     public int Max = 6; 
     10    public int Max = 4; 
    1111 
    1212    public EnemyGroup() 
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/EnemyBase/EnemyList.cs

    r6281 r6304  
    1919        return Testman; 
    2020    } 
     21 
     22    public static EnemyBase Spookt() 
     23    { 
     24        EnemyBase Spookt = new EnemyBase(); 
     25 
     26        Spookt.Stats.HP = 40; 
     27        Spookt.Stats.Def = 10; 
     28        Spookt.Stats.Res = 20; 
     29        Spookt.Stats.Str = 5; 
     30 
     31        Spookt.Name = "Spookt"; 
     32        Spookt.FleePercent = 25; 
     33        Spookt.Idle = Images.Enemies.Ghost_Idle; 
     34 
     35        Spookt.BaseWaitTimeInSeconds = 3; 
     36 
     37        Spookt.Attacks.Add(AttackList.SpookyAttack()); 
     38 
     39        return Spookt; 
     40    } 
    2141} 
Note: See TracChangeset for help on using the changeset viewer.