From 362941fe586a9e3d48cc1df7aa3a53b7fb43b123 Mon Sep 17 00:00:00 2001 From: tony_all Date: Tue, 6 Jun 2023 22:50:16 +0800 Subject: [PATCH] fix location format code --- src/main/kotlin/cc/maxmc/blastingcrisis/BlastingCrisis.kt | 8 ++++---- src/main/kotlin/cc/maxmc/blastingcrisis/map/GameMap.kt | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/cc/maxmc/blastingcrisis/BlastingCrisis.kt b/src/main/kotlin/cc/maxmc/blastingcrisis/BlastingCrisis.kt index 4a65247..f64f710 100644 --- a/src/main/kotlin/cc/maxmc/blastingcrisis/BlastingCrisis.kt +++ b/src/main/kotlin/cc/maxmc/blastingcrisis/BlastingCrisis.kt @@ -40,9 +40,9 @@ object BlastingCrisis : Plugin() { location(0, 72, -44), location(0, 72, -44), 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, -32), location(13, 71, -1)), + Area(location(-13, 78, -32), location(13, 72, -1)), Area(location(7, 72, -45), location(9, 74, -48)), listOf( 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(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, 32), location(-13, 71, 1)), + Area(location(13, 78, 32), location(-13, 72, 1)), Area(location(-7, 72, 45), location(-9, 74, 48)), listOf( Area(location(-15, 72, 1), location(-19, 78, 48)), Area(location(-19, 78, 48), location(15, 72, 1)) diff --git a/src/main/kotlin/cc/maxmc/blastingcrisis/map/GameMap.kt b/src/main/kotlin/cc/maxmc/blastingcrisis/map/GameMap.kt index 327e538..0c68dd6 100644 --- a/src/main/kotlin/cc/maxmc/blastingcrisis/map/GameMap.kt +++ b/src/main/kotlin/cc/maxmc/blastingcrisis/map/GameMap.kt @@ -2,7 +2,13 @@ package cc.maxmc.blastingcrisis.map import cc.maxmc.blastingcrisis.misc.Area -class GameMap(val name: String, val area: Area, val wall: Area, val teams: List, val maxPlayersPerTeam: Int) { +class GameMap( + val name: String, + val area: Area, + val wall: Area, + val teams: List, + val maxPlayersPerTeam: Int +) { val maxPlayer: Int get() = maxPlayersPerTeam * teams.size } \ No newline at end of file