diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-07-12 15:13:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 16:13:52 +0200 |
commit | 3739df36a838f32ca03621120944663d3b71b963 (patch) | |
tree | ce9d43b0622fd079dbb25e4a5706706ed860f55a /Northstar.CustomServers/mod/scripts/vscripts/item_inventory | |
parent | eb46de39a5d14da45a69ee4826c4fd3113358fe8 (diff) | |
download | NorthstarMods-3739df36a838f32ca03621120944663d3b71b963.tar.gz NorthstarMods-3739df36a838f32ca03621120944663d3b71b963.zip |
set weapon.e.burnReward when giving a burn reward (#417)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/item_inventory')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut b/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut index 4e8f85ac..496ebf84 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/item_inventory/sv_item_inventory.gnut @@ -87,6 +87,10 @@ void function PlayerInventory_GiveInventoryItem( entity player, InventoryItem in PlayerInventory_TakeInventoryItem( player ) player.GiveOffhandWeapon( inventoryItem.weaponRef, OFFHAND_INVENTORY, mods ) + if ( inventoryItem.itemType == eInventoryItemType.burnmeter ) { + entity weapon = player.GetOffhandWeapon(OFFHAND_INVENTORY) + weapon.e.burnReward = inventoryItem.burnReward.ref + } } void function PlayerInventory_PushInventoryItem( entity player, InventoryItem inventoryItem ) |