Ignore:
Timestamp:
2015-06-26 12:22:47 (5 years ago)
Author:
mijoliim
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Overworld/RandomEncounter.cs

    r6450 r6467  
    99    public static int StepsToAnEncounter = 5; 
    1010    public static int StepsTaken { get; set; } 
    11     public static int Probability = 0; 
     11    public static int Probability = 25; 
    1212 
    1313    public static List<EnemyGroup> CurrentEnemies = new List<EnemyGroup>(); 
     
    5151            CurrentEnemyGroup = OverworldView.CurrentMapData.PickRandomWeightedGroup(CurrentEnemies, r); 
    5252 
    53             Image Background; 
    54             //Background = OverworldView.CurrentMapData.BackgroundImages()[r.Next(OverworldView.CurrentMapData.BackgroundImages().Count)]; 
    55  
    56  
    5753            JRPG.Game.UseShaders = true; 
    5854 
     
    7470 
    7571    } 
     72 
     73    public static void Boss() 
     74    { 
     75        EnemyBase Tele1 = EnemyList.Tele(1); 
     76        EnemyBase Tele2 = EnemyList.Tele(2); 
     77        EnemyBase Tele3 = EnemyList.Tele(3); 
     78        EnemyBase Tele4 = EnemyList.Tele(4); 
     79 
     80        EnemyGroup Group = new EnemyGroup(); 
     81        Group.Add(Tele1); 
     82        Group.Add(Tele2); 
     83        Group.Add(Tele3); 
     84        Group.Add(Tele4); 
     85 
     86        CurrentEnemyGroup = Group; 
     87 
     88        JRPG.Game.UseShaders = true; 
     89 
     90            JRPG.Game.RandomEncounterAnimation( 
     91                delegate 
     92                { 
     93                    JRPG.BattleView = new BattleView(true); 
     94                    JRPG.BattleView.LoadBattle(CurrentEnemyGroup); 
     95                }, 
     96                delegate 
     97                { 
     98                    JRPG.Game.MediaPlayer.Play("Music//Hunt"); 
     99                }); 
     100    } 
    76101} 
Note: See TracChangeset for help on using the changeset viewer.