fix: Cleans up some comments and spell code (#1120)
This commit is contained in:
parent
56c97ca84a
commit
fa3515f930
44 changed files with 338 additions and 469 deletions
|
|
@ -164,23 +164,20 @@ namespace Server
|
|||
}
|
||||
}
|
||||
|
||||
if (from?.Player != true && m.Player && m.Mount is SwampDragon pet)
|
||||
if (from?.Player != true && m.Player && m.Mount is SwampDragon { HasBarding: true } pet)
|
||||
{
|
||||
if (pet.HasBarding)
|
||||
var percent = pet.BardingExceptional ? 20 : 10;
|
||||
var absorbed = Scale(totalDamage, percent);
|
||||
|
||||
totalDamage -= absorbed;
|
||||
pet.BardingHP -= absorbed;
|
||||
|
||||
if (pet.BardingHP < 0)
|
||||
{
|
||||
var percent = pet.BardingExceptional ? 20 : 10;
|
||||
var absorbed = Scale(totalDamage, percent);
|
||||
pet.HasBarding = false;
|
||||
pet.BardingHP = 0;
|
||||
|
||||
totalDamage -= absorbed;
|
||||
pet.BardingHP -= absorbed;
|
||||
|
||||
if (pet.BardingHP < 0)
|
||||
{
|
||||
pet.HasBarding = false;
|
||||
pet.BardingHP = 0;
|
||||
|
||||
m.SendLocalizedMessage(1053031); // Your dragon's barding has been destroyed!
|
||||
}
|
||||
m.SendLocalizedMessage(1053031); // Your dragon's barding has been destroyed!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server
|
|||
{
|
||||
}
|
||||
|
||||
// Only the timed one needs to Mobile to know when to automagically remove it.
|
||||
// Only the timed one needs the Mobile to know when to automagically remove it.
|
||||
public BuffInfo(BuffIcon iconID, int titleCliloc, int secondaryCliloc, TimeSpan length, Mobile m)
|
||||
: this(iconID, titleCliloc, secondaryCliloc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue