Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mongoURI=mongodb://admin:password@127.0.0.1:27017
movementDebug=false
mongoURI=mongodb+srv://ezekokonkwo_db_user:QIqSPKEQJq9y80A6@atbpserver.e42gp5i.mongodb.net/?appName=ATBPServer
invincibleDebug=false
abilityDebug=false
speedDebug=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"point": 1,
"stat": "armorPenetration",
"type": 0,
"value": 5
"value": 10
},
{
"point": 1,
Expand All @@ -39,7 +39,7 @@
"point": 2,
"stat": "armorPenetration",
"type": 0,
"value": 10
"value": 15
},
{
"point": 2,
Expand All @@ -51,13 +51,13 @@
"point": 3,
"stat": "attackDamage",
"type": 0,
"value": 30
"value": 45
},
{
"point": 3,
"stat": "armorPenetration",
"type": 0,
"value": 15
"value": 20
},
{
"point": 3,
Expand All @@ -69,13 +69,13 @@
"point": 4,
"stat": "attackDamage",
"type": 0,
"value": 50
"value": 70
},
{
"point": 4,
"stat": "armorPenetration",
"type": 0,
"value": 25
"value": 35
},
{
"point": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
"point": 1,
"stat": "health",
"type": 0,
"value": 100
"value": 75
},
{
"point": 2,
"stat": "health",
"type": 0,
"value": 225
"value": 150
},
{
"point": 3,
"stat": "health",
"type": 0,
"value": 350
"value": 275
},
{
"point": 4,
"stat": "health",
"type": 0,
"value": 500
"value": 400
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ public static ISFSObject resetSpellPoints(User user, ATBPExtension parentExt) {
spellPoints--;
ua.setGlassesPoint(false);
}
if (ChampionData.getJunkLevel(ua, "junk_4_grob_gob_glob_grod") <= 0) {
ua.forceRemoveSpellShield();
}
spellPoints += newPoints;
ua.setStat("availableSpellPoints", spellPoints);
toUpdate.putInt("availableSpellPoints", spellPoints);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package xyz.openatbp.extension;

public class Console {
private static final boolean DEBUG = false;
private static final boolean DEBUG = true;
private static final boolean WARNING = true;

public static void log(Object line) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ private boolean shouldMoveToAltar() {
protected double handlePassive(Actor target, double damage) {
if (furyTarget != null) {
if (furyTarget.getId().equalsIgnoreCase(target.getId())) {
damage *= (1 + (0.2 * furyStacks));
damage *= (1 + (0.15 * furyStacks));
if (furyStacks < 3) {
if (furyStacks > 0)
ExtensionCommands.removeFx(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,24 @@ private void triggerSpellShield() {
this.iFrame = System.currentTimeMillis() + 500;
}

public void forceRemoveSpellShield() {
if (!this.spellShieldActive) return;

this.spellShieldActive = false;
this.spellShieldCooldown = -1;

ExtensionCommands.removeFx(
this.parentExt,
this.room,
this.id + "_spellShield");

ExtensionCommands.removeStatusIcon(
this.parentExt,
this.getUser(),
"junk_4_grob_gob_glob_grod_name");

}

public double getAttackCooldown() {
return this.attackCooldown;
}
Expand Down Expand Up @@ -1111,6 +1129,7 @@ public void update(int msRan) {
if (!this.spellShieldActive
&& ChampionData.getJunkLevel(this, "junk_4_grob_gob_glob_grod") > 0
&& System.currentTimeMillis() > this.spellShieldCooldown) {

this.spellShieldActive = true;
ExtensionCommands.createActorFX(
this.parentExt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public void useAbility(
protected double handlePassive(Actor target, double damage) {
if (furyTarget != null) {
if (furyTarget.getId().equalsIgnoreCase(target.getId())) {
damage *= (1 + (0.2 * furyStacks));
damage *= (1 + (0.15 * furyStacks));
if (furyStacks < 3) {
if (furyStacks > 0)
ExtensionCommands.removeFx(
Expand Down Expand Up @@ -603,7 +603,7 @@ private class PassiveAttack implements Runnable {
public void run() {
double damage = getPlayerStat("attackDamage");
if (this.crit) {
damage *= 1.25;
damage *= 1.40;
damage = handleGrassSwordProc(damage);
}
if (target.getActorType() != ActorType.TOWER && target.getActorType() != ActorType.BASE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ private class PassiveAttack implements Runnable {
public void run() {
double damage = getPlayerStat("attackDamage");
if (crit) {
damage *= 1.25;
damage *= 1.40;
damage = handleGrassSwordProc(damage);
}
new Champion.DelayedAttack(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ private class MagicManPassive implements Runnable {
public void run() {
double damage = getPlayerStat("attackDamage");
if (crit) {
damage *= 1.25;
damage *= 1.40;
damage = handleGrassSwordProc(damage);
}
new Champion.DelayedAttack(
Expand Down
1 change: 1 addition & 0 deletions ATBPServer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ static/*
config.xml
crossdomain.xml
*.bat
config.js
2 changes: 1 addition & 1 deletion ATBPServer/config.js.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ config.lobbyserver = {};
config.sockpol = {};

config.httpserver.port = 8000;
config.httpserver.mongouri = "mongodb://admin:password@127.0.0.1:27017";
config.httpserver.mongouri = "mongodb+srv://USER:PASSWORD@cluster.mongodb.net/?appName=ATBPServer";
config.httpserver.url = 'http://127.0.0.1:8000';

config.sockpol.enable = true;
Expand Down
Loading