fix(content): Localizes some messages and cleans up virtues (#657)

This commit is contained in:
Kamron Batman 2021-07-11 23:10:54 -07:00 • committed by GitHub
parent fb915992dd
commit f8820e581a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 122 additions and 80 deletions

View file

@ -38,7 +38,7 @@ namespace Server
public static void CheckAtrophy(Mobile from)
{
if (!(from is PlayerMobile pm))
if (from is not PlayerMobile pm)
{
return;
}
@ -71,7 +71,7 @@ namespace Server
return;
}
if (!(from is PlayerMobile pm))
if (from is not PlayerMobile pm)
{
return;
}
@ -106,12 +106,12 @@ namespace Server
return;
}
if (!(from is PlayerMobile pm))
if (from is not PlayerMobile pm)
{
return;
}
if (!(targeted is Mobile targ))
if (targeted is not Mobile targ)
{
return;
}
@ -142,20 +142,12 @@ namespace Server
}
else
{
int toGain;
if (from.Fame < 5000)
int toGain = from.Fame switch
{
toGain = 500;
}
else if (from.Fame < 10000)
{
toGain = 1000;
}
else
{
toGain = 2000;
}
< 5000 => 500,
< 10000 => 1000,
_ => 2000
};
from.Fame = 0;