-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
481 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
33
src/main/java/com/deeme/modules/genericgate/ExtraNpcFlagsEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.