
Originally Posted by
Fluke
Would it be possible to offer an official submod that disables the public order penalty from docked fleets? Or perhaps there is an easy way to disable it through a simple edit using the PFM?
Yep. Open the lua scripts section, and export PublicOrder.lua. Then find the section here (line 79-106), inside function local function PublicOrderFleets(context):
Code:
local max_public_order_negative = 25;
if matched_regions <= 1 then
if context:character():faction():state_religion() == context:character():garrison_residence():region():majority_religion()
then multiplier = 1.3
else multiplier = 1.5
end;
elseif matched_regions == 2 then
if context:character():faction():state_religion() == context:character():garrison_residence():region():majority_religion()
then multiplier = 1.2
max_public_order_negative = 20
else multiplier = 1.3
end;
elseif matched_regions > 2 then
if context:character():faction():state_religion() == context:character():garrison_residence():region():majority_religion()
then divisor = 1.35
max_public_order_negative = 15
end;
end;
if matched_regions < 3 then
public_order_negative = math.ceil(context:character():military_force():unit_list():num_items()*multiplier)
else
public_order_negative = math.ceil(context:character():military_force():unit_list():num_items()/divisor)
end
if public_order_negative > max_public_order_negative
then public_order_negative = max_public_order_negative
end;
Change the 25, 20, and 15 on the max_public_order_negative = X lines to 0.
Then delete PublicOrder.lua inside PFM and import the changed version (maybe it will overwrite if you don't delete, idk) from disk.