mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
Parameterize civ-wide sight bonus (#3809)
* Make science a possible reward for killing units * no message * Revert "Make science a possible reward for killing units" This reverts commit 296b8fab544abb99204cdea95bc028f44a4c0988.
This commit is contained in:
parent
e270b017d4
commit
8d4aa955b3
@ -195,6 +195,9 @@ class MapUnit {
|
||||
} else {
|
||||
var visibilityRange = 2
|
||||
visibilityRange += getUniques().count { it.text == "+1 Visibility Range" }
|
||||
for (unique in civInfo.getMatchingUniques("+[] Sight for all [] units"))
|
||||
if (matchesFilter(unique.params[1]))
|
||||
visibilityRange += unique.params[0].toInt()
|
||||
if (hasUnique("+2 Visibility Range")) visibilityRange += 2 // This shouldn't be stackable
|
||||
if (hasUnique("Limited Visibility")) visibilityRange -= 1
|
||||
if (civInfo.hasUnique("+1 Sight for all land military units") && type.isMilitary() && type.isLandUnit())
|
||||
|
Loading…
x
Reference in New Issue
Block a user