Skip to content

Commit 3ebd57a

Browse files
committed
Make sure the opposing team is updated when jumping levels.
1 parent 912324b commit 3ebd57a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Diff for: mods/redux/modinfo.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<mod>
33
<name><![CDATA[<b style='color:orange'>Redux Modifications + Bugfix Patch</b>]]></name>
4-
<version>0.1.7.1</version>
4+
<version>0.1.7.2</version>
55
<description><![CDATA[The official mod for CrystAlien Redux Project modifications. Contains unofficial patches to fix some bugs, add some functionality, and just generally modify the game.]]></description>
66
<author>Josh (leveleditor6680) &amp; Brian (ETXAlienRobot201)</author>
77
<homepage>http://crystalien-redux.com/</homepage>

Diff for: mods/redux/redux/DOMDocument.xml

+12-3
Original file line numberDiff line numberDiff line change
@@ -2728,21 +2728,30 @@ function registerCheat(id:String, code:String, linked:Array) {
27282728
<DOMLayer name="GameHook" color="#4FFF4F" parentLayerIndex="27" locked="true" autoNamed="false" visible="false">
27292729
<frames>
27302730
<DOMFrame index="0" keyMode="9728">
2731-
<Actionscript offsets="1240,332">
2731+
<Actionscript offsets="1423,332">
27322732
<script><![CDATA[function GameHook(parent, team, level) {
27332733
27342734
this.swapTeams = function() {
27352735
if (this.team == "good") {
27362736
this.team = "evil";
2737+
this.oppo = "good";
27372738
} else {
27382739
this.team = "good";
2740+
this.oppo = "evil";
27392741
}
27402742
};
27412743
27422744
this.overrideTeam = function() {
27432745
// override team
27442746
this.team = this.parent.teams1337[this.currentLevel];
27452747
2748+
// make sure the opposing team is updated
2749+
if (this.team == "good") {
2750+
this.oppo = "evil";
2751+
} else {
2752+
this.oppo = "good";
2753+
}
2754+
27462755
if (this.parent.checkCheat("cheatOtherTeam")) {
27472756
this.swapTeams();
27482757
}
@@ -3146,6 +3155,8 @@ function CACMod_OnGameMenu():Void {
31463155
</persistentData>
31473156
<PrinterSettings/>
31483157
<publishHistory>
3158+
<PublishItem publishSize="18257" publishTime="1504232348"/>
3159+
<PublishItem publishSize="17919" publishTime="1504232322"/>
31493160
<PublishItem publishSize="18286" publishTime="1503849859"/>
31503161
<PublishItem publishSize="18166" publishTime="1503849522"/>
31513162
<PublishItem publishSize="18162" publishTime="1503849392"/>
@@ -3164,7 +3175,5 @@ function CACMod_OnGameMenu():Void {
31643175
<PublishItem publishSize="17080" publishTime="1496211687"/>
31653176
<PublishItem publishSize="17080" publishTime="1496211660"/>
31663177
<PublishItem publishSize="17799" publishTime="1495942027"/>
3167-
<PublishItem publishSize="17793" publishTime="1495941802"/>
3168-
<PublishItem publishSize="17786" publishTime="1495941690"/>
31693178
</publishHistory>
31703179
</DOMDocument>

0 commit comments

Comments
 (0)