luzon_barangay ="Spread out in small port cities and over numerous islands our state is dependent on the sea for its very existence. Our society is built to support long range trade, and everything, from the organization of agriculture to the laws and traditions reflect this fact."
naval_maintenance_modifier = -0.2
sailor_maintenance_modifer = -0.1

luzon_conquest_of_paradise ="Our archipelago is a paradise to some but it is not without its danger. Rainforests and tropical diseases can deter invaders and sometimes the best defence is our islands themselves. In the face of sure defeat we have traditionally employed scorched earth tactics and let the land fight the invaders for us"
hostile_attrition = 1

luzon_sino_philippine_trade ="Luzon and especially our position in the Pasig river delta, has allowed us to develop thriving ports for the import of Chinese goods into the entire archipelago. Chinese goods arrive regularly in Tondo where they can then be redistributed to the many ports and islands of the Philippines."
global_ship_trade_power = 0.1

luzon_tagalog_syncretism ="While we have never stopped worshipping the gods of our ancestors we have also never seen a reason to reject foreign faiths. Among our people we honor the Gods of the Brahmanic faiths, side by side with the god of the Mohammedans and Buddhists."
tolerance_heathen = 2

luzon_sailors ="Not all sailors serve on our own ships, some seek employment among the many warring states of Southeast Asia. Luzon Sailors can be found on warships from Brunei to Aceh.The experience these men earn abroad is something we can than make good use of in our own maritime endeavours. Let us encourage all our young men to seek their fortunes abroad so that they may later return experienced and hardened."
navy_tradition_decay = -0.01

luzon_a_safe_haven ="Our kingdom is close enough to enjoy a stream of Chinese, Japanese and Southeast Asian goods yet too far away to be within their reach. This makes us a desirable destination for many who for whichever reason wish to abandon their homeland. Let us invite these people to our land so that we can benefit from their skills and expertise."
advisor_cost = -0.1

luzon_expand_the_sugar_production ="One of the most sought after crops in these lands is the sugar that our ancestors have grown for centuries. In a more interconnected world this cash crop could bring us even greater wealth. Expanding the production of Sugar, through land reclamation as well as at the expense of other crops will allow our economy to grow to new heights."
production_efficiency = 0.1

mindanao_an_islamicized_barangay = {"Muslim traders, sufis and seamens have grown ever more common in the waters of Nusantara over the course of the last hundred years. We should integrate these newcomers in our realm and join the society of maritime Muslim sultanates. By paying homage both to this new god and the old gods of our ancestors we can be sure to have the support of the heavens as well as our people at all times."
tolerance_heathen = 2

} mindanao_unite_the_datus = {"There are a great number of Datus, chiefs, of varying stature and influence within our borders. Many exert a much greater deal of autonomy than we would like. Let us rein in these small time chiefs and make them all come regularly to our capital to partake in the kingship ceremonies of our dynasty."
global_tax_modifier = 0.1
}
mindanao_protect_the_riches_of_mindanao = {"The island that is our home is also a great source of wealth. Gold, pearls, sugar and cinnamon are all exotic goods that attract merchants from faraway realms and even continents. We must not let access to these goods go too easily. Let us protect our artisans and spice merchants and given them what support they need to thrive and profit from the presence of foreign traders."
global_trade_goods_size_modifier = 0.1
}
mindanao_moro_sailors = {"The Moro people of Mindanao and Sulu are famous for being able sailors and adept at naval warfare. Yet there are many who would claim to dominate these waters. We should build a new and strong fleet for our state, crewed by the many Moro sailors under our control."

naval_maintenance_modifier = -0.2
}
mindanao_fortify_our_ports = {"We live in a dangerous world, where slavers and pirates are a constant a threat to any coastal settlement. If that was not enough, the arrival of western ships signals the dawn of a new era, with new enemies. We must always be prepared for hostile attacks and fortify all important ports with stone and cannon."
defensiveness = 0.2
}
mindanao_guerilla_warfare = {"There are many who would try to seize our cities and villages against our will. These foreigners claim that they wish to convert us or 'settle' within our lands. We must resist all such attempts, and be ready to use the land itself against any invader."
land_morale = 0.1
}
mindanao_pirates_of_mindanao = {"The increased hostile presence throughout the open seas has ruined many of our captains. We must resist those who would put tariffs and regulation on our shipping and instead wholeheartedly engage in smuggling and piracy when we need to. By giving safe harbor to those hunted for piracy we might also increase our activities to once again chase away those who would limit our access to the seas."
embargo_efficiency = 0.1
privateer_efficiency = 0.25

oda_rakuichi_rakuza = {"All over Japan the old Za guilds have grown influential enough to smother many forms of enterprise. With private armies they are also an affront to our direct authority. Let us abolish their monopolies and do away with tolls and closed ports or cities. Free markets and guilds, rakuichi and rakuza, will put an end to Za influence and let our commerce flourish."
global_trade_goods_size_modifier = 0.1

oda_tenka_fubu = {"Stabilizing our own holdings has given us a strong base for future expansion in what can only be described as a chaotic realm. Let us make the unification and pacification of Japan our clan’s mission, unifying the world can only be done through force of arms."
province_warscore_cost = -0.1
core_creation = -0.1
}
oda_generals = {"Obsession with birth and privilege has made this country weak and the rise of self-made powerful Daimyo throughout the realm has clearly proven how useless such notions can be. Let us take this lesson to heart and let success and skill be the guiding principle for who should rise to command our armies. Strong leadership is a requirement for rapid expansion."
leader_land_shock = 1
}
oda_azuchi_castle = {"Japan is in many ways a land of castles and everywhere we can see the growth of Jokamachi, Castle cities. It is through the construction of strong castles that one can assert influence both over the political realm and the routes vital to military campaigns. This learning is one we must take to heart. From the imperial court to our own retainers it is through the castles that we make sure that they are constantly reminded of our presence and power. At all times we must prioritize the reduction of enemy castles and the erection of our own in strategic locations"
leader_siege = 1
}
oda_triple_firing = {"The advent of firearms has, and will continue to, revolutionize warfare in the Japanese archipelago and through mastering these new weapons we can dominate any battlefield. In order to increase the rate of their fire our musketmen will form ranks, allowing one to fire while two others reload."
fire_damage = 0.1
}
oda_patronization_of_the_west = {"Western missionaries have brought many ideas and techniques to our land and unlike the old Buddhist associations they have no previous ties to corrupt land owners or rebellious cities. We should welcome the westerners into our cities and examine the benefits they can bring to our court."
technology_cost = -0.05
}
oda_kenchi = {"Our realm is in many ways a patchwork of small manors and fiefs. An overview of their through worth, and in many cases even who owns what piece of land, is almost impossible to achieve. Let us undertake a major cadastral survey to investigate these lands in detail and create a new system of taxation and obligations that can then be both efficient and fair."
global_manpower_modifier = 0.2

###################
# Free Features
###################
- Optimized save file transfer, host was copying the file a bit too many times
- Optimized AI Performance in evaluating threat, they now all help each other out to make it faster.
- Improved thread utilisation of AI
- Optimized MTTH based events evaluation
- Improved countries usage of several threads for event evaluation, all on_bi_yearly_pulse are run multithreaded now

###################
# Gamebalance
###################

# Economy
- Interest reduction modifiers have been reduced in impact
- Minimum interest rate set to 1.0
- Low mandate now impacts on available mercs and unrest, up to -100% and +5 respectively
- Effects of devastation on Mandate increased
- Now need to have fully cored a province in a state for it to count towards heathen development when raising Janissaries.

# Governments
- Steppe Nomad government type grants faster movement speed for units.
- Mamluk Government now costs 60 points in the Nation Designer.
- The Horde Estate is less crippling to Horde Unity when mad.
- Tribal Allegiance decay is now capped to not be more than -3.0/year.

# Diplomacy
- Subjects no longer start out as rebellious due to uncalculated army power cache during initialization.
- AI will no longer guarantee rivals under any circumstances.
- Tributaries and daimyos now do power balancing internally in realm.
- Religious league leader now gets a -1000 penalty on allying opposing league leaders.
- Rebels (or other occupants) controlling provinces no longer influence want provinces the AI desires.
- AI is able to break alliances again.
- Unknown attitude now gives -1000 acceptance for Support Independence requests (fixing e.g. Transoxia getting support from Ming at game start).
- AI should now avoid warning much smaller nations.

# Economy
- Fixed that AI still cheated with fort maintenance sometimes.
- Dependent subjects allow a larger amount of their income to go to loan interest prior to declaring bankruptcy.
- Dependent subjects no longer recruit if they have any loans, provided their Liberty desire is low and they have no rebels.
- Dependent subjects will never lower autonomy.
- Subjects no longer spend twice as much on forts as non-subjects.

# War
- Improved AI for strategic regional planning.
- Improved AI for coordinated attacks.
- Improved AI logic for when to interrupt an enemy siege.
- AI now more careful with issuing assaults.
- The AI is now more likely to stand its ground when an enemy army approaches if in favorable terrain.
- AI now considers progress of siege when deciding whether to leave it.
- Improved AI siege logic.
- Fixed that AI sometimes thought it could attack a target from a neighboring wasteland, causing inaction.
- AI prefers to siege with 1 or 3 regs above minimum of limit now to avoid attrition.
- AI armies currently receiving attrition will no longer be drilled (this to prevent additional decision complexity, as well as risk of losing drilled troops to sustained attrition).
- Fixed another AI recruit - disband issue.
- AI armies waiting to be transported are now free to move normally until transports are available, this should e.g. lessen attrition and inactivity.
- Identified where approximately in code AI fort ZoC ignore bug comes from and tried to suppress it.
- Fixed eternal wars with other AI due to demanding provinces in areas without any forts controlled.
- Fixed some instances of AI fleets disobeying movement lock when cancelling movement.
- If an ally is asked to Prepare for War, they will now stop drilling to raise their morale.
- Splinter armies are a bit more likely to gather up with main close by rather than derping off elsewhere in a few cases.
- Fixed case of AI having much lower acceptable battle balance if a province was on the way to a target rather than the target itself, leading to suicidal behavior.
- Splinter armies will no longer stall offensives (should reduce sleepiness somewhat).
- Made offensives more likely to gather up properly.
- AI no longer tries to merge together fleets that have no ships in them, it discards them instead as it should.

#Other
- Improved AI for handling attrition.
- Improved AI for handling rebels overseas.
- AI no longer afraid of rebel armies more than one province away.
- Indulgent Personality AI no longer make random troop moves (just made the AI worse, and harder to debug).
- AI is (much) more likely to avoid reassigning leaders for drilling units while at peace.
- Reserved margin for rounding error in drilling logic, should eliminate a few on-off cycles.
- Fixed exiled armies refusing to path home through uncolonized land due to high threat levels.

###################
# Interface
###################

# Icons/Art
- Added new flag for Great Horde.
- Added new flag for Shirvan.
- Advisors now look at their own culture first for portrait graphics, then the province.

# Other
- Army Mintenance is no longer a thing.
- When you don't have a nation selected you now see all victory cards in the world in the victory card mapmode.
- Will now push decisions you've marked as uninteresting to the bottom of the list.
- Intel HD chipset users now only get told once that they don't have enough VRAM instead of every time they start the game.

###################
# Usermodding
###################
- Added defines ACCEPTABLE_BALANCE_DEFAULT and ACCEPTABLE_BALANCE_FRIEND_IN_COMBAT to specify thresholds for AI to join battle (also to clean up by centralizing lobotomized code).
- Fixed "else" effects within "if" effects being executed when that "if" failed even if it were immediately preceded by an "if" on the same level. In the below example, that means that the "else" would get executed if the limit of "If 1" failed rather than "If 2":
if = { # If 1
if = {} # If 2
else = {}
}
- It is now possible to scope to provinces in localisation. Example: [1234.GetName]
- Added transfer_subjects_when_made to subject types to encode personal union exception for subject takeovers.
- Added Drill decay modifier
- Added Province Triggered Modifiers which are way faster than the global triggered modifiers. They also have on_activation and on_deactivation effects you can do fun stuff with.
- Can now refer to first province in a state with FROM in potential and allow script
- Fixed misspelled on_janissares_raised, it is now spelled on_janissaries_raised.
- Fixed crash in religious school triggers caused by you removing muslim religion group.
- Added army wide drill modifier which uses the armies average drill value.

###################
# Script
###################
# Achievements
- The Rags to Riches achievement now requires that you start with no province over 10 development.
- The "It all belongs to Mother Russia" Achievement is now available for countries that start as Muscovite, Ryazanian or Novgorodian culture. Rather than just Muscovite.
- The "Definitely the Sultan of Rum" achievement is now available to both Ottomans and Rum.
- Venetian Sea achievement now requires 75% trade power instead of 90%

# Decisions
- Mutually exclusive religion decisions should now have clearer tooltips.
- The decision to move capital to Constantinople for the Ottomans and Rum now checks that you are in the Muslim religion group rather than just Sunni.
- Decisions that remove provinces from the Holy Roman Empire should now do so more consistently.
- Decisions that remove provinces from the Holy Roman Empire no longer list all provinces affected.
- You can now form Egypt even with a Mamluk government. This will however still change your government to an Administrative Monarchy.
- Added decision to increase missionary strength against heretics for Muslim countries, replacing the old Sheikh-ul-Islam decision.
- Muslim states can now adopt the Iqta government.

# Events
- Talented Qadi can no longer target your capital state.
- The Dalai Lama Flavor event for Tibet now changes your religion to Vajrayana.
- The event "Secrets in our Alliance" will no longer trigger unless your ally is actually spying on you.
- Added 26 flavor events for various playable countries in Japan.
- The Ottoman events regarding Crimea no longer transfers Crimeas vassals to the Ottoman Empire.
- Converting to a non-muslim religion will now make you lose the Mamluk government.
- The event "Secrets in our Alliance" will no longer trigger unless your ally is actually spying on you.

###################
# Bugfixes
###################
- Changed two instances of too much green in tooltips for culture and religion event 2.
- Tributary subjects that attach to someone will no longer be exiled due to tributary overlord lacking access.
- Imperial mapmode is now updated when adding/removing provinces to/from the HRE.
- Harmonized some hyphen usage.
- Chukoruva area now properly named Çukurova.
- You must now have no provinces outside the British region at start to be eligible for the 'Around the world in 80 years' achievement.
- Fixed bug where Culture and Religion event 11, 'Rising support among the x Population', triggered correctly but referred to the wrong advisor name in the text.
- Fixed some issues with Culture and Religion event 10, 'Intrigues in Capital' that made it unable to trigger under some circumstances.
- Reduced the chance of the religious harmony event.
- Propagate Religion Trading Policy: Fixed Religious Centers being limited to 3 per religion (e.g. max 3 Sunni centers in the world).
- Fixed that Non-Accepted was spelled Non-Accpeted in the accepted culture slot tooltip.
- Removed extra word in chapter 3, page 10 of the tutorial.
- Rewrote the tooltip for declaring bankruptcy to be clear and readable.
- Tutorial chapter introductions should now be more consistent in their coloring.
- Expected date for next favor point will now be yellow in the tooltip for favor.
- Enforced more consistent capitalization of "Go to".
- The Ambrosian republic event now triggers a few days after the death of the Milanese monarch instead of immediately upon succession. This means it will no longer check triggers miliseconds before the country might have fallen under personal union, which made the checks against such unions fail.
- Hordes no longer get information about regencies in their startup screen.
- Fixed potential CTD in CTradeCompanyRegionTrigger if Trade Company Regions were modded.
- Fixed potential CTD in CTradeGoodsDataBase::ReadPrices if trade goods were modded.
- Fixed trigger switch effect not propagating selected event option (causing e.g. Ruler always getting name from first option).
- Fixed bug that caused AI to be stuck on "Hunt for the Seven Cities" for ever.
- Fixed rulers created from rebel leaders sometimes getting skills higher than 6.
- Fixed that depletion chance of gold mines was truncated to whole percentage points in calculation.
- The Start Screen text on war declarations and piety is now clearer on the fact that heretics also count the same as heathens.
- Fixed that Culture and Religion event 16 displayed the country religion instead of the local religion in one of the sentences of the descrioption.
- Fixed a few text problems in startup screen texts.
- MP: Players can now join if Custom Nations were created after creating Random New World.
- MP: Players can now join if Custom Nations were created after loading a save
- Bugged armies pretending to be navies by swimming in the ocean will no longer CTD game when hovering mouse over them.
- It is again possible to cancel an autotransport mission by moving or retreating transporting fleet.
- If you order an autotransport fleet to move or cancel, any army loaded will stop the autotransport mission (this is more intuitive rather than needing to issue an additional cancellation order to loaded army).
- Fixed Become Tributary treaty inhibiting other treaties such as cede province.
- Game will print (at most one) name of a missing variable to error.log rather than crash when executing CSetVariableEffect.
- Added guard against crash in naval mission with unknown cause.
- Noculture provinces will no longer cause crashes when trying to recruit advisors from them.
- You can now transfer control of your subjects' occupied provinces to yourself again.
- Suez cannal now requires Sharqiya instead of Dumyat.
- Decision to form Byzantium now gives better permanent claim distribution for the new map.
- Fixed bad trigger in the "Trust Your Neighbor" corruption event.
- Fixed typo in Startup Screen for Muscovy.
- Perfume no longer spelled "Pefume" in some events.
- The Safi Trade Node no longer count some provinces twice.
- Did some Startup Screen dynasty name polishing.
- Personal union juniors can no longer demand that their ruler convert to their religion, often resulting in the ruler constantly being asked first by their juniors to change and then by their own countries to change back.
- Adjusted some remaining events related to piety.
- Forming Armenia now properly requires the Van province and not Warangal in India.
- Fixed nation designer templates with republics being considered corrupted.
- Moses Mendelson now correctly jewish when created.
- Strong trade company merchant bonus fixed.
- It's no longer offered by GUI to transfer occupation to existing controller (i.e. for no net change).
- Tweaked some missions scripts that had target province checks that didn't match the requirements to be available.
- Unite Georgia decision now correctly looks for Kartli instead of Tao twice.
- Fixed a number of improperly scripted cultures and religions for historical characters.
- Fixed issue that could make centers of reformation not appear if the reformation started in a place where centers of reformation weren't allowed to spawn.
- Fixed bug where the "Adopt Islam as State Religion" decision could be taken by subjects other than tributaries.
- Fixed issue with the mission for Coptic countries to conquer Alexandria that would make it instantly complete.
- Fixed estimation of relative strength of alliances (Fixes Demand Unlawful Territory, Threaten War and various AI strategy issues)
- Added check so that only non-subject USA will switch to American government.
- Added missing word in description for the "Poor of X" muslim school event.
- Orthodox Event 5 will now generate a proper name for its foreign advisor.
- Fixed unintended takeover of subjects when creating dependencies other than personal unions.
- Building units and regiments in a subject when you have an overlord of your own (e.g. Ming) no longer auto-deletes them without refund the next day.
- Not demanding independence in a peace deal of an independence war where you become Shogun now keeps daimyos as tooltip says.
- Added missing word in description for the "Poor of X" muslim school events.
- Fixed bug that could give the Safavid Order modifier to Ardabili provinces.
- Fixed bad tooltip for the followup event for the coming of the Oromo.
- Fixed a number of minor script errors.
- Fixed that the decision to accept Rhodians into the knights gave a local modifier to a country scope, giving no effect.
- Fixed "Enthrone Timurid Ruler" decision not giving the ruler promised by tooltip.