Code: Select all
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<replace sel="//mdscript[@name='NPC_Instantiation']/cues//library[@name='HiringFeeFromCombinedSkill']/actions/set_value[@name='$HiringFee'][1]/@exact">1000 * (1.129305 ^ $combinedskill)</replace>
<remove sel="//mdscript[@name='NPC_Instantiation']/cues//library[@name='HiringFeeFromCombinedSkill']/actions/do_if/set_value[@name='$HiringFee'][1]/@exact">[$HiringFee, (($combinedskill * 15) * (15 ^ ($combinedskill / 20f)))i].max</remove>
</diff>
Changes the hiring fee formula for npcs to a new value that changes progressively as $combinedskill grows.
Remove the second formula that was used when $combinedskill was > 20
Keeps the addition of 300-700 Cr and then rounds the result.
Game skips node because it can't find the correct one. Changes apply to npcinstantion.xml. structure is as follows:
mod_folder/md/npcinstantion.xml
mod_folder/content.xml
It has been formatted with the help of Copilot/chatgpt.
Tried to remove [1] node selection, tried with [0][1][2]([last]) but no luck.