mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +12:00
fix stats not showing up
This commit is contained in:
parent
2e1174efbb
commit
86a0aeed3b
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue