develop-turtleGame #6

Merged
Pupsi merged 32 commits from develop-turtleGame into develop 2025-10-15 20:21:27 +00:00
Showing only changes of commit 6d8c5ed917 - Show all commits

View File

@@ -30,8 +30,7 @@ public class Turtle extends EntityCreature {
}
public void spawnTurtle() {
this.setInstance(this.player.getInstance());
this.teleport(this.player.getPosition());
this.setInstance(this.player.getInstance(), this.player.getPosition());
this.addPassenger(this.player);
Pupsi marked this conversation as resolved
Review

statt teleport bei setInstance übergeben

statt teleport bei setInstance übergeben
}
@@ -45,7 +44,6 @@ public class Turtle extends EntityCreature {
public void destroy() {
this.removePassenger(this.player);
this.remove();
this.kill();
if(this.boostRefillTask != null && this.boostRefillTask.isAlive()) this.boostRefillTask.cancel();
if(this.boostTask != null && this.boostTask.isAlive()) this.boostTask.cancel();
}
@@ -76,7 +74,6 @@ public class Turtle extends EntityCreature {
return;
}
this.boostChargeLevel = Math.max(0f, this.boostChargeLevel - 0.025f);
System.out.println(this.boostChargeLevel);
this.player.setExp(this.boostChargeLevel);
}, TaskSchedule.millis(30), TaskSchedule.millis(30));
}
Pupsi marked this conversation as resolved
Review

raus

raus