Hearts of Iron IV

Hearts of Iron IV

School for leaders
TechPower$  [developer] 4 Jul, 2023 @ 7:51am
Future plans
So, I had decided to share my plans for future updates.

Big code refactoring is upcoming.

- I found similar code in decision .txt file. I want replace hardcoded decision cost and "days" with variables.

- Remove cheats max decisoin if noone use this

- Remove separate cost and days for players and AI. Difficulty options would not be changed. You can choose between easy, normal, realistic, cheat difficulty

- add new traits that gives you +stabilty (like popular figurehead) and supply node construction speed

Question:
Why don't you just leave it as it is?
Answer:
One of piece that make mod popular is timely update. I like tis mod and want to add new trait, maintain and update it. But with current code base it is very hard. As you can see just one file
https://github.com/HOI4-mods/school_for_leaders/blob/main/common/decisions/leaders_school_decisions.txt have 21000 lines of code. It is very easy to make mistake and annoying to add new traits.

After refactoring all similar code will be merged. I hope there will be four or five times less code.
It will be easier to maintain and update
< >
Showing 1-1 of 1 comments
Johnny Chaddiver 3 Feb, 2024 @ 2:54pm 
Is there any plans to update the mod? I've been looking at it and trying to figure out how to make it so traits on lost on a new country leader
< >
Showing 1-1 of 1 comments
Per page: 1530 50