Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
EssenceCommand.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Threading.Tasks;
6 using Terraria.ModLoader;
7 
8 namespace Loot.Soulforging
9 {
10  class EssenceCommand : Terraria.ModLoader.ModCommand
11  {
12  public override void Action(CommandCaller caller, string input, string[] args)
13  {
14  if (int.TryParse(args[0], out int essence))
15  {
16  caller.Player.GetModPlayer<LootEssencePlayer>().GainEssence(essence);
17  }
18  }
19 
20  public override string Command => "addEssence";
21 
22  public override CommandType Type => CommandType.Chat;
23  }
24 }
override void Action(CommandCaller caller, string input, string[] args)