Ejemplo n.º 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]));
        }
Ejemplo n.º 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]");
        }
Ejemplo n.º 3
0
 private void _cotfaddpoints(string param)
 {
     CotfCheats.AddPoints(int.Parse(param));
 }
Ejemplo n.º 4
0
 private void _cotfsetlevel(string param)
 {
     CotfCheats.SetLevel(int.Parse(param));
 }
Ejemplo n.º 5
0
 private void _cotfnocooldowns(string param)
 {
     CotfCheats.NoCooldowns(param);
 }
Ejemplo n.º 6
0
 private void _cotfaddlevel(string param)
 {
     CotfCheats.AddLevel(int.Parse(param));
 }
Ejemplo n.º 7
0
 private void _cotfresetpoints(string param)
 {
     CotfCheats.Respec();
 }