Changing tech cost to 0 does not work properly

:play_button: GAME INFORMATION

  • GAME BUILD #: 185872
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Windows 11

:play_button: ISSUE EXPERIENCED

  • Tech which cost changed to 0 deducts/refund wrong type of resource on researching/canceling

:play_button: FREQUENCY OF ISSUE

  • 100% of the time / matches I play (ALWAYS)

:play_button: REPRODUCTION STEPS

  1. Open editor and make a new scenario, generate a random map that with Town Center

  2. Make a trigger with a “Change Technology Cost” effect as:

    • Technologies: Wheelbarrow (that has 2 resource cost)

    • Resource 1 as “!Food Storage” with 175 Quantity (be same sequence/type of cost in dat)

    • Resource 2 as “!Wood storage” with 0 Quantity

    • Resource 3 as empty with 0 Quantity (same with sequence/type of cost in dat)

  3. Set enough resource to player 1, set starting age as “Feudal” and civ as “Vietnamese” (that also reduces eco tech wood cost in dat effect #652)

  4. Start a test and do Wheelbarrow on Town Center, it shows that costs only 175 food (as expected), but deducts 175 Food / 50 Wood to research and refund 175 Wood only on canceling

:play_button: EXPECTED RESULT

  • Tech cost that has 0 quantity requires 0 or more resource with same type, negative resource value is not allowed to research even if that tech requires 0 resource
  • Tech deducts same type/value cost as it is described when research, and refund as same type/value cost as deducted on canceling

:play_button: IMAGE

:play_button: GAME FILES (SAVE / RECORDING)