@@ -506,16 +506,19 @@ function registerCheat(id:String, code:String, linked:Array) {
506
506
}
507
507
508
508
if (this.level == 19) {
509
+ // Fix lose condition: previously if you didn't own the breeding pit (not captured, been sold or destroyed)
510
+ // and you only owned one saboteur, and you used it to capture the satellite uplink, you would lose.
509
511
if (this.findBuilding("BH_good").friend) {
510
512
this.win();
511
- }
513
+ } else {
512
514
if (!this.findBuilding("BC_evil").friend && !this.findUnit("UB_evil")) {
513
515
this.lose();
514
516
}
515
517
if (!this.findBuilding("BH_good")) {
516
518
this.lose();
517
519
}
518
520
}
521
+ }
519
522
520
523
if (this.level == 22) {
521
524
var isPitch = this.findBuilding("BI_good");
@@ -627,8 +630,7 @@ function registerCheat(id:String, code:String, linked:Array) {
627
630
this.win();
628
631
}
629
632
}
630
- //if ((this.outcomeFutures == 1) && this.findBuilding("BA_"+this.parent.team).friend && !this.findUnit("UD_"+this.parent.team).friend && (this.cash < this.construction.shortcuts["UD_"+this.parent.team].cost))
631
- //this.outcomeFutures--;
633
+
632
634
if (this.outcomeFutures == 1) {
633
635
var cashSunk = 0;// to fix bug where you have the funds, but it is committed to a constructing item
634
636
if (this.construction.constructingBuilding) {
@@ -2882,6 +2884,12 @@ function CACMod_OnGameMenu():Void {
2882
2884
</persistentData >
2883
2885
<PrinterSettings />
2884
2886
<publishHistory >
2887
+ <PublishItem publishSize =" 16953" publishTime =" 1494099412" />
2888
+ <PublishItem publishSize =" 16953" publishTime =" 1494099359" />
2889
+ <PublishItem publishSize =" 16953" publishTime =" 1494099325" />
2890
+ <PublishItem publishSize =" 16953" publishTime =" 1494098849" />
2891
+ <PublishItem publishSize =" 16953" publishTime =" 1494098831" />
2892
+ <PublishItem publishSize =" 16946" publishTime =" 1494097001" />
2885
2893
<PublishItem publishSize =" 16953" publishTime =" 1494096865" />
2886
2894
<PublishItem publishSize =" 16981" publishTime =" 1494096791" />
2887
2895
<PublishItem publishSize =" 16012" publishTime =" 1493618426" />
@@ -2896,11 +2904,5 @@ function CACMod_OnGameMenu():Void {
2896
2904
<PublishItem publishSize =" 16046" publishTime =" 1493616836" />
2897
2905
<PublishItem publishSize =" 15538" publishTime =" 1493615330" />
2898
2906
<PublishItem publishSize =" 15503" publishTime =" 1493613485" />
2899
- <PublishItem publishSize =" 15503" publishTime =" 1493613293" />
2900
- <PublishItem publishSize =" 15506" publishTime =" 1493612078" />
2901
- <PublishItem publishSize =" 15492" publishTime =" 1493611945" />
2902
- <PublishItem publishSize =" 15159" publishTime =" 1487620879" />
2903
- <PublishItem publishSize =" 15797" publishTime =" 1478413309" />
2904
- <PublishItem publishSize =" 15797" publishTime =" 1478412410" />
2905
2907
</publishHistory >
2906
2908
</DOMDocument >
0 commit comments