cwtools / cwtools-vscode

A VS Code extension providing language server support for paradox script files using cwtools
Other
88 stars 12 forks source link

[HOI4] False Error when using 'num_faction_members' "Expecting an integer, got from.num_faction_members" #107

Open Wehrmachtserdbeere opened 2 weeks ago

Wehrmachtserdbeere commented 2 weeks ago

In an Event's ai_chance, when trying to compare faction members, it gives an incorrect error.

            modifier = {
                add = -10
                num_faction_members > FROM.num_faction_members
            }

I checked and it does not cause an in-game error.

Pelmen323 commented 1 week ago

I've updated config to resolve the issue. The fix will be available in https://github.com/cwtools/cwtools-hoi4-config/pull/189

Please use https://github.com/cwtools/cwtools-hoi4-config/issues to report hoi4-related issues