using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace BanishTestGunToTheShadowRealm { public class BanishTestGunToTheShadowRealmModule : ETGModule { public static readonly string MOD_NAME = "Banish The Test Gun To The Shadow Realm"; public static readonly string VERSION = "1.0"; public static readonly string TEXT_COLOR = "#db4200"; public override void Start() { try { Gun testGun = PickupObjectDatabase.GetByEncounterName("Test Gun") as Gun; if (testGun != null) { testGun.quality = PickupObject.ItemQuality.SPECIAL; testGun.gunClass = GunClass.NONE; } } catch (Exception e) { Log("Something went *terribly* wrong in banishing the Test Gun!", TEXT_COLOR); Log(e.ToString()); } Log($"{MOD_NAME} v{VERSION} started successfully.", TEXT_COLOR); } public static void Log(string text, string color="#FFFFFF") { ETGModConsole.Log($"{text}"); } public override void Exit() { } public override void Init() { } } }