v0.7.1c: fixed various incorrect charging interactions with mystical energy
This commit is contained in:
parent
7dffe6bf23
commit
34d150d682
|
@ -91,6 +91,11 @@ public class AlchemistsToolkit extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 0.5f;
|
partialCharge += 0.5f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ public class CapeOfThorns extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (cooldown == 0) {
|
if (cooldown == 0) {
|
||||||
charge += 4;
|
charge += 4;
|
||||||
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
if (charge >= chargeCap){
|
if (charge >= chargeCap){
|
||||||
target.buff(Thorns.class).proc(0, null, null);
|
target.buff(Thorns.class).proc(0, null, null);
|
||||||
|
|
|
@ -139,6 +139,11 @@ public class CloakOfShadows extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap) {
|
if (charge < chargeCap) {
|
||||||
partialCharge += 0.25f;
|
partialCharge += 0.25f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -197,6 +197,15 @@ public class DriedRose extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (ghost == null && charge < chargeCap){
|
if (ghost == null && charge < chargeCap){
|
||||||
partialCharge += 0.25f;
|
partialCharge += 0.25f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
if (charge == chargeCap){
|
||||||
|
partialCharge = 0f;
|
||||||
|
GLog.p( Messages.get(DriedRose.class, "charged") );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -236,6 +236,11 @@ public class EtherealChains extends Artifact {
|
||||||
int chargeTarget = 5+(level()*2);
|
int chargeTarget = 5+(level()*2);
|
||||||
if (charge < chargeTarget*2){
|
if (charge < chargeTarget*2){
|
||||||
partialCharge += 0.5f;
|
partialCharge += 0.5f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,15 @@ public class HornOfPlenty extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 0.25f;
|
partialCharge += 0.25f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
if (charge == chargeCap){
|
||||||
|
GLog.p( Messages.get(HornOfPlenty.class, "full") );
|
||||||
|
partialCharge = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -278,6 +278,11 @@ public class LloydsBeacon extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 0.25f;
|
partialCharge += 0.25f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ public class MasterThievesArmband extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
charge += 10;
|
charge += 10;
|
||||||
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,12 @@ public class TalismanOfForesight extends Artifact {
|
||||||
@Override
|
@Override
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 4f;
|
charge += 4f;
|
||||||
|
if (charge >= chargeCap) {
|
||||||
|
charge = chargeCap;
|
||||||
|
partialCharge = 0;
|
||||||
|
GLog.p( Messages.get(this, "full_charge") );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,11 @@ public class TimekeepersHourglass extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 0.25f;
|
partialCharge += 0.25f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -175,6 +175,11 @@ public class UnstableSpellbook extends Artifact {
|
||||||
public void charge(Hero target) {
|
public void charge(Hero target) {
|
||||||
if (charge < chargeCap){
|
if (charge < chargeCap){
|
||||||
partialCharge += 0.1f;
|
partialCharge += 0.1f;
|
||||||
|
if (partialCharge >= 1){
|
||||||
|
partialCharge--;
|
||||||
|
charge++;
|
||||||
|
updateQuickslot();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user