Skip to content

Commit

Permalink
spawn multiple items of same name in location
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Aug 7, 2023
1 parent 0653ed4 commit 0c79f0e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commonMain/kotlin/traveling/location/location/Location.kt
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ data class Location(
}

private fun addThingTo(thing: Thing, listToAddTo: NameSearchableList<Thing>, proxies: List<String>) {
if (!getThings().contains(thing)) {
listToAddTo.add(thing)
}
listToAddTo.add(thing)
if (proxies.isNotEmpty()) {
listToAddTo.addProxy(thing, proxies)
}
Expand Down Expand Up @@ -336,7 +334,7 @@ data class Location(
}

fun updateWeather(newWeather: Weather) {
if (GameState.getDebugBoolean(DebugType.VERBOSE_WEATHER)){
if (GameState.getDebugBoolean(DebugType.VERBOSE_WEATHER)) {
println("Changing Weather from ${weather.name} to ${newWeather.name}.")
}
lastWeatherChange = GameState.timeManager.getTicks()
Expand Down

0 comments on commit 0c79f0e

Please sign in to comment.