#W# Getting things ready for the Virtue system. Added Virtue Tome.

This commit is contained in:
WarrentyExpired 2026-07-22 11:22:45 -04:00
parent a274b44658
commit 1e2b82b64b
2 changed files with 64 additions and 33 deletions

View file

@ -3295,6 +3295,15 @@ namespace Server.Mobiles
public virtual void OnKilledBy( Mobile mob )
{
if ( mob is PlayerMobile && this.Karma < 0 )
{
PlayerMobile pm = (PlayerMobile)mob;
int pointsToAward = Math.Abs( this.Karma ) / 1000;
if ( pointsToAward < 1 )
pointsToAward = 1;
pm.VirtuePoints += pointsToAward;
pm.SendMessage( 63, "You have gained {0} Virtue Points for vanquishing evil!", pointsToAward );
}
}
public override void OnDeath( Container c )