################################################################

########### BETA Hotfix 1.5.1 "Cornflakes" BETA ###########

################################################################



##################################

# AI

##################################

- "Desperate AI" improvements, ai know does not switch escape provinces as long as last one valid and fixed a case where it can try to escape a province that is also desperate

- fixed a case where armor divisions were being allowed in defense fronts



##################################

# UI

##################################

- Fixed positioning of add army portrait btn.

- Fixed Zaibatsus Challenged tooltip issue.

- Fixed balance, tooltips, and events for ideology switching decisions.

- Fixed border clash focus icons lost gfx

- Added infantry tech level 3 3D model. Copies lvl 2 version.

- Fix construction showing more building levels to be repaired than what was constructed.

- fixed naval production gui not updating when you switch equipment

- fixed ui scaling no longer breaking tooltips

- added tooltip that explains increased capacity for garrison orders

- Fixed battle plan tools going behind army list stopping you from training on small screens

- Danzig for Guarantees now mentions getting Poznan as well.

- fix for minimap positioning with UI scaling

- fixed drag and drop not working with ui scale



##################################

# Modding

##################################

- Added cancel_trigger to all types of decisions. cancel_trigger will not run remove_effect when true.

- Missions now use cancel_trigger to abort before completion and remove_trigger to remove and run remove effect if the decision stays in the interface.

- Added modifier army_org_regain

- Fixed "random variables" being broken with tooltips

- fixed an issue where mods were loaded in wrong order and couldnt overwrite DLC



##################################

# Database

##################################

- removed a focus from PRC 1939 start that caused an error

- Fix for two wrong division name lists in the 1939 start

- Event pictures "communists cheer" and "American hunger strike" now have interface entries

- unlocked Chennault as adviser for manchukuo and reduced cost for him

- Reenabled generic tank manufacturer idea for countries without

- Returned Samoa to its (then) rightful owner



##################################

# Balance

##################################

- Germany should no longer lose 50% of its equipment upon starting the Oppose Hitler civil war.



##################################

# Bugfix

##################################

- Prevented exploit of tech swapping military doctrines by starting level 2 tech in the current branch before switching to a different branch.

- Fixed Chinese Industry Relocation decisions to check for control of state.

- Changed remove_trigger to cancel_trigger for Political Struggle decisions to avoid sudden influx of points when someone claimed national leadership

- Reinstate Imperial Possessions no longer removes core for Alsace from France.

- Fixed not creating combats while moving into provinces that has combats that you can't join (where both are enemies)

- Made "Triumph for X" decisions non-repeatable.

- fix for double inflation spirit appearing under certain circumstances

- their cores are no longer lost when you puppet a nation (fixes soups in peace deals when AI cant liberate for example)

- Now guarantees can be mutual (fixes a path in japanese focus tree)

- Fixed frontlines around wastelands sometime disappearing.

- JAP nuke surrender decision now clears global flags

- PRC that takes over through political struggle will not inherit negative spirits from China

- added bypass checks for Confrontation with the warlords focus

- blocked taking national leadership if subject or leader is subject

- Fixed a case which could prevent nations from ever surrendering

- Manchukuo now loses Kwantung Veto when released through the Japanese focus tree.

- Changed local_org_regain to army_org_regain for communist china's spirits

- added bypass checks to Finish the Fight focus for japan

- Fixed planes being engaged in combat in another region than the one they are assigned to

- Added recalculation of support points if a state involved in the struggle changes controller

- Fixed an issue where states would show as being part of the strugle, though they were controlled by an enemy nation.

- Fixed female unit leaders being converted to males on save/reload

- Surprise Attack Plan idea for civil wars is now functional.

- Creating a Manchurian Airforce focus will now bypass if MAN does not exist

- Enabled increase Airlift decision for a China that is in the United Front

- Fate of the Imperial Family no longer requires Manchukuo to exist.

- Decision to escalate to a border conflict is now cancelled if in faction with the target

- Fixed issue where decisions updating decisions to remove could skip an element in the array if one was supposed to be removed

- fixed an issue where Manchuko's Assertiveness branch broke if Japan went with support Kodoha (lost Puyi, lost special autonomy level)

- Forcefully removing support for opposition in a state now properly reduces the gloabl support for the leader of China

- Added bypass trigger to Japanese focus Triparte Pact if either Germany or Italy is not fascist or Japan is at war with either of them

- Secret CIA reference now actually works (maybe. but thats CLASSIFIED)

- Removed max trait limit from unit leaders

- Fix for awake and angry achievement not working

- fixed a US resource decision pointing to the wrong state

- Adjusted Wilhelm II and von Mackensen minimum/average death dates.



##################################

# Stability & Performance

##################################

- fixed an OOS that is caused by triggering same event twice

- added CTD safety checks to deployment destruction to avoid random crashes

- Prevented using the Continue button to load an old save from a previous and incompatible save version.

- Possibly fixed new game launch crash with modded initial state where it tries to instantly peace out countries at war