#4377 closed enhancement (fixed)
[PATCH] AI Influence group type should become a descriptive string
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 22 |
Component: | AI | Keywords: | patch |
Cc: | Patch: |
Description
#3934 exposed the AI configuration (aiAnalysisInfluenceGroup
for resources to moddable JSON files.
As discussed in https://wildfiregames.com/forum/index.php?/topic/21404-adding-new-resources/ these three values (0, 1, 2) should become (ignore, abundant, spare) to make it obvious that other values are not supported and making the code easier to read and grep.
Attachments (1)
Change History (7)
by , 7 years ago
Attachment: | rename_ai_influence_group_v1.patch added |
---|
comment:1 by , 7 years ago
comment:4 by , 7 years ago
It's more connected to the fact that the resource is spread, and not necessarily scarce as each amount can be very big. It is only that when a resource is spread, its footprint in the resource map is bigger, to ensure that we won't miss a potentially good position if there are already a lot of obstructions around.
comment:6 by , 7 years ago
Keywords: | review removed |
---|---|
Milestone: | Work In Progress → Alpha 22 |
Thanks for the review!
Looks good to me, thanks for writing it. There is only one old typo in common-api/shared.js where "spare" should have been "sparse". So the corresponding string should be changed to "sparse".