More updates to scripts (still wont build)

This commit is contained in:
hondacrx
2023-10-13 16:11:34 -04:00
parent cda53c8e7f
commit 33091ed942
26 changed files with 4195 additions and 2894 deletions
+4 -2
View File
@@ -801,9 +801,11 @@ namespace Game.Scripting
{
ForEach<PlayerScript>(p => p.OnMoneyChanged(player, amount));
}
public void OnGivePlayerXP(Player player, uint amount, Unit victim)
public void OnGivePlayerXP(Player player, ref uint amount, Unit victim)
{
ForEach<PlayerScript>(p => p.OnGiveXP(player, amount, victim));
uint tempAmount = amount;
ForEach<PlayerScript>(p => tempAmount = p.OnGiveXP(player, tempAmount, victim));
amount = tempAmount;
}
public void OnPlayerReputationChange(Player player, uint factionID, int standing, bool incremental)
{