Skip to content

Commit d48a569

Browse files
Brian151leveleditor
authored andcommitted
Fix lose condition for alien level 9.
1 parent 373c16d commit d48a569

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

mods/redux/redux/DOMDocument.xml

+11-9
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,19 @@ function registerCheat(id:String, code:String, linked:Array) {
506506
}
507507
508508
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.
509511
if (this.findBuilding("BH_good").friend) {
510512
this.win();
511-
}
513+
} else {
512514
if (!this.findBuilding("BC_evil").friend && !this.findUnit("UB_evil")) {
513515
this.lose();
514516
}
515517
if (!this.findBuilding("BH_good")) {
516518
this.lose();
517519
}
518520
}
521+
}
519522
520523
if (this.level == 22) {
521524
var isPitch = this.findBuilding("BI_good");
@@ -627,8 +630,7 @@ function registerCheat(id:String, code:String, linked:Array) {
627630
this.win();
628631
}
629632
}
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+
632634
if (this.outcomeFutures == 1) {
633635
var cashSunk = 0;// to fix bug where you have the funds, but it is committed to a constructing item
634636
if (this.construction.constructingBuilding) {
@@ -2882,6 +2884,12 @@ function CACMod_OnGameMenu():Void {
28822884
</persistentData>
28832885
<PrinterSettings/>
28842886
<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"/>
28852893
<PublishItem publishSize="16953" publishTime="1494096865"/>
28862894
<PublishItem publishSize="16981" publishTime="1494096791"/>
28872895
<PublishItem publishSize="16012" publishTime="1493618426"/>
@@ -2896,11 +2904,5 @@ function CACMod_OnGameMenu():Void {
28962904
<PublishItem publishSize="16046" publishTime="1493616836"/>
28972905
<PublishItem publishSize="15538" publishTime="1493615330"/>
28982906
<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"/>
29052907
</publishHistory>
29062908
</DOMDocument>

0 commit comments

Comments
 (0)