Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron authored Feb 21, 2024
1 parent 05d195d commit 0c856bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Init.InitGameBlackboard()
Blackboard.SetProp("PLAYER_INVENTORY", "ITEM_ADN", "f", current_amount + 1)
end
if string.sub(_FORV_3_, 1, 17) == "ITEM_RESERVE_TANK" then
if (_FORV_3_ == "ITEM_RESERVE_TANK_MISSILE" and Blackboard.GetProp("PLAYER_INVENTORY", "ITEM_WEAPON_MISSILE_LAUNCHER")) or _FORV_3_ ~= "ITEM_RESERVE_TANK_MISSILE" then
if _FORV_3_ ~= "ITEM_RESERVE_TANK_MISSILE" or Blackboard.GetProp("PLAYER_INVENTORY", "ITEM_WEAPON_MISSILE_LAUNCHER") then
Blackboard.SetProp("GAME", _FORV_3_ .. "_ACTIVE", "b", true)
Blackboard.SetProp("GAME", _FORV_3_ .. "_FULL", "b", true)
end
Expand Down

0 comments on commit 0c856bd

Please sign in to comment.