Skip to content

Commit

Permalink
Update Warehouse.lua
Browse files Browse the repository at this point in the history
- Added check for incorrect plane attribute
  • Loading branch information
funkyfranky committed Oct 1, 2024
1 parent 846aa82 commit 5f8d1cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Moose Development/Moose/Functional/Warehouse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8433,12 +8433,14 @@ function WAREHOUSE:_GetAttribute(group)
local attribute=WAREHOUSE.Attribute.OTHER_UNKNOWN --#WAREHOUSE.Attribute

if group then

local groupCat=group:GetCategory()

-----------
--- Air ---
-----------
-- Planes
local transportplane=group:HasAttribute("Transports") and group:HasAttribute("Planes")
local transportplane=group:HasAttribute("Transports") and group:HasAttribute("Planes") and groupCat==Group.Category.AIRPLANE
local awacs=group:HasAttribute("AWACS")
local fighter=group:HasAttribute("Fighters") or group:HasAttribute("Interceptors") or group:HasAttribute("Multirole fighters") or (group:HasAttribute("Bombers") and not group:HasAttribute("Strategic bombers"))
local bomber=group:HasAttribute("Strategic bombers")
Expand Down

0 comments on commit 5f8d1cf

Please sign in to comment.