Пример #1
0
 public Pistol(Game g, GameObject owner) : base(g, owner)
 {
     AllowedUpgradesAndProbability.Add(typeof(Cannon), 10);
     AllowedUpgradesAndProbability.Add(typeof(RocketLauncher), 10);
     AllowedUpgradesAndProbability.Add(typeof(Twister), 30);
     AllowedUpgradesAndProbability.Add(typeof(Wings), 30);
     AllowedUpgradesAndProbability.Add(typeof(Flamethrower), 30);
 }
Пример #2
0
 public Cannon(Game g, GameObject owner) : base(g, owner)
 {
     Cooldown = 50;
     //Set stackable Weapons with according probability
     AllowedUpgradesAndProbability.Add(typeof(Twister), 100);
     AllowedUpgradesAndProbability.Add(typeof(Tentacles), 100);
     AllowedUpgradesAndProbability.Add(typeof(Wings), 100);
     AllowedUpgradesAndProbability.Add(typeof(RocketLauncher), 1); //crazy
     AllowedUpgradesAndProbability.Add(typeof(Pistol), 100);
 }