Try different darkness detection method.

master
sigonasr2 5 years ago
parent ed9d23771a
commit 06c8852851
  1. 1
      .gitignore
  2. BIN
      sigIRCv2.jar
  3. 10
      src/sig/modules/RabiRace/Profile.java
  4. 2
      src/sig/modules/RabiRaceModule.java

1
.gitignore vendored

@ -23,3 +23,4 @@
/mapdata
/temp_connect
/tmp_mapdata
/tmp2

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…
Cancel
Save