fix location

format code
This commit is contained in:
tony_all 2023-06-06 22:50:16 +08:00
parent accec4fe8f
commit 362941fe58
2 changed files with 11 additions and 5 deletions

View File

@ -40,9 +40,9 @@ object BlastingCrisis : Plugin() {
location(0, 72, -44), location(0, 72, -44),
location(0, 72, -44), location(0, 72, -44),
location(-8, 73, -47), location(-8, 73, -47),
Area(location(14, 72, -48), location(-13, 78, -34)), Area(location(14, 72, -48), location(-14, 78, -34)),
Area(location(-13, 78, -33), location(13, 72, -33)), Area(location(-13, 78, -33), location(13, 72, -33)),
Area(location(-13, 78, -32), location(13, 71, -1)), Area(location(-13, 78, -32), location(13, 72, -1)),
Area(location(7, 72, -45), location(9, 74, -48)), Area(location(7, 72, -45), location(9, 74, -48)),
listOf( listOf(
Area(location(15, 72, -1), location(19, 78, -48)), Area(location(19, 78, -48), location(-15, 72, -1)) Area(location(15, 72, -1), location(19, 78, -48)), Area(location(19, 78, -48), location(-15, 72, -1))
@ -54,9 +54,9 @@ object BlastingCrisis : Plugin() {
location(0, 72, 44), location(0, 72, 44),
location(0, 72, 44), location(0, 72, 44),
location(8, 73, 47), location(8, 73, 47),
Area(location(-14, 72, 48), location(13, 78, 34)), Area(location(-14, 72, 48), location(14, 78, 34)),
Area(location(13, 78, 33), location(-13, 72, 33)), Area(location(13, 78, 33), location(-13, 72, 33)),
Area(location(13, 78, 32), location(-13, 71, 1)), Area(location(13, 78, 32), location(-13, 72, 1)),
Area(location(-7, 72, 45), location(-9, 74, 48)), Area(location(-7, 72, 45), location(-9, 74, 48)),
listOf( listOf(
Area(location(-15, 72, 1), location(-19, 78, 48)), Area(location(-19, 78, 48), location(15, 72, 1)) Area(location(-15, 72, 1), location(-19, 78, 48)), Area(location(-19, 78, 48), location(15, 72, 1))

View File

@ -2,7 +2,13 @@ package cc.maxmc.blastingcrisis.map
import cc.maxmc.blastingcrisis.misc.Area import cc.maxmc.blastingcrisis.misc.Area
class GameMap(val name: String, val area: Area, val wall: Area, val teams: List<MapTeam>, val maxPlayersPerTeam: Int) { class GameMap(
val name: String,
val area: Area,
val wall: Area,
val teams: List<MapTeam>,
val maxPlayersPerTeam: Int
) {
val maxPlayer: Int val maxPlayer: Int
get() = maxPlayersPerTeam * teams.size get() = maxPlayersPerTeam * teams.size
} }