no message
This commit is contained in:
parent
aca8a396d8
commit
bdc4925951
|
|
@ -19,7 +19,9 @@ public class SpawnPointAreaBoss extends Spawns {
|
||||||
private final AtomicBoolean spawned;
|
private final AtomicBoolean spawned;
|
||||||
private final String msg;
|
private final String msg;
|
||||||
|
|
||||||
public SpawnPointAreaBoss(final MapleMonster monster, final Point pos1, final Point pos2, final Point pos3, final int mobTime, final String msg) {
|
private String bighp;
|
||||||
|
|
||||||
|
public SpawnPointAreaBoss(final MapleMonster monster, final Point pos1, final Point pos2, final Point pos3, final int mobTime, final String msg, final String bighp) {
|
||||||
this.spawned = new AtomicBoolean(false);
|
this.spawned = new AtomicBoolean(false);
|
||||||
this.monster = monster;
|
this.monster = monster;
|
||||||
this.pos1 = pos1;
|
this.pos1 = pos1;
|
||||||
|
|
@ -28,6 +30,7 @@ public class SpawnPointAreaBoss extends Spawns {
|
||||||
this.mobTime = ((mobTime < 0) ? -1 : (mobTime * 1000));
|
this.mobTime = ((mobTime < 0) ? -1 : (mobTime * 1000));
|
||||||
this.msg = msg;
|
this.msg = msg;
|
||||||
this.nextPossibleSpawn = System.currentTimeMillis();
|
this.nextPossibleSpawn = System.currentTimeMillis();
|
||||||
|
this.bighp = bighp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -71,7 +74,11 @@ public class SpawnPointAreaBoss extends Spawns {
|
||||||
SpawnPointAreaBoss.this.spawned.set(false);
|
SpawnPointAreaBoss.this.spawned.set(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
map.spawnMonster(this.monster, -2);
|
map.spawnMonster(this.monster, -2);
|
||||||
|
if (!this.bighp.equals("0")){
|
||||||
|
this.monster.setHp(this.bighp);
|
||||||
|
}
|
||||||
if (this.msg != null&&a>1) {
|
if (this.msg != null&&a>1) {
|
||||||
String formatTime = DateUtil.formatTime(DateUtil.date());
|
String formatTime = DateUtil.formatTime(DateUtil.date());
|
||||||
String replace ="【野外boss】 : "+ this.msg.replace("{time}", formatTime);
|
String replace ="【野外boss】 : "+ this.msg.replace("{time}", formatTime);
|
||||||
|
|
|
||||||
|
|
@ -3472,7 +3472,7 @@ public final class MapleMap {
|
||||||
return sp;
|
return sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void addAreaMonsterSpawn(final MapleMonster monster, Point pos1, Point pos2, Point pos3, final int mobTime, final String msg) {
|
public final void addAreaMonsterSpawn(final MapleMonster monster, Point pos1, Point pos2, Point pos3, final int mobTime, final String msg,String bighp) {
|
||||||
pos1 = this.calcPointBelow(pos1);
|
pos1 = this.calcPointBelow(pos1);
|
||||||
pos2 = this.calcPointBelow(pos2);
|
pos2 = this.calcPointBelow(pos2);
|
||||||
pos3 = this.calcPointBelow(pos3);
|
pos3 = this.calcPointBelow(pos3);
|
||||||
|
|
@ -3514,7 +3514,7 @@ public final class MapleMap {
|
||||||
pos2 = new Point(pos3);
|
pos2 = new Point(pos3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.monsterSpawn.add(new SpawnPointAreaBoss(monster, pos1, pos2, pos3, mobTime, msg));
|
this.monsterSpawn.add(new SpawnPointAreaBoss(monster, pos1, pos2, pos3, mobTime, msg,bighp));
|
||||||
}
|
}
|
||||||
|
|
||||||
public final List<MapleCharacter> getCharacters() {
|
public final List<MapleCharacter> getCharacters() {
|
||||||
|
|
|
||||||
|
|
@ -509,9 +509,10 @@ public class MapleMapFactory {
|
||||||
if (monsterid > 0) {
|
if (monsterid > 0) {
|
||||||
MapleMonster monster = MapleLifeFactory.getMonster(monsterid);
|
MapleMonster monster = MapleLifeFactory.getMonster(monsterid);
|
||||||
if (!hp.equals("0")) {
|
if (!hp.equals("0")) {
|
||||||
monster.setHp(hp+"00000000");
|
map.addAreaMonsterSpawn(monster, pos1, pos2, pos3, mobtime, msg, hp+"00000000");
|
||||||
|
}else {
|
||||||
|
map.addAreaMonsterSpawn(monster, pos1, pos2, pos3, mobtime, msg,"0");
|
||||||
}
|
}
|
||||||
map.addAreaMonsterSpawn(monster, pos1, pos2, pos3, mobtime, msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue