internal static void Run(Redemption redemption, JToken data) { var creature = data["Creature"].Value <int>(); var level = data["Level"].Value <int>(); var count = data["Count"].Value <int>(); var offset = data["Distance"].Value <int>(); var name = SpawnCreatureSettings.creatures[creature]; for (int i = 0; i < count; i++) { ConsoleUpdatePatch.AddAction(() => Prefab.Spawn(name, level, offset)); } }
internal static void Run(Redemption redemption, JToken data) { var creature = data["Creature"].Value <int>(); var level = data["Level"].Value <int>(); var count = data["Count"].Value <int>(); var offset = data["Distance"].Value <int>(); var tamed = data["Tamed"]?.Value <bool>(); var name = redemption.User.DisplayName; var type = SpawnCreatureSettings.creatures[creature]; for (int i = 0; i < count; i++) { ConsoleUpdatePatch.AddAction(() => Prefab.Spawn(type, level, offset, tamed ?? false, name)); } }
internal static void Run(Redemption redemption, JToken data) { var name = data["Name"].Value <string>(); switch (name) { case "puke": ConsoleUpdatePatch.AddAction(Puke); break; case "heal": ConsoleUpdatePatch.AddAction(Heal); break; default: throw new ArgumentOutOfRangeException(); } }
internal static void Run(Redemption redemption, JToken data) { ConsoleUpdatePatch.AddAction(() => StartRandomEvent(redemption, data)); }