public override void AddNameProperty(ObjectPropertyList list) { object label = FishInfo.GetFishLabel(m_Index); if (m_Enhanced) { //~1_token~ ~2_token~ bait if (label is int) { list.Add(1116464, "#{0}\t#{1}", 1116470, (int)label); } else if (label is string) { list.Add(1116464, "#{0}\t{1}", 1116470, (string)label); } } else if (label is int) { list.Add(1116465, string.Format("#{0}", (int)label)); //~1_token~ bait } else if (label is string) { list.Add(1116465, (string)label); } }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); if (m_BaitType != null) { object label = FishInfo.GetFishLabel(m_BaitType); if (label is int) { list.Add(1116468, String.Format("#{0}", (int)label)); //baited to attract: ~1_val~ } else if (label is string) { list.Add(1116468, (string)label); } list.Add(1116466, m_BaitUses.ToString()); } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_UsesRemaining = reader.ReadInt(); m_Index = reader.ReadInt(); m_Enhanced = reader.ReadBool(); if (m_Index < 0) { m_Index = 0; } if (m_Index >= FishInfo.FishInfos.Count) { m_Index = FishInfo.FishInfos.Count - 1; } m_BaitType = FishInfo.FishInfos[m_Index].Type; //Hue = FishInfo.FishInfos[m_Index].Hue; m_Label = FishInfo.GetFishLabel(m_Index); }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); if (m_AosAttributes.Brittle != 0) { list.Add(1116209); // Brittle } if (m_AosSkillBonuses != null) { m_AosSkillBonuses.GetProperties(list); } base.AddResistanceProperties(list); int prop = 0; if ((prop = (m_AosAttributes.WeaponDamage)) != 0) { list.Add(1060401, prop.ToString()); // damage increase ~1_val~% } if ((prop = m_AosAttributes.DefendChance) != 0) { list.Add(1060408, prop.ToString()); // defense chance increase ~1_val~% } if ((prop = m_AosAttributes.EnhancePotions) != 0) { list.Add(1060411, prop.ToString()); // enhance potions ~1_val~% } if ((prop = m_AosAttributes.CastRecovery) != 0) { list.Add(1060412, prop.ToString()); // faster cast recovery ~1_val~ } if ((prop = m_AosAttributes.CastSpeed) != 0) { list.Add(1060413, prop.ToString()); // faster casting ~1_val~ } if ((prop = (m_AosAttributes.AttackChance)) != 0) { list.Add(1060415, prop.ToString()); // hit chance increase ~1_val~% } if ((prop = m_AosAttributes.BonusDex) != 0) { list.Add(1060409, prop.ToString()); // dexterity bonus ~1_val~ } if ((prop = m_AosAttributes.BonusHits) != 0) { list.Add(1060431, prop.ToString()); // hit point increase ~1_val~ } if ((prop = m_AosAttributes.BonusInt) != 0) { list.Add(1060432, prop.ToString()); // intelligence bonus ~1_val~ } if ((prop = m_AosAttributes.LowerManaCost) != 0) { list.Add(1060433, prop.ToString()); // lower mana cost ~1_val~% } if ((prop = m_AosAttributes.LowerRegCost) != 0) { list.Add(1060434, prop.ToString()); // lower reagent cost ~1_val~% } if ((prop = m_LowerStatReq) != 0) { list.Add(1060435, m_LowerStatReq.ToString()); // lower requirements ~1_val~% } if ((prop = m_AosAttributes.SpellChanneling) != 0) { list.Add(1060482); // spell channeling } if (!CraftResources.IsStandard(m_Resource)) { list.Add(CraftResources.GetName(m_Resource)); } if ((prop = (GetLuckBonus() + m_AosAttributes.Luck)) != 0) { list.Add(1060436, prop.ToString()); // luck ~1_val~ } if ((prop = m_AosAttributes.BonusMana) != 0) { list.Add(1060439, prop.ToString()); // mana increase ~1_val~ } if ((prop = m_AosAttributes.RegenMana) != 0) { list.Add(1060440, prop.ToString()); // mana regeneration ~1_val~ } if ((prop = m_AosAttributes.NightSight) != 0) { list.Add(1060441); // night sight } if ((prop = m_AosAttributes.ReflectPhysical) != 0) { list.Add(1060442, prop.ToString()); // reflect physical damage ~1_val~% } if ((prop = m_AosAttributes.RegenStam) != 0) { list.Add(1060443, prop.ToString()); // stamina regeneration ~1_val~ } if ((prop = m_AosAttributes.RegenHits) != 0) { list.Add(1060444, prop.ToString()); // hit point regeneration ~1_val~ } if ((prop = m_AosAttributes.SpellDamage) != 0) { list.Add(1060483, prop.ToString()); // spell damage increase ~1_val~% } if ((prop = m_AosAttributes.BonusStam) != 0) { list.Add(1060484, prop.ToString()); // stamina increase ~1_val~ } if ((prop = m_AosAttributes.BonusStr) != 0) { list.Add(1060485, prop.ToString()); // strength bonus ~1_val~ } //if ( (prop = m_AosAttributes.WeaponSpeed) != 0 ) // list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~% int hookCliloc = BaseFishingHook.GetHookType(m_HookType); if (m_HookType > HookType.None && hookCliloc > 0) { list.Add(1150885, String.Format("#{0}", hookCliloc)); //special hook: ~1_token~ list.Add(1150889, String.Format("#{0}", BaseFishingHook.GetCondition(m_HookUses))); //Hook condition: ~1_val~ } if (m_BaitType != null) { object label = FishInfo.GetFishLabel(m_BaitType); if (label is int) { list.Add(1116468, String.Format("#{0}", (int)label)); //baited to attract: ~1_val~ } else if (label is string) { list.Add(1116468, (string)label); } list.Add(1116466, m_BaitUses.ToString()); // amount: ~1_val~ } list.Add(1061170, GetStrRequirement().ToString()); // strength requirement ~1_val~ }