Skip to content

Commit

Permalink
feat: Added generic gate module
Browse files Browse the repository at this point in the history
  • Loading branch information
dm94 committed Jan 1, 2025
1 parent 1ae81d4 commit 0ccb509
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 11 deletions.
40 changes: 40 additions & 0 deletions src/main/java/com/deeme/modules/genericgate/Config.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.deeme.modules.genericgate;

import eu.darkbot.api.config.annotations.Configuration;
import eu.darkbot.api.config.annotations.Option;
import eu.darkbot.api.config.annotations.Number;

@Configuration("generic_gate")
public class Config {
@Option("travel_map")
public TravelMap travelMap = new TravelMap();

@Option("generic_gate.min_radius")
@Number(min = 300, max = 1000, step = 10)
public int radioMin = 560;

@Option("generic_gate.away_distance")
@Number(min = 600, max = 6000, step = 10)
public int awayDistance = 600;

@Option("generic_gate.repair")
public boolean repairLogic = false;

@Option("generic_gate.repair_config")
public boolean useRepairConfigWhenNeedRepair = false;

@Option("generic_gate.attack_closest")
public boolean alwaysTheClosestNPC = false;

@Option("generic_gate.travel_to_next")
public boolean travelToNextMap = false;

@Option("generic_gate.enable_collector")
public boolean collectorActive = false;

@Option("generic_gate.roaming")
public boolean roaming = false;

@Option("generic_gate.attack_all_npcs")
public boolean attackAllNpcs = false;
}
33 changes: 33 additions & 0 deletions src/main/java/com/deeme/modules/genericgate/ExtraNpcFlagsEnum.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.deeme.modules.genericgate;

import com.github.manolo8.darkbot.config.NpcExtraFlag;

public enum ExtraNpcFlagsEnum implements NpcExtraFlag {
MOVE_AWAY("AWAY", "Move Away", "Generic Gate - Will try to dodge this NPC");

private final String shortName;
private final String name;
private final String description;

ExtraNpcFlagsEnum(String shortName, String name, String description) {
this.shortName = shortName;
this.name = name;
this.description = description;
}

@Override
public String getDescription() {
return description;
}

@Override
public String getName() {
return name;
}

@Override
public String getShortName() {
return shortName;
}

}
Loading

0 comments on commit 0ccb509

Please sign in to comment.