This commit is contained in:
parent
c63a5f13fa
commit
2204d5fb86
86 changed files with 1077 additions and 257 deletions
|
|
@ -134,12 +134,20 @@ namespace Server.Items
|
|||
m.Animate( 34, 5, 1, true, false, 0 );
|
||||
}
|
||||
|
||||
public static int EnhancePotions( Mobile m )
|
||||
{
|
||||
int EP = AosAttributes.GetValue( m, AosAttribute.EnhancePotions );
|
||||
if ( Core.ML && EP > 50 )
|
||||
EP = 50;
|
||||
return EP;
|
||||
}
|
||||
|
||||
public static TimeSpan Scale( Mobile m, TimeSpan v )
|
||||
{
|
||||
if ( !Core.AOS )
|
||||
return v;
|
||||
|
||||
double scalar = 1.0 + (0.01 * AosAttributes.GetValue( m, AosAttribute.EnhancePotions ));
|
||||
double scalar = 1.0 + ( 0.01 * EnhancePotions( m ) );
|
||||
|
||||
return TimeSpan.FromSeconds( v.TotalSeconds * scalar );
|
||||
}
|
||||
|
|
@ -149,7 +157,7 @@ namespace Server.Items
|
|||
if ( !Core.AOS )
|
||||
return v;
|
||||
|
||||
double scalar = 1.0 + (0.01 * AosAttributes.GetValue( m, AosAttribute.EnhancePotions ));
|
||||
double scalar = 1.0 + ( 0.01 * EnhancePotions( m ) );
|
||||
|
||||
return v * scalar;
|
||||
}
|
||||
|
|
@ -159,7 +167,7 @@ namespace Server.Items
|
|||
if ( !Core.AOS )
|
||||
return v;
|
||||
|
||||
return AOS.Scale( v, 100 + AosAttributes.GetValue( m, AosAttribute.EnhancePotions ) );
|
||||
return AOS.Scale( v, 100 + EnhancePotions( m ) );
|
||||
}
|
||||
|
||||
public override bool StackWith( Mobile from, Item dropped, bool playSound )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue