Page MenuHomeWildfire Games

AI stats modifications from techs and auras broken for templates
ClosedPublic

Authored by mimo on Aug 20 2017, 4:43 PM.

Details

Summary

as the title say, the code has always been broken but was not noticed until D276

Test Plan

check that the values are now correctly modified

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mimo updated this revision to Diff 3210.Aug 20 2017, 4:47 PM
mimo edited the summary of this revision. (Show Details)

add a missing space

Vulcan added a subscriber: Vulcan.Aug 20 2017, 5:53 PM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jw:8080/job/phabricator/1888/ for more details.

Executing section Default...
Executing section Source...
Executing section JS...

binaries/data/mods/public/simulation/ai/petra/mapModule.js
|  48| »   »   let·isConnected·=·(territoryMap.data[k]·&·m.TERRITORY_BLINKING_MASK)·==·0;
|    | [NORMAL] JSHintBear:
|    | Use '===' to compare with '0'.

binaries/data/mods/public/simulation/ai/common-api/shared.js
| 473| »   if·(·aMatch·!=·null·)
|    | [NORMAL] JSHintBear:
|    | Use '!==' to compare with 'null'.

binaries/data/mods/public/simulation/ai/common-api/gamestate.js
| 258| »   »   switch·(entity.check)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.

binaries/data/mods/public/simulation/ai/common-api/gamestate.js
| 275| »   »   »   switch·(type)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.
Executing section XML GUI...
Executing section Python...
Executing section Perl...

http://jw:8080/job/phabricator_lint/421/ for more details.

the values are correctly modified.
tested with the D276 + the code bb provided in the comments of such diff.

Executing section Default...
Executing section Source...
Executing section JS...

binaries/data/mods/public/simulation/ai/petra/mapModule.js
|  48| »   »   let·isConnected·=·(territoryMap.data[k]·&·m.TERRITORY_BLINKING_MASK)·==·0;
|    | [NORMAL] JSHintBear:
|    | Use '===' to compare with '0'.

binaries/data/mods/public/simulation/ai/common-api/shared.js
| 473| »   if·(·aMatch·!=·null·)
|    | [NORMAL] JSHintBear:
|    | Use '!==' to compare with 'null'.

binaries/data/mods/public/simulation/ai/common-api/gamestate.js
| 258| »   »   switch·(entity.check)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.

binaries/data/mods/public/simulation/ai/common-api/gamestate.js
| 275| »   »   »   switch·(type)
|    | [NORMAL] ESLintBear (default-case):
|    | Expected a default case.
Executing section XML GUI...
Executing section Python...
Executing section Perl...

http://jw:8080/job/phabricator_lint/422/ for more details.

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...

http://jw:8080/job/phabricator/1890/ for more details.

This revision was automatically updated to reflect the committed changes.