mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-16 11:30:17 -07:00
finalized prayer changes
This commit is contained in:
parent
5efa040405
commit
eedaa95a16
1 changed files with 4 additions and 4 deletions
|
|
@ -114,7 +114,10 @@ public final class Prayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void tick() {
|
public void tick() {
|
||||||
if(!getActive().isEmpty() && prayerActiveTicks % 2 == 0){
|
if(!getActive().isEmpty()) prayerActiveTicks ++;
|
||||||
|
else prayerActiveTicks = 0;
|
||||||
|
|
||||||
|
if(prayerActiveTicks > 0 && prayerActiveTicks % 2 == 0){
|
||||||
double amountDrain = 0;
|
double amountDrain = 0;
|
||||||
for(PrayerType type : getActive()){
|
for(PrayerType type : getActive()){
|
||||||
double drain = type.getDrain();
|
double drain = type.getDrain();
|
||||||
|
|
@ -128,9 +131,6 @@ public final class Prayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
getPlayer().getSkills().decrementPrayerPoints(amountDrain);
|
getPlayer().getSkills().decrementPrayerPoints(amountDrain);
|
||||||
prayerActiveTicks++;
|
|
||||||
} else {
|
|
||||||
prayerActiveTicks = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue