ServUO Version
Publish 57
Ultima Expansion
Renaissance
Hello Everyone, maybe a bit stupid question but is there a way for HP to scale with STR 1:1 for players please?

I've been searching the scripts but couldn't find any leads.

Thank you
 
In PlayerMobile.cs
[CommandProperty(AccessLevel.GameMaster)]
public override int HitsMax
{
get
{
int strBase;
int strOffs = GetStatOffset(StatType.Str);

strBase = Str; //Str already includes GetStatOffset/str
strOffs = AosAttributes.GetValue(this, AosAttribute.BonusHits);

if (strOffs > 25 && IsPlayer())
{
strOffs = 25;
}

if (AnimalForm.UnderTransformation(this, typeof(BakeKitsune)) ||
AnimalForm.UnderTransformation(this, typeof(GreyWolf)))
{
strOffs += 20;
}

// Skill Masteries
strOffs += ToughnessSpell.GetHPBonus(this);
strOffs += InvigorateSpell.GetHPBonus(this);

return (strBase / 2) + 50 + strOffs;
}
}




edit
return (strBase / 2) + 50 + strOffs;
to
return strBase + strOffs;
 
Back