hmm i am looking around line 977 and not finding anything that looks like it would allow me to change the hp/str ratio. Here is what my code looks like from 952-1046
Code:
public override bool CheckContextMenuDisplay( IEntity target )
{
return ( m_DesignContext == null );
}
public override void OnItemAdded( Item item )
{
base.OnItemAdded( item );
if ( item is BaseArmor || item is BaseWeapon )
{
Hits=Hits; Stam=Stam; Mana=Mana;
}
if ( this.NetState != null )
CheckLightLevels( false );
InvalidateMyRunUO();
}
public override void OnItemRemoved( Item item )
{
base.OnItemRemoved( item );
if ( item is BaseArmor || item is BaseWeapon )
{
Hits=Hits; Stam=Stam; Mana=Mana;
}
if ( this.NetState != null )
CheckLightLevels( false );
InvalidateMyRunUO();
}
public override double ArmorRating
{
get
{
//BaseArmor ar;
double rating = 0.0;
AddArmorRating( ref rating, NeckArmor );
AddArmorRating( ref rating, HandArmor );
AddArmorRating( ref rating, HeadArmor );
AddArmorRating( ref rating, ArmsArmor );
AddArmorRating( ref rating, LegsArmor );
AddArmorRating( ref rating, ChestArmor );
AddArmorRating( ref rating, ShieldArmor );
return VirtualArmor + VirtualArmorMod + rating;
}
}
private void AddArmorRating( ref double rating, Item armor )
{
BaseArmor ar = armor as BaseArmor;
if( ar != null && ( !Core.AOS || ar.ArmorAttributes.MageArmor == 0 ))
rating += ar.ArmorRatingScaled;
}
#region [Stats]Max
[CommandProperty( AccessLevel.GameMaster )]
public override int HitsMax
{
get
{
int strBase;
int strOffs = GetStatOffset( StatType.Str );
if ( Core.AOS )
{
strBase = this.Str; //this.Str already includes GetStatOffset/str
strOffs = AosAttributes.GetValue( this, AosAttribute.BonusHits );
if ( AnimalForm.UnderTransformation( this, typeof( BakeKitsune ) ) || AnimalForm.UnderTransformation( this, typeof( GreyWolf ) ) )
strOffs += 20;
}
else
{
strBase = this.RawStr;
}
return (strBase / 2) + 50 + strOffs;
}
}
[CommandProperty( AccessLevel.GameMaster )]
public override int StamMax
{
get{ return base.StamMax + AosAttributes.GetValue( this, AosAttribute.BonusStam ); }
}
I thought maybe this would be it
return (strBase / 2) + 50 + strOffs;
and I changed it to
return (strBase / 2) + 140 + strOffs;
and saw no change in the game. Or would this not effect existing players who have already created a character?