Пример #1
0
        ////////////////

        public override float SpawnChance(NPCSpawnInfo spawnInfo)
        {
            if (Timers.GetTimerTickDuration("IntrinsicsGhostExists") <= 0)
            {
                if (WorldHelpers.IsRockLayer(spawnInfo.player.position))
                {
                    var mymod = (IntrinsicsMod)this.mod;
                    return(mymod.Config.GhostNpcSpawnChance);
                }
            }
            return(0f);
        }