Refactor IDevourable to IDevourer, as the interface represents an entity that consumes corpses, and not the entity being consumed.
Refactor PlagueBeast to not require additional API by handling the devour goal increase in the property directly.
This commit is contained in:
parent
5d07b8f64a
commit
5624873cd7
4 changed files with 9 additions and 42 deletions
|
|
@ -955,22 +955,6 @@ namespace Server.Mobiles
|
|||
base.OnBeforeSpawn( location, m );
|
||||
}
|
||||
|
||||
public virtual void OnBeforeParagonConvert()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void OnAfterParagonConvert()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void OnBeforeParagonUnConvert()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void OnAfterParagonUnConvert()
|
||||
{
|
||||
}
|
||||
|
||||
public override ApplyPoisonResult ApplyPoison( Mobile from, Poison poison )
|
||||
{
|
||||
if ( !Alive || IsDeadPet )
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@ namespace Server.Mobiles
|
|||
if ( bc.IsParagon )
|
||||
return;
|
||||
|
||||
bc.OnBeforeParagonConvert();
|
||||
|
||||
bc.Hue = Hue;
|
||||
|
||||
if ( bc.HitsMaxSeed >= 0 )
|
||||
|
|
@ -90,8 +88,6 @@ namespace Server.Mobiles
|
|||
if( Math.Abs( bc.Karma ) > 32000 )
|
||||
bc.Karma = 32000 * Math.Sign( bc.Karma );
|
||||
}
|
||||
|
||||
bc.OnAfterParagonConvert();
|
||||
}
|
||||
|
||||
public static void UnConvert( BaseCreature bc )
|
||||
|
|
@ -99,7 +95,6 @@ namespace Server.Mobiles
|
|||
if ( !bc.IsParagon )
|
||||
return;
|
||||
|
||||
bc.OnBeforeParagonUnConvert();
|
||||
bc.Hue = 0;
|
||||
|
||||
if ( bc.HitsMaxSeed >= 0 )
|
||||
|
|
@ -131,8 +126,6 @@ namespace Server.Mobiles
|
|||
bc.Fame = (int)( bc.Fame / FameBuff );
|
||||
if ( bc.Karma != 0 )
|
||||
bc.Karma = (int)( bc.Karma / KarmaBuff );
|
||||
|
||||
bc.OnAfterParagonUnConvert();
|
||||
}
|
||||
|
||||
public static bool CheckConvert( BaseCreature bc )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue