fix(content): Localizes some messages and cleans up virtues (#657)
This commit is contained in:
parent
fb915992dd
commit
f8820e581a
9 changed files with 122 additions and 80 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue