fix stats not showing up

This commit is contained in:
SilicaAndPina 2021-02-14 17:59:35 +13:00
parent 2e1174efbb
commit 86a0aeed3b
2 changed files with 8 additions and 8 deletions

View file

@ -161,31 +161,31 @@ namespace HISP.Game.Horse
string effects = effect.EffectsWhat; string effects = effect.EffectsWhat;
switch (effects) switch (effects)
{ {
case "AGILITYOFFSET": case "AGILITY":
if (horseStat == StatType.AGILITY) if (horseStat == StatType.AGILITY)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "CONFORMATIONOFFSET": case "CONFORMATION":
if (horseStat == StatType.CONFORMATION) if (horseStat == StatType.CONFORMATION)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "ENDURANCEOFFSET": case "ENDURANCE":
if (horseStat == StatType.ENDURANCE) if (horseStat == StatType.ENDURANCE)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "PERSONALITYOFFSET": case "PERSONALITY":
if (horseStat == StatType.PERSONALITY) if (horseStat == StatType.PERSONALITY)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "SPEEDOFFSET": case "SPEED":
if (horseStat == StatType.SPEED) if (horseStat == StatType.SPEED)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "STRENGTHOFFSET": case "STRENGTH":
if (horseStat == StatType.STRENGTH) if (horseStat == StatType.STRENGTH)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;
case "INTELLIGENCEOFFSET": case "INTELLIGENCE":
if (horseStat == StatType.INTELIGENCE) if (horseStat == StatType.INTELIGENCE)
offsetBy += effect.EffectAmount; offsetBy += effect.EffectAmount;
break; break;

View file

@ -4038,7 +4038,7 @@ namespace HISP.Server
sender.LoggedinUser.Teleport(sender.LoggedinUser.OwnedRanch.X, sender.LoggedinUser.OwnedRanch.Y); sender.LoggedinUser.Teleport(sender.LoggedinUser.OwnedRanch.X, sender.LoggedinUser.OwnedRanch.Y);
} }
if(itm.ItemId == Item.Telescope) else if(itm.ItemId == Item.Telescope)
{ {
byte[] birdMap = PacketBuilder.CreateBirdMap(sender.LoggedinUser.X, sender.LoggedinUser.Y); byte[] birdMap = PacketBuilder.CreateBirdMap(sender.LoggedinUser.X, sender.LoggedinUser.Y);
sender.SendPacket(birdMap); sender.SendPacket(birdMap);