Try different darkness detection method.
This commit is contained in:
parent
ed9d23771a
commit
06c8852851
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@
|
||||
/mapdata
|
||||
/temp_connect
|
||||
/tmp_mapdata
|
||||
/tmp2
|
||||
|
||||
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -311,7 +311,7 @@ public class Profile {
|
||||
RabiRaceModule.syncEvents=true;
|
||||
RabiRaceModule.hasDied=false;
|
||||
}
|
||||
|
||||
/*
|
||||
if (parent.readIntFromMemory(MemoryOffset.DARKNESS)>0 && RabiRaceModule.syncEvents) {
|
||||
RabiRaceModule.syncEvents=false;
|
||||
}
|
||||
@ -323,6 +323,14 @@ public class Profile {
|
||||
parent.readIntFromMemory(MemoryOffset.DARKNESS)>0) {
|
||||
RabiRaceModule.syncEvents=true;
|
||||
RabiRaceModule.darknessHasReachedzero=false;
|
||||
}*/
|
||||
|
||||
if (parent.readIntFromMemory(MemoryOffset.DARKNESS)>0 && RabiRaceModule.darknessHasReachedzero) {
|
||||
RabiRaceModule.syncEvents=!RabiRaceModule.syncEvents;
|
||||
RabiRaceModule.darknessHasReachedzero=false;
|
||||
}
|
||||
if (parent.readIntFromMemory(MemoryOffset.DARKNESS)==0) {
|
||||
RabiRaceModule.darknessHasReachedzero=true;
|
||||
}
|
||||
for (int i=0;i<EVENT_COUNT;i++) {
|
||||
if (NonRestrictedValue(i)) {
|
||||
|
||||
@ -93,7 +93,7 @@ public class RabiRaceModule extends Module{
|
||||
public HashMap<Integer,Integer> newmapdata = new HashMap<Integer,Integer>();
|
||||
public static ScheduledExecutorService scheduler,scheduler2;
|
||||
public static boolean syncEvents = true;
|
||||
public static boolean darknessHasReachedzero = false; //darkness needs to go down to 0, then go back up.
|
||||
public static boolean darknessHasReachedzero = true; //darkness needs to go down to 0, then go back up.
|
||||
public static boolean hasDied = false;
|
||||
int frames=0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user