Esempio 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]));
        }
Esempio 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]");
        }