View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0020496 | AI War 2 | GUI | Oct 13, 2018 12:30 pm | Oct 13, 2018 3:49 pm | |
Reporter | Bobtree | Assigned To | Dominus Arbitrationis | ||
Status | resolved | Resolution | fixed | ||
Product Version | 0.783 Go Ahead And Shoot Me, Eyebot! | ||||
Fixed in Version | 0.784 Dash And Destruct | ||||
Summary | 0020496: Coprocessor tooltip count | ||||
Description | The Coprocessor unit tooltip doesn't count the # of remaining Coprocessors correctly. With 4 on my galaxy map, they all say "if all remaining 1 of these die". The AIP does go down when you snipe the last one, as expected. | ||||
Tags | No tags attached. | ||||
|
The code in question is buffer.Add( "AI Progress (AIP) will <color=#ffdf72>rise by " ).Add( relatedEntityData.AIPOnDeathWhenNoneLeft ).Add( "</color> if all remaining <color=#ffdf72>" ) .Add( BaseScenario.GetCountOfMatchingAIPOnDeathWhenNoneLeft( relatedEntityData ) ).Add( "</color> of these die. " ); public static int GetCountOfMatchingAIPOnDeathWhenNoneLeft( GameEntityTypeData entityTypeData ) { int count = 0; World_AIW2.Instance.DoForEntities( EntityRollupType.AIPOnDeathWhenNoneLeft, delegate ( GameEntity_Squad otherEntity ) { if ( otherEntity.TypeData != entityTypeData ) return DelReturn.Continue; if ( otherEntity.HasAlreadyDoneOnFirstDeath ) return DelReturn.Continue; count++; return DelReturn.Break; } ); return count; } I'm not sure why it doesn't work. |
|
Fixed. The loop broke rather than continued. |
Date Modified | Username | Field | Change |
---|---|---|---|
Oct 13, 2018 12:30 pm | Bobtree | New Issue | |
Oct 13, 2018 2:44 pm | BadgerBadger | Note Added: 0049932 | |
Oct 13, 2018 3:49 pm | Dominus Arbitrationis | Assigned To | => Dominus Arbitrationis |
Oct 13, 2018 3:49 pm | Dominus Arbitrationis | Status | new => resolved |
Oct 13, 2018 3:49 pm | Dominus Arbitrationis | Resolution | open => fixed |
Oct 13, 2018 3:49 pm | Dominus Arbitrationis | Fixed in Version | => 0.784 Dash And Destruct |
Oct 13, 2018 3:49 pm | Dominus Arbitrationis | Note Added: 0049935 |