Comments (2)
The problem is that the list of countries in Civil War is not reevaluated after adding the militia for Advisors.
All of the data structures are immutable. I have calculated the 'civilWars' variable as first line of the civilWarAttrition function, but then later I add a militia to Syria due to the presence of the Advisors.
When iterating through the list of countries in CivilWar, we still have the 'old' copy of Syria from before the militia was added.
I changed the 'val' declaration to a 'def' so that we now reevaluate the civil war countries each time we need to use them to ensure we get the latest copy of the data.
Thanks for reporting the problem. I have checked in a fix. Version 3.3 is now available.
from awakening.
Is m.totalTroopsAndMilitia
a calculated prop? I'm not sure if it's updated after game.updateCountry()
is invoked, which is where the militia gets added.
from awakening.
Related Issues (9)
- No prestige bonus for disrupt in philippines HOT 2
- Crash when 6 troops exist in islamist rule country and choosing regime change option (which should not have been there) HOT 11
- Event before Ops flow problem? HOT 6
- Muslim Brotherhood doesn't permit Marker placement in same country twice HOT 1
- I18N support HOT 1
- Wrong condition used in FundingModerateDecision method HOT 1
- Disable "Exit game after victory" Bug HOT 2
- Uyghur Jihad (#55) leads to crash if no cells available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awakening.