Ignore:
Timestamp:
2014-07-24 22:04:28 (5 years ago)
Author:
mikrkana
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/MiskaK/The Reclaim/The Reclaim/The Reclaim/The Reclaim/The_Reclaim.cs

    r5649 r5652  
    348348    { 
    349349        Entrance e = new Entrance(paikka, GameConstants.ENTRANCE_RADIUS, owner, GameConstants.SECONDS_TO_CAPTURE); 
    350         e.Spawn(); 
     350        if (owner == Entrance.Owner.Enemy) 
     351            e.Spawn(-1, 2); 
     352        if (owner == Entrance.Owner.Friendly) 
     353            e.Spawn(5, -1); 
    351354        CurrentLevel.Entrances.Add(e); 
    352355    } 
     
    419422        { 
    420423            HostileTroops.Add(s); 
    421             s.Specialization = RandomGen.SelectOneWithProbabilities<EnemySpecialization>(specs, 0.3, 0.5, 0.2); // eniten defendereitä, toiseksi eniten attackereita ja vähiten killereitä 
     424            s.Specialization = RandomGen.SelectOneWithProbabilities<EnemySpecialization>(specs, 0.3, 0.4, 0.3); // eniten defendereitä, toiseksi eniten attackereita ja vähiten killereitä 
    422425            s.Name.Text += " (" + s.Specialization.ToString() + ")"; 
    423426        } 
Note: See TracChangeset for help on using the changeset viewer.