diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-20 21:31:33 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-20 21:31:33 +0000 |
commit | dade102a0d4d14ba5ee560022b8e2f1ddf960977 (patch) | |
tree | 136e096242c08a1041f6a45919326bd7ac3d1b53 /Northstar.CustomServers/mod/scripts/vscripts/burnmeter | |
parent | c02ec0cce39b36a6264e414a4741c8ea131f5286 (diff) | |
download | NorthstarMods-dade102a0d4d14ba5ee560022b8e2f1ddf960977.tar.gz NorthstarMods-dade102a0d4d14ba5ee560022b8e2f1ddf960977.zip |
near-release fixes
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/burnmeter')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut b/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut index d4bc38d4..2926b773 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/burnmeter/_burnmeter.gnut @@ -199,6 +199,9 @@ void function UseBurnCardWeapon( entity weapon, entity player ) // dont remove in RunBurnCardUseFunc because it can be called in non-burn_card_weapon_mod contexts // TODO: currently not sure how burncards can be stacked ( max clipcount for all burncards is 1, so can't just set that ) // if this gets figured out, add a conditional check here to prevent removes if they've got burncards left + if ( PlayerEarnMeter_IsRewardAvailable( player ) ) + PlayerEarnMeter_SetRewardUsed( player ) + player.TakeWeapon( BurnReward_GetByRef( ref ).weaponName ) } |