示例#1
0
        public override float WeightMob(MobInfo info, SpawnChance chance)
        {
            if (info.Type == typeof(Bee) || info.Type == typeof(Explobee))
            {
                return(info.Chance * 2);
            }

            return(base.WeightMob(info, chance));
        }
示例#2
0
 GameObject Figure_Randomiser()
 {
     if (SpawnChance.Get(ActiveLevelData.PointsFigureSpawnMultiplier))
     {
         return(points_figure);
     }
     else if (SpawnChance.Get(ActiveLevelData.DiamondSpawnMultiplier))
     {
         return(Diamond);
     }
     else
     {
         int i = Random.Range(0, StandardBehaviorEnemy.Count);
         return(StandardBehaviorEnemy[i] ?? cube_enemy);
     }
 }
示例#3
0
 public virtual float WeightMob(MobInfo info, SpawnChance chance)
 {
     return(chance.Chance);
 }