Rename and clean up MapleCharacter

This commit is contained in:
P0nk
2021-09-09 21:09:45 +02:00
parent 46bd0570d7
commit 7dc3a2159a
379 changed files with 3418 additions and 3373 deletions

View File

@@ -22,7 +22,7 @@
package server.partyquest;
import client.MapleCharacter;
import client.Character;
import net.server.world.MapleParty;
import server.MapleItemInformationProvider;
import server.TimerManager;
@@ -138,7 +138,7 @@ public class Pyramid extends PartyQuest {
}
public void warp(int mapid) {
for (MapleCharacter chr : getParticipants()) {
for (Character chr : getParticipants()) {
chr.changeMap(mapid, 0);
}
if (stage > -1) {
@@ -150,7 +150,7 @@ public class Pyramid extends PartyQuest {
}
public void broadcastInfo(String info, int amount) {
for (MapleCharacter chr : getParticipants()) {
for (Character chr : getParticipants()) {
chr.sendPacket(PacketCreator.getEnergy("massacre_" + info, amount));
chr.sendPacket(PacketCreator.pyramidGauge(count));
}
@@ -169,14 +169,14 @@ public class Pyramid extends PartyQuest {
if (buffcount == 0 && total >= 250) {
buffcount++;
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
for (MapleCharacter chr : getParticipants())
for (Character chr : getParticipants())
ii.getItemEffect(2022585).applyTo(chr);
} else if (buffcount == 1 && total >= 500) {
buffcount++;
skill++;
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
for (MapleCharacter chr : getParticipants()) {
for (Character chr : getParticipants()) {
chr.sendPacket(PacketCreator.getEnergy("massacre_skill", skill));
ii.getItemEffect(2022586).applyTo(chr);
}
@@ -184,7 +184,7 @@ public class Pyramid extends PartyQuest {
buffcount++;
skill++;
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
for (MapleCharacter chr : getParticipants()) {
for (Character chr : getParticipants()) {
chr.sendPacket(PacketCreator.getEnergy("massacre_skill", skill));
ii.getItemEffect(2022587).applyTo(chr);
}
@@ -195,7 +195,7 @@ public class Pyramid extends PartyQuest {
buffcount++;
skill++;
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
for (MapleCharacter chr : getParticipants()) {
for (Character chr : getParticipants()) {
chr.sendPacket(PacketCreator.getEnergy("massacre_skill", skill));
ii.getItemEffect(2022588).applyTo(chr);
}
@@ -208,7 +208,7 @@ public class Pyramid extends PartyQuest {
}
}
public void sendScore(MapleCharacter chr) {
public void sendScore(Character chr) {
if (exp == 0) {
int totalkills = (kill + cool);
if (stage == 5) {