Example #1
0
        private void _cotfspawnitem(string param)
        {
            var splited = param.Split(new char[] { ' ' });

            if (splited.Length != 2)
            {
                Debug.LogWarning("Wrong command usage \t cotfspawnitem [item id] [level]");
                return;
            }
            CotfCheats.CotfItem(int.Parse(splited[0]), int.Parse(splited[1]));
        }
Example #2
0
        private void _cotfspawnitembyname(string param)
        {
            var matches = ItemDataBase.ItemBases.Where(x => x.Value.name.ToLower().StartsWith(param)).Select(x => x.Value.ID).ToArray();

            if (matches.Length > 0)
            {
                CotfCheats.CotfItem(matches[0], ModdedPlayer.instance.level);
                return;
            }
            Debug.LogWarning("Wrong command usage \t cotfspawnitembyname [itemname]");
        }
Example #3
0
 private void _cotfaddpoints(string param)
 {
     CotfCheats.AddPoints(int.Parse(param));
 }
Example #4
0
 private void _cotfsetlevel(string param)
 {
     CotfCheats.SetLevel(int.Parse(param));
 }
Example #5
0
 private void _cotfnocooldowns(string param)
 {
     CotfCheats.NoCooldowns(param);
 }
Example #6
0
 private void _cotfaddlevel(string param)
 {
     CotfCheats.AddLevel(int.Parse(param));
 }
Example #7
0
 private void _cotfresetpoints(string param)
 {
     CotfCheats.Respec();
 }