public CmdGainTournamentUpgrade(string[] serialized) { this.m_player = GameLogic.Binder.GameState.Player; this.m_id = LangUtil.FirstLetterToUpper(serialized[0]); this.m_epicVersion = UnityEngine.Random.Range((float)0f, (float)1f) <= 0.5f; this.m_numMilestonesCompleted = 1; }
public CmdGainPet(string[] serialized) { this.m_player = Binder.GameState.Player; this.m_petId = LangUtil.FirstLetterToUpper(serialized[0]); this.m_count = 5; this.m_cheated = false; }
public CmdGainItemInstance(string[] serialized) { this.m_character = Binder.GameState.Player.ActiveCharacter; string itemId = LangUtil.FirstLetterToUpper(serialized[0]); this.m_itemInstance = new ItemInstance(itemId, 1, 0, Binder.GameState.ActiveDungeon.Floor, this.m_character.OwningPlayer); }
public CmdCheatChest(string[] serialized) { if (serialized.Length > 0) { this.m_predefinedDropRollId = LangUtil.FirstLetterToUpper(serialized[0]); } else { this.m_predefinedDropRollId = null; } }
public CmdCheatLanguage(string[] serialized) { try { string str = LangUtil.FirstLetterToUpper(serialized[0]); this.m_language = (SystemLanguage)((int)Enum.Parse(typeof(SystemLanguage), str)); } catch { this.m_language = SystemLanguage.Unknown; } }
public CmdCheatDeviceQuality(string[] serialized) { try { string str = LangUtil.FirstLetterToUpper(serialized[0].ToLower()); this.m_deviceQualityType = (DeviceQualityType)((int)Enum.Parse(typeof(DeviceQualityType), str)); } catch { this.m_deviceQualityType = DeviceQualityType.Auto; } }
public HandleRewardShopEntry(Dictionary <string, object> parameters) { if (parameters != null) { object obj2 = null; parameters.TryGetValue("Id", out obj2); if (obj2 != null) { this.m_id = obj2 as string; this.m_id = LangUtil.FirstLetterToUpper(this.m_id); } } }
public HandleRewardPet(Dictionary <string, object> parameters) { if (parameters != null) { object obj2 = null; parameters.TryGetValue("Id", out obj2); if (obj2 != null) { this.m_id = obj2 as string; this.m_id = LangUtil.FirstLetterToUpper(this.m_id); } object obj3 = null; parameters.TryGetValue("Amount", out obj3); if (obj3 != null) { int.TryParse(obj3.ToString(), out this.m_amount); } } }
public CmdGainRunestone(string[] serialized) { this.m_player = Binder.GameState.Player; this.m_runestoneId = LangUtil.FirstLetterToUpper(serialized[0]); this.m_cheated = true; }
public CmdActivateBoost(string[] serialized) { this.m_player = GameLogic.Binder.GameState.Player; this.m_boostType = (BoostType)((int)Enum.Parse(typeof(BoostType), LangUtil.FirstLetterToUpper(serialized[0]))); }
public CmdGainAugmentation(string[] serialized) { this.m_player = Binder.GameState.Player; this.m_id = LangUtil.FirstLetterToUpper(serialized[0]); }
public CmdGainPotions(string[] serialized) { this.m_character = Binder.GameState.Player.ActiveCharacter; this.m_potionType = (PotionType)((int)Enum.Parse(typeof(PotionType), LangUtil.FirstLetterToUpper(serialized[0].ToLower()))); this.m_amount = 1; }
public CmdGainResources(string[] serialized) { this.m_player = GameLogic.Binder.GameState.Player; this.m_resourceType = (ResourceType)((int)Enum.Parse(typeof(ResourceType), LangUtil.FirstLetterToUpper(serialized[0]))); this.m_amount = double.Parse(serialized[1]); }
public CmdInspectPet(string[] serialized) { this.m_player = Binder.GameState.Player; this.m_petId = LangUtil.FirstLetterToUpper(serialized[0]); this.m_cheated = true; }
public CmdLevelUpPet(string[] serialized) { this.m_player = GameLogic.Binder.GameState.Player; this.m_petId = LangUtil.FirstLetterToUpper(serialized[0]); this.m_cheated = true; }