public override void FillDescriptionValues(Single p_magicFactor) { PartyBuffStaticData staticData = StaticDataHandler.GetStaticData <PartyBuffStaticData>(EDataType.PARTY_BUFFS, (Int32)StaticData.PartyBuff); SetDescriptionValue(0, (Int32)Math.Round(staticData.SpecificValue[0] * p_magicFactor, MidpointRounding.AwayFromZero)); SetDescriptionValue(1, (Int32)(staticData.Duration * p_magicFactor + 0.5f)); }
private void UpdateButton(SkillSelectButton p_btn, ESkillID p_skill) { DummyCharacter selectedDummyCharacter = m_partyCreator.GetSelectedDummyCharacter(); CharacterClassStaticData staticData = StaticDataHandler.GetStaticData <CharacterClassStaticData>(EDataType.CHARACTER_CLASS, (Int32)selectedDummyCharacter.Class); ETier etier = ETier.NONE; for (Int32 i = 0; i < staticData.GrandMasterSkills.Length; i++) { if (staticData.GrandMasterSkills[i] == (Int32)p_skill) { etier = ETier.GRAND_MASTER; } } for (Int32 j = 0; j < staticData.MasterSkills.Length; j++) { if (staticData.MasterSkills[j] == (Int32)p_skill) { etier = ETier.MASTER; } } for (Int32 k = 0; k < staticData.ExpertSkills.Length; k++) { if (staticData.ExpertSkills[k] == (Int32)p_skill) { etier = ETier.EXPERT; } } SkillStaticData staticData2 = StaticDataHandler.GetStaticData <SkillStaticData>(EDataType.SKILL, (Int32)p_skill); p_btn.Init(staticData2, isDefaultSkill(staticData, staticData2), !isStartSkill(staticData, staticData2) && etier != ETier.NONE, selectedDummyCharacter.IsSkillPicked(staticData2.StaticID) || isStartSkill(staticData, staticData2), etier); }
public override void Init(Int32 p_staticID) { m_staticData = StaticDataHandler.GetStaticData <PotionStaticData>(EDataType.POTION, p_staticID); m_properties = new Dictionary <String, String>(); InitIncreasingProperties(); InitRemovingProperties(); }
protected override void ParseExtra(String p_extra) { if (m_parent == null) { m_parent = Grid.FindInteractiveObject(m_parentID); } String[] array = p_extra.Split(new Char[] { ',' }); if (array.Length != 1) { throw new FormatException(String.Concat(new Object[] { "Could not parse interaction params ", p_extra, " because it contains ", array.Length, " arguments instead of ", 1 })); } Int32 p_staticId = Convert.ToInt32(array[0]); data = StaticDataHandler.GetStaticData <ChallengesStaticData>(EDataType.CHALLENGES, p_staticId); m_damageType = data.DamageType; m_damage = data.Damage; m_singleTarget = data.SingleTarget; }
public override void Init(Int32 p_staticID) { m_staticData = StaticDataHandler.GetStaticData <ScrollStaticData>(EDataType.SCROLL, p_staticID); m_properties = new Dictionary <String, String>(); InitTypeDescription(); InitPropertyDescription(); }
public async Task <IActionResult> EditResource(int resourceId) { var requestUrl = $"{BaseUrl}{apiUriResources}/GetResourceDetails?resourceId={resourceId}"; ResourceDTO resource = new ResourceDTO(); PopulateDropdownDTO populateDropdownDTO = new PopulateDropdownDTO(); populateDropdownDTO = await StaticDataHandler.PopulateResourceDropdown(BaseUrl); using (var client = new HttpClient()) { client.BaseAddress = new Uri(requestUrl); HttpResponseMessage result = await client.GetAsync(requestUrl); if (result.StatusCode == HttpStatusCode.OK) { resource = await result.Content.ReadAsAsync <ResourceDTO>(); } else { resource.OutputHandler = await result.Content.ReadAsAsync <OutputHandler>(); } resource.ResourceCategories = populateDropdownDTO.ResourceCategories; resource.ResourceTypes = populateDropdownDTO.ResourceTypes; }; resource.ResourceCategories = populateDropdownDTO.ResourceCategories; resource.ResourceTypes = populateDropdownDTO.ResourceTypes; resource.OldImageUrl = resource.ImageUrl; return(View(resource)); }
public async Task <IActionResult> Index(string user, int roleid) { var cookieValue = ""; var role = 1; if (user == null) { cookieValue = HttpContext.Session.GetString("user"); role = Convert.ToInt32(HttpContext.Session.GetInt32("position")); } else { HttpContext.Session.SetString(SessionKeyName, user); HttpContext.Session.SetInt32(SessionKeyRole, roleid); } cookieValue = HttpContext.Session.GetString("user"); role = Convert.ToInt32(HttpContext.Session.GetInt32("position")); var homemodel = new GeneralFilter { roleid = role, username = cookieValue, Crimes = await StaticDataHandler.GetCrimes("https://localhost:44311/api/") }; return(View(homemodel)); }
private void OnEnable() { if (m_categoryList != null) { m_categoryList.items.Clear(); m_staticIdList = new List <Int32>(); m_categoryList.items.Add("Armor"); m_categoryList.items.Add("Jewelry"); m_categoryList.items.Add("Shields"); m_categoryList.items.Add("Melee Weapons"); m_categoryList.items.Add("Magic Focus"); m_categoryList.items.Add("Ranged Weapons"); m_categoryList.items.Add("Potions"); m_categoryList.items.Add("Scrolls"); } m_prefixList.items.Clear(); m_suffixList.Clear(); IEnumerable <PrefixStaticData> iterator = StaticDataHandler.GetIterator <PrefixStaticData>(EDataType.PREFIX); IEnumerable <SuffixStaticData> iterator2 = StaticDataHandler.GetIterator <SuffixStaticData>(EDataType.SUFFIX); m_prefixList.items.Add("0: NONE"); foreach (PrefixStaticData prefixStaticData in iterator) { m_prefixList.items.Add(prefixStaticData.StaticID + ": " + prefixStaticData.Name); } m_suffixList.AddItem("0: NONE"); foreach (SuffixStaticData suffixStaticData in iterator2) { m_suffixList.AddItemWithoutReposition(suffixStaticData.StaticID + ": " + suffixStaticData.Name); } m_suffixList.ReposItems(); SelectItemCategory("Armor"); }
public void OnAddAllButtonClick(GameObject p_sender) { foreach (LoreBookStaticData loreBookStaticData in StaticDataHandler.GetIterator <LoreBookStaticData>(EDataType.LOREBOOK)) { LegacyLogic.Instance.WorldManager.LoreBookHandler.AddLoreBook(loreBookStaticData.StaticID); } }
private static Equipment CreateMagicFocus(Int32 p_modelLevel, ESubModel p_subModel, EEquipmentType[] p_specificationList, Int32 p_prefixLevel, Int32 p_suffixLevel) { IEnumerable <MagicFocusStaticData> iterator = StaticDataHandler.GetIterator <MagicFocusStaticData>(EDataType.MAGIC_FOCUS_MODEL); EEquipmentType eequipmentType = DetermineType(MAGIC_FOCUS_TYPES, p_specificationList); foreach (MagicFocusStaticData magicFocusStaticData in iterator) { if (magicFocusStaticData.Type == eequipmentType && magicFocusStaticData.ModelLevel == p_modelLevel && magicFocusStaticData.SubModel == p_subModel) { Int32 p_suffixId = -1; Int32 p_prefixId = -1; if (p_prefixLevel > 0) { m_prefixProbabilities[EEquipmentType.MAGIC_FOCUS].Multiplicators = m_currentEnchantmentMultiplicators; p_prefixId = m_prefixProbabilities[EEquipmentType.MAGIC_FOCUS].GetRandomId(); } if (p_suffixLevel > 0) { m_suffixProbabilities[EEquipmentType.MAGIC_FOCUS].Multiplicators = m_currentEnchantmentMultiplicators; p_suffixId = m_suffixProbabilities[EEquipmentType.MAGIC_FOCUS].GetRandomId(); } MagicFocus magicFocus = new MagicFocus(); magicFocus.InitFromModel(magicFocusStaticData, p_prefixId, p_suffixId); magicFocus.PrefixLevel = p_prefixLevel; magicFocus.SuffixLevel = p_suffixLevel; return(magicFocus); } } return(null); }
private static Equipment CreateShield(Int32 p_modelLevel, ESubModel p_subModel, EEquipmentType[] p_specificationList, Int32 p_prefixLevel, Int32 p_suffixLevel) { IEnumerable <ShieldStaticData> iterator = StaticDataHandler.GetIterator <ShieldStaticData>(EDataType.SHIELD_MODEL); EEquipmentType eequipmentType = DetermineType(SHIELD_TYPES, p_specificationList); foreach (ShieldStaticData shieldStaticData in iterator) { if (shieldStaticData.Type == eequipmentType && shieldStaticData.ModelLevel == p_modelLevel && shieldStaticData.SubModel == p_subModel) { Int32 p_suffixId = -1; Int32 p_prefixId = -1; if (p_prefixLevel > 0) { m_prefixProbabilities[EEquipmentType.SHIELD].Multiplicators = m_currentEnchantmentMultiplicators; p_prefixId = m_prefixProbabilities[EEquipmentType.SHIELD].GetRandomId(); } if (p_suffixLevel > 0) { m_suffixProbabilities[EEquipmentType.SHIELD].Multiplicators = m_currentEnchantmentMultiplicators; p_suffixId = m_suffixProbabilities[EEquipmentType.SHIELD].GetRandomId(); } Shield shield = new Shield(); shield.InitFromModel(shieldStaticData, p_prefixId, p_suffixId); shield.PrefixLevel = p_prefixLevel; shield.SuffixLevel = p_suffixLevel; return(shield); } } return(null); }
private static Equipment CreateJewelry(Int32 p_modelLevel, ESubModel p_subModel, EEquipmentType[] p_specificationList, Int32 p_prefixLevel, Int32 p_suffixLevel) { IEnumerable <JewelryStaticData> iterator = StaticDataHandler.GetIterator <JewelryStaticData>(EDataType.JEWELRY_MODEL); EEquipmentType eequipmentType = DetermineType(JEWELRY_TYPES, p_specificationList); foreach (JewelryStaticData jewelryStaticData in iterator) { if (jewelryStaticData.Type == eequipmentType && jewelryStaticData.ModelLevel == p_modelLevel && jewelryStaticData.SubModel == p_subModel) { Int32 p_suffixId = -1; Int32 p_prefixId = -1; if (p_prefixLevel > 0) { m_prefixProbabilities[EEquipmentType.JEWELRY].Multiplicators = m_currentEnchantmentMultiplicators; p_prefixId = m_prefixProbabilities[EEquipmentType.JEWELRY].GetRandomId(); } if (p_suffixLevel > 0) { m_suffixProbabilities[EEquipmentType.JEWELRY].Multiplicators = m_currentEnchantmentMultiplicators; p_suffixId = m_suffixProbabilities[EEquipmentType.JEWELRY].GetRandomId(); } Jewelry jewelry = new Jewelry(); jewelry.InitFromModel(jewelryStaticData, p_prefixId, p_suffixId); jewelry.PrefixLevel = p_prefixLevel; jewelry.SuffixLevel = p_suffixLevel; return(jewelry); } } return(null); }
private static Equipment CreateRangedWeapon(Int32 p_modelLevel, ESubModel p_subModel, EEquipmentType[] p_specificationList, Int32 p_prefixLevel, Int32 p_suffixLevel) { IEnumerable <RangedWeaponStaticData> iterator = StaticDataHandler.GetIterator <RangedWeaponStaticData>(EDataType.RANGED_WEAPON_MODEL); EEquipmentType eequipmentType = DetermineType(RANGED_WEAPON_TYPES, p_specificationList); foreach (RangedWeaponStaticData rangedWeaponStaticData in iterator) { if (rangedWeaponStaticData.Type == eequipmentType && rangedWeaponStaticData.ModelLevel == p_modelLevel && rangedWeaponStaticData.SubModel == p_subModel) { Int32 p_suffixId = -1; Int32 p_prefixId = -1; if (p_prefixLevel > 0) { m_prefixProbabilities[EEquipmentType.RANGED_WEAPON].Multiplicators = m_currentEnchantmentMultiplicators; p_prefixId = m_prefixProbabilities[EEquipmentType.RANGED_WEAPON].GetRandomId(); } if (p_suffixLevel > 0) { m_suffixProbabilities[EEquipmentType.RANGED_WEAPON].Multiplicators = m_currentEnchantmentMultiplicators; p_suffixId = m_suffixProbabilities[EEquipmentType.RANGED_WEAPON].GetRandomId(); } RangedWeapon rangedWeapon = new RangedWeapon(); rangedWeapon.InitFromModel(rangedWeaponStaticData, p_prefixId, p_suffixId); rangedWeapon.PrefixLevel = p_prefixLevel; rangedWeapon.SuffixLevel = p_suffixLevel; return(rangedWeapon); } } return(null); }
private ETier GetMaxTier(DummyCharacter p_char, SkillStaticData p_skill) { CharacterClassStaticData staticData = StaticDataHandler.GetStaticData <CharacterClassStaticData>(EDataType.CHARACTER_CLASS, (Int32)p_char.Class); ETier result = ETier.NONE; for (Int32 i = 0; i < staticData.GrandMasterSkills.Length; i++) { if (staticData.GrandMasterSkills[i] == p_skill.StaticID) { result = ETier.GRAND_MASTER; } } for (Int32 j = 0; j < staticData.MasterSkills.Length; j++) { if (staticData.MasterSkills[j] == p_skill.StaticID) { result = ETier.MASTER; } } for (Int32 k = 0; k < staticData.ExpertSkills.Length; k++) { if (staticData.ExpertSkills[k] == p_skill.StaticID) { result = ETier.EXPERT; } } return(result); }
public Skill(Int32 p_skillStaticID, ETier p_maxTier) { m_tier1Effects = new List <SkillEffectStaticData>(); m_tier2Effects = new List <SkillEffectStaticData>(); m_tier3Effects = new List <SkillEffectStaticData>(); m_tier4Effects = new List <SkillEffectStaticData>(); m_currentlyAvailableEffects = new List <SkillEffectStaticData>(); m_availableScalingEffects = new List <SkillEffectStaticData>(); m_tier1ScalingEffects = new List <SkillEffectStaticData>(); m_requiredSkillLevelNovice = ConfigManager.Instance.Game.RequiredSkillLevelNovice; m_requiredSkillLevelExpert = ConfigManager.Instance.Game.RequiredSkillLevelExpert; m_requiredSkillLevelMaster = ConfigManager.Instance.Game.RequiredSkillLevelMaster; m_requiredSkillLevelGrandMaster = ConfigManager.Instance.Game.RequiredSkillLevelGrandMaster; m_maxTier = p_maxTier; m_staticData = StaticDataHandler.GetStaticData <SkillStaticData>(EDataType.SKILL, p_skillStaticID); if (m_maxTier >= ETier.NOVICE) { InitSkillEffectData(m_staticData.Tier1Effects, m_tier1Effects); } if (m_maxTier >= ETier.EXPERT) { InitSkillEffectData(m_staticData.Tier2Effects, m_tier2Effects); } if (m_maxTier >= ETier.MASTER) { InitSkillEffectData(m_staticData.Tier3Effects, m_tier3Effects); } if (m_maxTier >= ETier.GRAND_MASTER) { InitSkillEffectData(m_staticData.Tier4Effects, m_tier4Effects); } }
public async Task <IActionResult> EditTeamMember(int teamMemberId) { var requestUrl = $"{BaseUrl}{apiUriTeamMembers}/GetTeamMemberDetails?teamMemberId={teamMemberId}"; TeamMembersDTO teamMember = new TeamMembersDTO(); using (var client = new HttpClient()) { client.BaseAddress = new Uri(requestUrl); HttpResponseMessage response = await client.GetAsync(requestUrl); if (response.StatusCode == HttpStatusCode.OK) { teamMember = await response.Content.ReadAsAsync <TeamMembersDTO>(); } else { teamMember.OutputHandler = await response.Content.ReadAsAsync <OutputHandler>(); } teamMember.Branches = await StaticDataHandler.GetBranches(BaseUrl); teamMember.Positions = await StaticDataHandler.GetPositions(BaseUrl); teamMember.MinistryArms = await StaticDataHandler.GetMinistryArmsAsync(BaseUrl); }; teamMember.Branches = await StaticDataHandler.GetBranches(BaseUrl); teamMember.Positions = await StaticDataHandler.GetPositions(BaseUrl); teamMember.MinistryArms = await StaticDataHandler.GetMinistryArmsAsync(BaseUrl); teamMember.OldImageUrl = teamMember.ImageUrl; teamMember.CurrentImageName = Path.GetFileName(teamMember.ImageUrl); return(View(teamMember)); }
public Dictionary <Int32, Int32> GetMonstersForCategory(EMonsterClass p_class, Boolean p_showChampions) { Dictionary <Int32, Int32> dictionary = new Dictionary <Int32, Int32>(); foreach (Int32 num in m_allMonsters.Keys) { MonsterStaticData staticData = StaticDataHandler.GetStaticData <MonsterStaticData>(EDataType.MONSTER, num); if (staticData != null && staticData.BestiaryEntry) { if (!p_showChampions) { if (staticData.Class != p_class && p_class != EMonsterClass.NONE) { continue; } } else if (staticData.Grade != EMonsterGrade.CHAMPION) { continue; } dictionary.Add(num, m_allMonsters[num]); } } return(dictionary); }
public void Load(SaveGameData p_data) { m_worldMapPoints.Clear(); Int32 num = p_data.Get <Int32>("WorldMapCount", 0); for (Int32 i = 0; i < num; i++) { SaveGameData saveGameData = p_data.Get <SaveGameData>("WorldMapPoint" + i, null); if (saveGameData != null) { Int32 num2 = saveGameData.Get <Int32>("StaticID", 0); WorldMapPointStaticData staticData = StaticDataHandler.GetStaticData <WorldMapPointStaticData>(EDataType.WORLD_MAP, num2); if (staticData != null) { WorldMapPoint worldMapPoint = new WorldMapPoint(staticData); worldMapPoint.Load(saveGameData); m_worldMapPoints.Add(num2, worldMapPoint); } } } if (MapPointsLoaded != null) { MapPointsLoaded(this, EventArgs.Empty); } }
public override void FillDescriptionValues(Single p_magicFactor) { MonsterBuffStaticData staticData = StaticDataHandler.GetStaticData <MonsterBuffStaticData>(EDataType.MONSTER_BUFFS, (Int32)StaticData.MonsterBuffs[0]); SetDescriptionValue(0, StaticData.Range); SetDescriptionValue(1, (Int32)(staticData.GetBuffValues(1)[0] * p_magicFactor + 0.5f)); }
public override void FillDescriptionValues(Single p_magicFactor) { PartyBuffStaticData staticData = StaticDataHandler.GetStaticData <PartyBuffStaticData>(EDataType.PARTY_BUFFS, (Int32)StaticData.PartyBuff); SetDescriptionValue(0, (Int32)(staticData.Armor * p_magicFactor + 0.5f)); SetDescriptionValue(1, (Int32)(staticData.Duration * p_magicFactor + 0.5f)); }
private void CheckSet(TokenStaticData p_newToken) { Boolean flag = true; List <Int32> list = new List <Int32>(); foreach (TokenStaticData tokenStaticData in StaticDataHandler.GetIterator <TokenStaticData>(EDataType.TOKEN)) { if (tokenStaticData.SetID == p_newToken.SetID) { if (GetTokens(tokenStaticData.StaticID) == 0) { flag = false; } else { list.Add(tokenStaticData.StaticID); } } } if (flag) { foreach (Int32 p_id in list) { RemoveToken(p_id); } AddToken(p_newToken.Replacement); } }
public List <LoreBookStaticData> GetBooksForCategory(ELoreBookCategories category, Boolean p_all) { List <LoreBookStaticData> list; if (p_all) { list = new List <LoreBookStaticData>(StaticDataHandler.GetIterator <LoreBookStaticData>(EDataType.LOREBOOK)); } else { list = m_foundBooks; } if (category == ELoreBookCategories.SHOW_ALL) { return(list); } List <LoreBookStaticData> list2 = new List <LoreBookStaticData>(); foreach (LoreBookStaticData loreBookStaticData in list) { if (loreBookStaticData.Category == category) { list2.Add(loreBookStaticData); } } return(list2); }
public static Potion CreatePotion(EPotionType p_type, Int32 p_modelLevel) { List <PotionStaticData> list = new List <PotionStaticData>(StaticDataHandler.GetIterator <PotionStaticData>(EDataType.POTION)); if (m_potionTempFilter == null) { m_potionTempFilter = new List <Int32>(); } m_potionTempFilter.Clear(); for (Int32 i = 0; i < list.Count; i++) { PotionStaticData potionStaticData = list[i]; if (potionStaticData.Type == p_type && potionStaticData.ModelLevel == p_modelLevel) { m_potionTempFilter.Add(i); } } if (m_potionTempFilter.Count > 0) { Int32 index = Random.Range(0, m_potionTempFilter.Count); Int32 index2 = m_potionTempFilter[index]; return(CreateItem <Potion>(list[index2].StaticID)); } throw new NotSupportedException("Potion Data not found! " + p_type); }
public async Task <IActionResult> Delete(int id) { var user = await StaticDataHandler.GetSessionDetails(); var requestUrl = $"{BaseUrl}{apiUriTeamMembers}/DeleteTeamMember?TeammemberId={id}"; using (var client = new HttpClient()) { client.BaseAddress = new Uri(requestUrl); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", user.Token); var result = await client.DeleteAsync(client.BaseAddress); if (result.StatusCode == HttpStatusCode.OK) { return(RedirectToAction("TeamMembersForAdmin")); } else if (result.StatusCode == HttpStatusCode.Unauthorized) { return(RedirectToAction("TeamMembersForAdmin", new { isDeleteFailed = true, error = "You're not Authorized to perfom this Action" })); } else { return(RedirectToAction("TeamMembersForAdmin", new { isDeleteFailed = true })); }; }; }
protected override void DoExecute() { ShrineStaticData staticData = StaticDataHandler.GetStaticData <ShrineStaticData>(EDataType.SHRINES, m_shrineID); if (staticData != null) { TokenStaticData staticData2 = StaticDataHandler.GetStaticData <TokenStaticData>(EDataType.TOKEN, staticData.TokenID); if (LegacyLogic.Instance.WorldManager.Party.TokenHandler.GetTokens(staticData.TokenID) > 0 || (staticData2.Replacement > 0 && LegacyLogic.Instance.WorldManager.Party.TokenHandler.GetTokens(staticData2.Replacement) > 0)) { CustomPopupEventArgs p_eventArgs = new CustomPopupEventArgs(Localization.Instance.GetText(staticData.Caption), Localization.Instance.GetText("GAMEMESSAGE_NOTHING_HAPPENS")); LegacyLogic.Instance.EventManager.InvokeEvent(null, EEventType.CUSTOM_POPUP, p_eventArgs); FinishExecution(); } else if (LegacyLogic.Instance.GameTime.Time.Days % 7 == (Int32)staticData.WeekDay) { m_parent.State = EInteractiveObjectState.ON; LegacyLogic.Instance.EventManager.InvokeEvent(m_parent, EEventType.OBJECT_STATE_CHANGED, EventArgs.Empty); LegacyLogic.Instance.WorldManager.Party.TokenHandler.AddToken(staticData.TokenID); CustomPopupEventArgs p_eventArgs = new CustomPopupEventArgs(Localization.Instance.GetText(staticData.Caption), Localization.Instance.GetText(staticData.RightText)); LegacyLogic.Instance.EventManager.InvokeEvent(null, EEventType.CUSTOM_POPUP, p_eventArgs); FinishExecution(); } else { m_stateMachine.ChangeState(3); } } else { LegacyLogger.Log("Shrine with ID " + m_shrineID + " doesn't exist"); FinishExecution(); } }
public override void Init(Int32 p_staticID) { m_staticData = StaticDataHandler.GetStaticData <ShieldStaticData>(EDataType.SHIELD, p_staticID); m_identified = m_staticData.Identified; InitProperties(); InitPrefixes(); InitSuffixes(); }
public override void FillDescriptionValues(Single p_magicFactor) { SetDescriptionValue(0, GetDamageAsString(0, p_magicFactor)); MonsterBuffStaticData staticData = StaticDataHandler.GetStaticData <MonsterBuffStaticData>(EDataType.MONSTER_BUFFS, (Int32)StaticData.MonsterBuffs[0]); SetDescriptionValue(1, staticData.GetBuffValues(1)[0]); SetDescriptionValue(2, staticData.GetDuration(1)); }
public override String GetDescriptionForCaster(MonsterStaticData p_monster) { MonsterBuffStaticData staticData = StaticDataHandler.GetStaticData <MonsterBuffStaticData>(EDataType.MONSTER_BUFFS, 14); Single p_value = (Single)Math.Round(staticData.GetBuffValues(m_level)[0] * p_monster.MagicPower * 0.1f, MidpointRounding.AwayFromZero); SetDescriptionValue(0, p_value); return(Localization.Instance.GetText("MONSTER_SPELL_LIQUID_MEMBRANE_INFO", m_descriptionValues)); }
public override void Init(Int32 p_staticID) { m_staticData = StaticDataHandler.GetStaticData <JewelryStaticData>(EDataType.JEWELRY, p_staticID); m_identified = m_staticData.Identified; InitProperties(); InitPrefixes(); InitSuffixes(); }
public override void Init(Int32 p_staticID) { m_staticData = StaticDataHandler.GetStaticData <MagicFocusStaticData>(EDataType.MAGIC_FOCUS, p_staticID); m_identified = m_staticData.Identified; InitProperties(); InitPrefixes(); InitSuffixes(); }