mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 19:35:10 -06:00
Undo star changes to make diff smaller
This commit is contained in:
parent
23b3fd76c6
commit
445281776e
2 changed files with 4 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.") { _, _ ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue