Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PrePlanManager.lua #867

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 0 additions & 192 deletions lua/BuyAllAsset.lua

This file was deleted.

4 changes: 2 additions & 2 deletions lua/PrePlanManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ elseif requiredScript == "lib/managers/preplanningmanager" then
if PrePlanningManager._SAVED_PLANS and PrePlanningManager._SAVED_PLANS[name] then
local saved_assets, saved_votes = PrePlanningManager._SAVED_PLANS[name].assets or {}, PrePlanningManager._SAVED_PLANS[name].votes or {}
for i, data in pairs(saved_votes) do
money_costs = money_costs + self:_get_type_cost(data.type)
money_costs = money_costs + self:get_type_cost(data.type)
favours = favours + self:get_type_budget_cost(data.type, 0)
end

for id, mission_element in pairs(saved_assets) do
money_costs = money_costs + self:_get_type_cost(mission_element.type)
money_costs = money_costs + self:get_type_cost(mission_element.type)
favours = favours + self:get_type_budget_cost(mission_element.type, 0)
end
end
Expand Down
2 changes: 0 additions & 2 deletions supermod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<post :hook_id="moneymanager" :script_path="Scripts.lua"/>
<post :hook_id="multiprofilemanager" :script_path="ProfileMenu.lua"/>
<post :hook_id="crimespreemanager" :script_path="TabStats.lua"/>
<post :hook_id="missionassetsmanager" :script_path="BuyAllAsset.lua"/>
<post :hook_id="preplanningmanager" :script_path="PrePlanManager.lua"/>
<post :hook_id="platformmanager" :script_path="RichPresence.lua"/>
<post :hook_id="skirmishmanager" :script_path="RichPresence.lua"/>
Expand Down Expand Up @@ -134,7 +133,6 @@
</group>

<group :hook_id="missionbriefinggui">
<post :script_path="BuyAllAsset.lua"/>
<post :script_path="EnhancedCrewLoadout.lua"/>
<post :script_path="ProfileMenu.lua"/>
</group>
Expand Down