A Perk class for the game, marked as a unique curse called "Uncomfortably Close". When applied it increases the player's EnemySpawnNearPlayer stat by +1 so enemies spawn more often near the player.
using Sandbox;
[Perk( Rarity.Unique, curse: true, alwaysOfferDebug: false )]
public class CurseEnemySpawnNearby : Perk
{
static CurseEnemySpawnNearby()
{
Register<CurseEnemySpawnNearby>(
name: "Uncomfortably Close",
imagePath: "textures/icons/vector/curse_enemy_spawn_nearby.png",
description: level => $"Enemies often spawn nearby"
);
}
public override void Refresh()
{
base.Refresh();
Player.Modify( this, PlayerStat.EnemySpawnNearPlayer, 1f, ModifierType.Add );
}
}