Added The Great Lighthouse

This commit is contained in:
Yair Morgenstern
2018-10-19 15:11:14 +03:00
parent b4d56e1474
commit 9c36ae0c6b
10 changed files with 99 additions and 73 deletions

View File

@ -119,6 +119,7 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
### Classical Era ### Classical Era
* [Lighthouse](https://thenounproject.com/search/?q=lighthouse&i=866966) By Dolly Holmes * [Lighthouse](https://thenounproject.com/search/?q=lighthouse&i=866966) By Dolly Holmes
* [Lighthouse](https://thenounproject.com/term/lighthouse/583069/) By Hea Poh Lin for The Great Lighthouse
* [Temple](https://thenounproject.com/term/temple/1808407/) By 1516 * [Temple](https://thenounproject.com/term/temple/1808407/) By 1516
* [Anubis](https://thenounproject.com/term/anubis/1080090/) By Carpe Diem for Burial Tomb * [Anubis](https://thenounproject.com/term/anubis/1080090/) By Carpe Diem for Burial Tomb
* [Parthenon](https://thenounproject.com/term/parthenon/493272/) By Christopher T. Howlett for The Oracle * [Parthenon](https://thenounproject.com/term/parthenon/493272/) By Christopher T. Howlett for The Oracle

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -424,58 +424,65 @@ BuildingIcons/The Great Library
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/The Louvre BuildingIcons/The Great Lighthouse
rotate: false rotate: false
xy: 1456, 824 xy: 1456, 824
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/The Oracle BuildingIcons/The Louvre
rotate: false rotate: false
xy: 1558, 926 xy: 1558, 926
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/The Pyramids BuildingIcons/The Oracle
rotate: false rotate: false
xy: 1660, 1028 xy: 1660, 1028
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/The Pyramids
rotate: false
xy: 1762, 1130
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
BuildingIcons/Theatre BuildingIcons/Theatre
rotate: false rotate: false
xy: 1150, 416 xy: 1252, 518
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/University BuildingIcons/University
rotate: false rotate: false
xy: 1660, 926 xy: 1762, 1028
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/Walls BuildingIcons/Walls
rotate: false rotate: false
xy: 1864, 1130 xy: 1150, 314
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/Windmill BuildingIcons/Windmill
rotate: false rotate: false
xy: 1456, 620 xy: 1558, 722
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
BuildingIcons/Workshop BuildingIcons/Workshop
rotate: false rotate: false
xy: 1864, 1028 xy: 1150, 212
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -657,7 +664,7 @@ ImprovementIcons/Road
index: -1 index: -1
ImprovementIcons/Trading post ImprovementIcons/Trading post
rotate: false rotate: false
xy: 1354, 620 xy: 1456, 722
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -734,7 +741,7 @@ OtherIcons/Sleep
index: -1 index: -1
OtherIcons/Star OtherIcons/Star
rotate: false rotate: false
xy: 1252, 320 xy: 1354, 422
size: 100, 94 size: 100, 94
orig: 100, 94 orig: 100, 94
offset: 0, 0 offset: 0, 0
@ -797,77 +804,77 @@ PolicyIcons/Collective Rule
index: -1 index: -1
PolicyIcons/Constitution PolicyIcons/Constitution
rotate: false rotate: false
xy: 1354, 466 xy: 1456, 568
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Democracy PolicyIcons/Democracy
rotate: false rotate: false
xy: 1456, 568 xy: 1558, 670
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Dicipline PolicyIcons/Dicipline
rotate: false rotate: false
xy: 1558, 670 xy: 1660, 772
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Entrepreneurship PolicyIcons/Entrepreneurship
rotate: false rotate: false
xy: 1660, 772 xy: 1762, 874
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Facism PolicyIcons/Facism
rotate: false rotate: false
xy: 1762, 874 xy: 1864, 976
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Free Religion PolicyIcons/Free Religion
rotate: false rotate: false
xy: 1864, 976 xy: 1150, 160
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Free Speech PolicyIcons/Free Speech
rotate: false rotate: false
xy: 1150, 160 xy: 1252, 262
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Free Thought PolicyIcons/Free Thought
rotate: false rotate: false
xy: 1252, 268 xy: 1354, 370
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Humanism PolicyIcons/Humanism
rotate: false rotate: false
xy: 1354, 414 xy: 1456, 516
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Landed Elite PolicyIcons/Landed Elite
rotate: false rotate: false
xy: 1252, 216 xy: 1354, 318
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Legalism PolicyIcons/Legalism
rotate: false rotate: false
xy: 1354, 362 xy: 1456, 464
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
@ -902,77 +909,77 @@ PolicyIcons/Militarism
index: -1 index: -1
PolicyIcons/Military Caste PolicyIcons/Military Caste
rotate: false rotate: false
xy: 1406, 466 xy: 1508, 568
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Military Tradition PolicyIcons/Military Tradition
rotate: false rotate: false
xy: 1406, 414 xy: 1508, 516
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Monarchy PolicyIcons/Monarchy
rotate: false rotate: false
xy: 1406, 362 xy: 1508, 464
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Oligarchy PolicyIcons/Oligarchy
rotate: false rotate: false
xy: 1508, 568 xy: 1610, 670
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Organized Religion PolicyIcons/Organized Religion
rotate: false rotate: false
xy: 1610, 670 xy: 1712, 772
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Patronage PolicyIcons/Patronage
rotate: false rotate: false
xy: 1712, 772 xy: 1814, 874
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Police State PolicyIcons/Police State
rotate: false rotate: false
xy: 1814, 874 xy: 1916, 976
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Populism PolicyIcons/Populism
rotate: false rotate: false
xy: 1916, 976 xy: 1202, 160
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Professional Army PolicyIcons/Professional Army
rotate: false rotate: false
xy: 1202, 160 xy: 1304, 262
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Protectionism PolicyIcons/Protectionism
rotate: false rotate: false
xy: 1304, 268 xy: 1406, 370
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Reformation PolicyIcons/Reformation
rotate: false rotate: false
xy: 1304, 216 xy: 1406, 318
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
@ -993,56 +1000,56 @@ PolicyIcons/Republic
index: -1 index: -1
PolicyIcons/Scientific Revolution PolicyIcons/Scientific Revolution
rotate: false rotate: false
xy: 1254, 164 xy: 1356, 266
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Secularism PolicyIcons/Secularism
rotate: false rotate: false
xy: 1254, 112 xy: 1408, 266
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Sovereignty PolicyIcons/Sovereignty
rotate: false rotate: false
xy: 1306, 164 xy: 306, 194
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Theocracy PolicyIcons/Theocracy
rotate: false rotate: false
xy: 1306, 112 xy: 358, 194
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Total War PolicyIcons/Total War
rotate: false rotate: false
xy: 306, 194 xy: 1458, 412
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Trade Unions PolicyIcons/Trade Unions
rotate: false rotate: false
xy: 358, 194 xy: 1458, 360
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Universal Suffrage PolicyIcons/Universal Suffrage
rotate: false rotate: false
xy: 1356, 310 xy: 1510, 412
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
index: -1 index: -1
PolicyIcons/Warrior Code PolicyIcons/Warrior Code
rotate: false rotate: false
xy: 1356, 258 xy: 1510, 360
size: 50, 50 size: 50, 50
orig: 50, 50 orig: 50, 50
offset: 0, 0 offset: 0, 0
@ -1217,28 +1224,28 @@ ResourceIcons/Sugar
index: -1 index: -1
ResourceIcons/Uranium ResourceIcons/Uranium
rotate: false rotate: false
xy: 1762, 1028 xy: 1864, 1130
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
ResourceIcons/Whales ResourceIcons/Whales
rotate: false rotate: false
xy: 1252, 416 xy: 1354, 518
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
ResourceIcons/Wheat ResourceIcons/Wheat
rotate: false rotate: false
xy: 1354, 518 xy: 1456, 620
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
ResourceIcons/Wine ResourceIcons/Wine
rotate: false rotate: false
xy: 1558, 722 xy: 1660, 824
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -1763,28 +1770,28 @@ TechIcons/Steel
index: -1 index: -1
TechIcons/The Wheel TechIcons/The Wheel
rotate: false rotate: false
xy: 1762, 1130 xy: 1150, 416
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Theology TechIcons/Theology
rotate: false rotate: false
xy: 1252, 518 xy: 1354, 620
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Trapping TechIcons/Trapping
rotate: false rotate: false
xy: 1456, 722 xy: 1558, 824
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Writing TechIcons/Writing
rotate: false rotate: false
xy: 1150, 212 xy: 1252, 314
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -2050,7 +2057,7 @@ UnitIcons/Swordsman
index: -1 index: -1
UnitIcons/Trebuchet UnitIcons/Trebuchet
rotate: false rotate: false
xy: 1558, 824 xy: 1660, 926
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -2064,21 +2071,21 @@ UnitIcons/Trireme
index: -1 index: -1
UnitIcons/Warrior UnitIcons/Warrior
rotate: false rotate: false
xy: 1150, 314 xy: 1252, 416
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitIcons/Work Boats UnitIcons/Work Boats
rotate: false rotate: false
xy: 1660, 824 xy: 1762, 926
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitIcons/Worker UnitIcons/Worker
rotate: false rotate: false
xy: 1762, 926 xy: 1864, 1028
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
@ -2162,42 +2169,42 @@ UnitPromotionIcons/Drill_III_(Civ5)
index: -1 index: -1
UnitPromotionIcons/Drill_II_(Civ5) UnitPromotionIcons/Drill_II_(Civ5)
rotate: false rotate: false
xy: 1456, 546 xy: 1558, 648
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Drill_I_(Civ5) UnitPromotionIcons/Drill_I_(Civ5)
rotate: false rotate: false
xy: 1558, 648 xy: 1660, 750
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Formation_II_(Civ5) UnitPromotionIcons/Formation_II_(Civ5)
rotate: false rotate: false
xy: 1660, 750 xy: 1762, 852
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Formation_I_(Civ5) UnitPromotionIcons/Formation_I_(Civ5)
rotate: false rotate: false
xy: 1762, 852 xy: 1864, 954
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Indirect_Fire_(Civ5) UnitPromotionIcons/Indirect_Fire_(Civ5)
rotate: false rotate: false
xy: 1864, 954 xy: 1966, 1054
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Logistics_(Civ5) UnitPromotionIcons/Logistics_(Civ5)
rotate: false rotate: false
xy: 1966, 1054 xy: 1252, 240
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
@ -2218,70 +2225,70 @@ UnitPromotionIcons/Mobility_(Civ5)
index: -1 index: -1
UnitPromotionIcons/Range_(Civ5) UnitPromotionIcons/Range_(Civ5)
rotate: false rotate: false
xy: 1408, 340 xy: 1458, 338
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Scouting_III_(Civ5) UnitPromotionIcons/Scouting_III_(Civ5)
rotate: false rotate: false
xy: 1356, 236 xy: 406, 1174
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Scouting_II_(Civ5) UnitPromotionIcons/Scouting_II_(Civ5)
rotate: false rotate: false
xy: 406, 1174 xy: 770, 1646
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Scouting_I_(Civ5) UnitPromotionIcons/Scouting_I_(Civ5)
rotate: false rotate: false
xy: 770, 1646 xy: 1076, 1748
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Sentry_(Civ5) UnitPromotionIcons/Sentry_(Civ5)
rotate: false rotate: false
xy: 1076, 1748 xy: 1098, 1770
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Shock_III_(Civ5) UnitPromotionIcons/Shock_III_(Civ5)
rotate: false rotate: false
xy: 1098, 1770 xy: 916, 1208
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Shock_II_(Civ5) UnitPromotionIcons/Shock_II_(Civ5)
rotate: false rotate: false
xy: 916, 1208 xy: 1048, 1238
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Shock_I_(Civ5) UnitPromotionIcons/Shock_I_(Civ5)
rotate: false rotate: false
xy: 1048, 1238 xy: 1070, 1260
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Siege_(Civ5) UnitPromotionIcons/Siege_(Civ5)
rotate: false rotate: false
xy: 1070, 1260 xy: 1949, 1748
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0
index: -1 index: -1
UnitPromotionIcons/Volley_(Civ5) UnitPromotionIcons/Volley_(Civ5)
rotate: false rotate: false
xy: 1949, 1748 xy: 1971, 1770
size: 20, 20 size: 20, 20
orig: 20, 20 orig: 20, 20
offset: 0, 0 offset: 0, 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 901 KiB

After

Width:  |  Height:  |  Size: 900 KiB

View File

@ -111,6 +111,15 @@
uniques:["Can only be built in coastal cities","+1 food from Ocean and Coast tiles"] uniques:["Can only be built in coastal cities","+1 food from Ocean and Coast tiles"]
requiredTech:"Optics" requiredTech:"Optics"
}, },
{
name:"The Great Lighthouse",
culture:1,
greatPersonPoints:{gold:1},
isWonder:true,
providesFreeBuilding: "Lighthouse",
uniques:["Can only be built in coastal cities", "All military naval units receive +1 movement and +1 sight"]
requiredTech:"Optics"
},
{ {
name:"Stable", name:"Stable",
maintenance:1, maintenance:1,

View File

@ -1461,7 +1461,7 @@
Romanian:"Sondă de nafta" Romanian:"Sondă de nafta"
German:"Ölbrunnen" German:"Ölbrunnen"
Dutch:"Oliebron" Dutch:"Oliebron"
Spanish:"Pozo petrolífero"" Spanish:"Pozo petrolífero"
} }
"Pasture":{ "Pasture":{
Italian:"Pascolo" Italian:"Pascolo"

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.game" applicationId "com.unciv.game"
minSdkVersion 14 minSdkVersion 14
targetSdkVersion 26 targetSdkVersion 26
versionCode 147 versionCode 148
versionName "2.9.1" versionName "2.9.2"
} }
buildTypes { buildTypes {
release { release {

View File

@ -45,6 +45,11 @@ class MapUnit {
fun getMaxMovement(): Int { fun getMaxMovement(): Int {
var movement = baseUnit.movement var movement = baseUnit.movement
movement += getUniques().count{it=="+1 Movement"} movement += getUniques().count{it=="+1 Movement"}
if(baseUnit.unitType.isWaterUnit() && !baseUnit.unitType.isCivilian()
&& civInfo.getBuildingUniques().contains("All military naval units receive +1 movement and +1 sight"))
movement += 1
return movement return movement
} }
@ -77,6 +82,9 @@ class MapUnit {
if(hasUnique("Limited Visibility")) visibilityRange-=1 if(hasUnique("Limited Visibility")) visibilityRange-=1
if(civInfo.getNation().unique=="All land military units have +1 sight, 50% discount when purchasing tiles") if(civInfo.getNation().unique=="All land military units have +1 sight, 50% discount when purchasing tiles")
visibilityRange += 1 visibilityRange += 1
if(baseUnit.unitType.isWaterUnit() && !baseUnit.unitType.isCivilian()
&& civInfo.getBuildingUniques().contains("All military naval units receive +1 movement and +1 sight"))
visibilityRange += 1
val tile = getTile() val tile = getTile()
if (tile.baseTerrain == "Hill") visibilityRange += 1 if (tile.baseTerrain == "Hill") visibilityRange += 1
return tile.getViewableTiles(visibilityRange) return tile.getViewableTiles(visibilityRange)

View File

@ -72,7 +72,7 @@ class TileMap {
} }
fun placeUnitNearTile(position: Vector2, unitName: String, civInfo: CivilizationInfo): MapUnit { fun placeUnitNearTile(position: Vector2, unitName: String, civInfo: CivilizationInfo): MapUnit {
val unit = GameBasics.Units[unitName]!!.getMapUnit() val unit = GameBasics.Units[unitName]!!.getMapUnit(civInfo)
val tilesInDistance = getTilesInDistance(position, 2) val tilesInDistance = getTilesInDistance(position, 2)
unit.assignOwner(civInfo) // both the civ name and actual civ need to be in here in order to calculate the canMoveTo...Darn unit.assignOwner(civInfo) // both the civ name and actual civ need to be in here in order to calculate the canMoveTo...Darn

View File

@ -73,10 +73,11 @@ class BaseUnit : INamed, IConstruction, ICivilopedia {
return sb.toString() return sb.toString()
} }
fun getMapUnit(): MapUnit { fun getMapUnit(civInfo: CivilizationInfo): MapUnit {
val unit = MapUnit() val unit = MapUnit()
unit.name = name unit.name = name
unit.setTransients() // must be after setting name because it sets the baseUnit according to the name unit.setTransients() // must be after setting name because it sets the baseUnit according to the name
unit.civInfo = civInfo // needed for the getMaxMovement function below, since movement can be affected by wonders (e.g. Great Lighthouse)
unit.currentMovement = unit.getMaxMovement().toFloat() // must be after setTransients because it relies on having the baseUnit set unit.currentMovement = unit.getMaxMovement().toFloat() // must be after setTransients because it relies on having the baseUnit set
return unit return unit
} }