mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-04 16:11:46 +07:00
* no new camps in 4 tiles for 15 turns after cleared * can't spawn land units on water or vice versa, unit choice * UniqueType.MustSetUp * sometroglodyte's fixes
This commit is contained in:
parent
4c053ddc99
commit
03cebbdd42
@ -167,7 +167,8 @@ class BarbarianManager {
|
||||
}
|
||||
}
|
||||
|
||||
class Encampment (val position: Vector2) {
|
||||
class Encampment() {
|
||||
val position = Vector2()
|
||||
var countdown = 0
|
||||
var spawnedUnits = -1
|
||||
var destroyed = false // destroyed encampments haunt the vicinity for 15 turns preventing new spawns
|
||||
@ -175,6 +176,11 @@ class Encampment (val position: Vector2) {
|
||||
@Transient
|
||||
lateinit var gameInfo: GameInfo
|
||||
|
||||
constructor(position: Vector2): this() {
|
||||
this.position.x = position.x
|
||||
this.position.y = position.y
|
||||
}
|
||||
|
||||
fun clone(): Encampment {
|
||||
val toReturn = Encampment(position)
|
||||
toReturn.countdown = countdown
|
||||
|
Loading…
Reference in New Issue
Block a user