Undo star changes to make diff smaller

This commit is contained in:
Player Name 2026-06-19 21:47:31 +02:00
parent 23b3fd76c6
commit 445281776e
2 changed files with 4 additions and 9 deletions

View file

@ -63,16 +63,11 @@ class ShootingStar(var level: ShootingStarType = ShootingStarType.values().rando
"Lava Maze mining site" to Location.create(3062, 3885, 0), // Wilderness rune mine
"Mage Arena bank" to Location.create(3093, 3962, 0) // Mage Arena bank
)
val starSprite = NPC(8091)
var location = "Canifis Bank"
val loc = crash_locations[location]
val starSprite = let {
val npc = NPC(8091)
npc.location = loc
npc
}
var maxDust = level.totalStardust
var dustLeft = level.totalStardust
var starObject = Scenery(level.objectId, loc)
var starObject = Scenery(level.objectId, crash_locations.get(location))
var isDiscovered = false
var ticks = 0
var isSpawned = false

View file

@ -135,8 +135,8 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
}
override fun defineCommands() {
define("tostar", Privilege.ADMIN, description = "Teleports you inside the currently active star.") { player, _ ->
teleport(player, star.starObject.location.transform(0, 0, 0))
define("tostar", Privilege.ADMIN, description = "Teleports you adjacent to the currently active star.") { player, _ ->
teleport(player, star.starObject.location.transform(1,1,0))
}
define("submit", Privilege.ADMIN, description = "Rebuilds and fires the shooting star event immediately.") { _, _ ->