//////////////// public void LoadGameMode() { if( LicensesMod.Config.DebugModeInfo ) { LogHelpers.Alert( "Loading game mode..." ); } NihilismAPI.InstancedFiltersOn(); NihilismAPI.OnSyncOrWorldLoad( ( isSync ) => { if( isSync ) { return; } this.LoadNihilismFilters(); NihilismAPI.NihilateCurrentWorld( true ); }, 0f ); LoadHooks.AddWorldLoadEachHook( () => { if( LicensesMod.Config.RemoveRewardsGrinding ) { RewardsPointsConfig rewConfig = ModContent.GetInstance<RewardsPointsConfig>(); rewConfig.GrindKillMultiplier = 0f; } if( LicensesMod.Config.ForceSpawnWayfarer ) { RewardsAPI.SpawnWayfarer( false ); } this.LoadLicensePacks(); } ); this.PostLoadGameMode(); if( LicensesMod.Config.DebugModeInfo ) { LogHelpers.Alert( "Finished loading game mode" ); } }
//////////////// public override void Action(CommandCaller caller, string input, string[] args) { var myworld = ModContent.GetInstance <NihilismWorld>(); if (NihilismAPI.NihilateCurrentWorld(false)) { caller.Reply("Current world is nihilated. Type /nih-off to revert.", Color.YellowGreen); } else { caller.Reply("Current world is already nihilated.", Color.Yellow); } }