Added Sweden Civ (#4566)

* wonder splash screens

* wonder splash screens atlas

* reset to master

* Add Sweden

* add translations

* translations

* implement first part of UP

* add icons to atlas

* implement second part of swedens up

* implement first hakkapeliitta unique

* implement second hakkapeliitta unique

* gifted GPs are removed

* update sweden symbol

* translations

* review Hakkapeliitta unique

* removed unneccesary parameters

* hakka UP review

* Hakka UP part 2

* yairm's reviews

* translations for fixes

* removed [great person generation] parameter as it's hardcoded anyway

* Moved check for stacking unit bonus outside great general logic
This commit is contained in:
SimonCeder 2021-07-20 16:06:15 +02:00 committed by GitHub
parent 2db2dc0db7
commit 239a406bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1101 additions and 740 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -6,749 +6,763 @@ filter: MipMapLinearLinear, MipMapLinearLinear
repeat: none repeat: none
Anti-Aircraft Gun Anti-Aircraft Gun
rotate: false rotate: false
xy: 4, 868 xy: 4, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Anti-Tank Gun Anti-Tank Gun
rotate: false rotate: false
xy: 4, 760 xy: 4, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Archer Archer
rotate: false rotate: false
xy: 112, 868 xy: 112, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Artillery Artillery
rotate: false rotate: false
xy: 4, 652 xy: 4, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Atomic Bomb Atomic Bomb
rotate: false rotate: false
xy: 112, 760 xy: 112, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
B17 B17
rotate: false rotate: false
xy: 220, 868 xy: 220, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Ballista Ballista
rotate: false rotate: false
xy: 4, 544 xy: 4, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Battering Ram Battering Ram
rotate: false rotate: false
xy: 112, 652 xy: 112, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Battleship Battleship
rotate: false rotate: false
xy: 220, 760 xy: 220, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Berserker Berserker
rotate: false rotate: false
xy: 328, 868 xy: 328, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Bomber Bomber
rotate: false rotate: false
xy: 4, 436 xy: 4, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Bowman Bowman
rotate: false rotate: false
xy: 112, 544 xy: 112, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Brute Brute
rotate: false rotate: false
xy: 220, 652 xy: 220, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Camel Archer Camel Archer
rotate: false rotate: false
xy: 328, 760 xy: 328, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Cannon Cannon
rotate: false rotate: false
xy: 436, 868 xy: 436, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Caravel Caravel
rotate: false rotate: false
xy: 4, 328 xy: 4, 322
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
Carolean
rotate: false
xy: 112, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Carrier Carrier
rotate: false rotate: false
xy: 112, 436 xy: 220, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Catapult Catapult
rotate: false rotate: false
xy: 220, 544 xy: 328, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Cavalry Cavalry
rotate: false rotate: false
xy: 328, 652 xy: 436, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Chariot Archer Chariot Archer
rotate: false rotate: false
xy: 436, 760 xy: 544, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Chu-Ko-Nu Chu-Ko-Nu
rotate: false rotate: false
xy: 544, 868 xy: 4, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Companion Cavalry Companion Cavalry
rotate: false rotate: false
xy: 4, 220 xy: 112, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Composite Bowman Composite Bowman
rotate: false rotate: false
xy: 112, 328 xy: 220, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Conquistador Conquistador
rotate: false rotate: false
xy: 220, 436 xy: 328, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Cossack Cossack
rotate: false rotate: false
xy: 328, 544 xy: 436, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Crossbowman Crossbowman
rotate: false rotate: false
xy: 436, 652 xy: 544, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Destroyer Destroyer
rotate: false rotate: false
xy: 544, 760 xy: 652, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Fighter Fighter
rotate: false rotate: false
xy: 652, 868 xy: 4, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Foreign Legion Foreign Legion
rotate: false rotate: false
xy: 4, 112 xy: 112, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Frigate Frigate
rotate: false rotate: false
xy: 112, 220 xy: 220, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Galleass Galleass
rotate: false rotate: false
xy: 220, 328 xy: 328, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Gatling Gun Gatling Gun
rotate: false rotate: false
xy: 328, 436 xy: 436, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Giant Death Robot Giant Death Robot
rotate: false rotate: false
xy: 436, 544 xy: 544, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great Artist Great Artist
rotate: false rotate: false
xy: 544, 652 xy: 652, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great Engineer Great Engineer
rotate: false rotate: false
xy: 652, 760 xy: 760, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great General Great General
rotate: false rotate: false
xy: 760, 874 xy: 4, 4
size: 100, 94 size: 100, 94
orig: 100, 94 orig: 100, 94
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great Merchant Great Merchant
rotate: false rotate: false
xy: 4, 4 xy: 112, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great Prophet Great Prophet
rotate: false rotate: false
xy: 112, 112 xy: 220, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great Scientist Great Scientist
rotate: false rotate: false
xy: 220, 220 xy: 328, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great War Bomber Great War Bomber
rotate: false rotate: false
xy: 328, 328 xy: 436, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Great War Infantry Great War Infantry
rotate: false rotate: false
xy: 436, 436 xy: 544, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Guided Missile Guided Missile
rotate: false rotate: false
xy: 544, 544 xy: 652, 646
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
Hakkapeliitta
rotate: false
xy: 760, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Helicopter Gunship Helicopter Gunship
rotate: false rotate: false
xy: 652, 652 xy: 868, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Hoplite Hoplite
rotate: false rotate: false
xy: 760, 766 xy: 220, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Horse Archer Horse Archer
rotate: false rotate: false
xy: 868, 868 xy: 328, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Horseman Horseman
rotate: false rotate: false
xy: 112, 4 xy: 436, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Hwach'a Hwach'a
rotate: false rotate: false
xy: 220, 112 xy: 544, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Infantry Infantry
rotate: false rotate: false
xy: 328, 220 xy: 652, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Ironclad Ironclad
rotate: false rotate: false
xy: 436, 328 xy: 760, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Jaguar Jaguar
rotate: false rotate: false
xy: 544, 436 xy: 868, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Janissary Janissary
rotate: false rotate: false
xy: 652, 544 xy: 976, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Jet Fighter Jet Fighter
rotate: false rotate: false
xy: 760, 658 xy: 328, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Keshik Keshik
rotate: false rotate: false
xy: 868, 760 xy: 436, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Khan Khan
rotate: false rotate: false
xy: 976, 868 xy: 544, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Knight Knight
rotate: false rotate: false
xy: 220, 4 xy: 652, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Lancer Lancer
rotate: false rotate: false
xy: 328, 112 xy: 760, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Landship Landship
rotate: false rotate: false
xy: 436, 220 xy: 868, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Landsknecht Landsknecht
rotate: false rotate: false
xy: 544, 328 xy: 976, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Legion Legion
rotate: false rotate: false
xy: 652, 436 xy: 1084, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Longbowman Longbowman
rotate: false rotate: false
xy: 760, 550 xy: 436, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Longswordsman Longswordsman
rotate: false rotate: false
xy: 868, 652 xy: 544, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Machine Gun Machine Gun
rotate: false rotate: false
xy: 976, 760 xy: 652, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Mandekalu Cavalry Mandekalu Cavalry
rotate: false rotate: false
xy: 1084, 868 xy: 760, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Maori Warrior Maori Warrior
rotate: false rotate: false
xy: 328, 4 xy: 868, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Marine Marine
rotate: false rotate: false
xy: 436, 112 xy: 976, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Mechanized Infantry Mechanized Infantry
rotate: false rotate: false
xy: 544, 220 xy: 1084, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Minuteman Minuteman
rotate: false rotate: false
xy: 652, 328 xy: 1192, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Missile Cruiser Missile Cruiser
rotate: false rotate: false
xy: 760, 442 xy: 544, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Mobile SAM Mobile SAM
rotate: false rotate: false
xy: 868, 544 xy: 652, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Modern Armor Modern Armor
rotate: false rotate: false
xy: 976, 652 xy: 760, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Mohawk Warrior Mohawk Warrior
rotate: false rotate: false
xy: 1084, 760 xy: 868, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Musketeer Musketeer
rotate: false rotate: false
xy: 1192, 868 xy: 976, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Musketman Musketman
rotate: false rotate: false
xy: 436, 5 xy: 1084, 647
size: 100, 99 size: 100, 99
orig: 100, 99 orig: 100, 99
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Naresuan's Elephant Naresuan's Elephant
rotate: false rotate: false
xy: 544, 112 xy: 1192, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Norwegian Ski Infantry Norwegian Ski Infantry
rotate: false rotate: false
xy: 652, 220 xy: 1300, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Nuclear Missile Nuclear Missile
rotate: false rotate: false
xy: 760, 334 xy: 652, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Nuclear Submarine Nuclear Submarine
rotate: false rotate: false
xy: 868, 436 xy: 760, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Panzer Panzer
rotate: false rotate: false
xy: 976, 544 xy: 868, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Paratrooper Paratrooper
rotate: false rotate: false
xy: 1084, 652 xy: 976, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Persian Immortal Persian Immortal
rotate: false rotate: false
xy: 1192, 760 xy: 1084, 539
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Pikeman Pikeman
rotate: false rotate: false
xy: 1300, 868 xy: 1192, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Privateer Privateer
rotate: false rotate: false
xy: 652, 112 xy: 1300, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Rifleman Rifleman
rotate: false rotate: false
xy: 760, 226 xy: 1408, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Rocket Artillery Rocket Artillery
rotate: false rotate: false
xy: 868, 328 xy: 760, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Samurai Samurai
rotate: false rotate: false
xy: 976, 436 xy: 868, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Scout Scout
rotate: false rotate: false
xy: 1084, 544 xy: 976, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Sea Beggar Sea Beggar
rotate: false rotate: false
xy: 1192, 652 xy: 1084, 431
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Settler Settler
rotate: false rotate: false
xy: 1300, 760 xy: 1192, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Ship of the Line Ship of the Line
rotate: false rotate: false
xy: 1408, 868 xy: 1300, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Sipahi Sipahi
rotate: false rotate: false
xy: 760, 118 xy: 1408, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Slinger Slinger
rotate: false rotate: false
xy: 868, 220 xy: 1516, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Spearman Spearman
rotate: false rotate: false
xy: 976, 328 xy: 868, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Stealth Bomber Stealth Bomber
rotate: false rotate: false
xy: 1084, 436 xy: 976, 214
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Submarine Submarine
rotate: false rotate: false
xy: 1192, 544 xy: 1084, 323
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Swordsman Swordsman
rotate: false rotate: false
xy: 1300, 652 xy: 1192, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Tank Tank
rotate: false rotate: false
xy: 1408, 760 xy: 1300, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Tercio Tercio
rotate: false rotate: false
xy: 1516, 868 xy: 1408, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Trebuchet Trebuchet
rotate: false rotate: false
xy: 976, 220 xy: 1516, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Triplane Triplane
rotate: false rotate: false
xy: 1084, 328 xy: 1624, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Trireme Trireme
rotate: false rotate: false
xy: 1192, 435 xy: 1084, 214
size: 100, 101 size: 100, 101
orig: 100, 101 orig: 100, 101
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Turtle Ship Turtle Ship
rotate: false rotate: false
xy: 1300, 544 xy: 976, 106
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
War Chariot War Chariot
rotate: false rotate: false
xy: 1408, 652 xy: 1192, 322
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
War Elephant War Elephant
rotate: false rotate: false
xy: 1516, 760 xy: 1300, 430
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Warrior Warrior
rotate: false rotate: false
xy: 1624, 868 xy: 1408, 538
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Work Boats Work Boats
rotate: false rotate: false
xy: 1084, 220 xy: 1516, 646
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Worker Worker
rotate: false rotate: false
xy: 1192, 327 xy: 1624, 754
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
Zero Zero
rotate: false rotate: false
xy: 1300, 436 xy: 1732, 862
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 KiB

After

Width:  |  Height:  |  Size: 339 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -714,13 +714,13 @@
"uniques": ["Retain [50]% of the happiness from a luxury after the last copy has been traded away"], "uniques": ["Retain [50]% of the happiness from a luxury after the last copy has been traded away"],
"cities": ["Amsterdam", "Rotterdam", "Utrecht", "Groningen", "Breda", "Nijmegen", "Den Haag", "Haarlem", "Arnhem", "Zutphen", "Maastricht", "Tilburg", "Eindhoven", "Dordrecht", "Leiden", "Hertogenbosch", "Almere", "Alkmaar", "Brielle", "Vlissingen", "Apeldoorn", "Enschede", "Amersfoort", "Zwolle", "Venlo", "Uden", "Grave", "Delft", "Gouda", "Nieuwstadt", "Weesp", "Coevorden", "Kerkrade"] "cities": ["Amsterdam", "Rotterdam", "Utrecht", "Groningen", "Breda", "Nijmegen", "Den Haag", "Haarlem", "Arnhem", "Zutphen", "Maastricht", "Tilburg", "Eindhoven", "Dordrecht", "Leiden", "Hertogenbosch", "Almere", "Alkmaar", "Brielle", "Vlissingen", "Apeldoorn", "Enschede", "Amersfoort", "Zwolle", "Venlo", "Uden", "Grave", "Delft", "Gouda", "Nieuwstadt", "Weesp", "Coevorden", "Kerkrade"]
}, },
/*
{ {
"name": "Sweden", "name": "Sweden",
"leaderName": "Gustavus Adolphus", "leaderName": "Gustavus Adolphus",
"adjective": ["Swedish"], "adjective": ["Swedish"],
"startBias": ["Tundra"], "startBias": ["Tundra"],
"preferredVictoryType": "Diplomatic", "preferredVictoryType": "Domination",
"startIntroPart1": "All hail the transcendent King Gustavus Adolphus, founder of the Swedish Empire and her most distinguished military tactician. It was during your reign that Sweden emerged as one of the greatest powers in Europe, due in no small part to your wisdom, both on and off the battlefield. As king, you initiated a number of domestic reforms that ensured the economic stability and prosperity of your people. As the general who came to be known as the \"Lion of the North,\" your visionary designs in warfare gained the admiration of military commanders the world over. Thanks to your triumphs in the Thirty Years' War, you were assured a legacy as one of history's greatest generals.", "startIntroPart1": "All hail the transcendent King Gustavus Adolphus, founder of the Swedish Empire and her most distinguished military tactician. It was during your reign that Sweden emerged as one of the greatest powers in Europe, due in no small part to your wisdom, both on and off the battlefield. As king, you initiated a number of domestic reforms that ensured the economic stability and prosperity of your people. As the general who came to be known as the \"Lion of the North,\" your visionary designs in warfare gained the admiration of military commanders the world over. Thanks to your triumphs in the Thirty Years' War, you were assured a legacy as one of history's greatest generals.",
"startIntroPart2": "Oh noble King, the people long for your prudent leadership, hopeful that once again they will see your kingdom rise to glory. Will you devise daring new strategies, leading your armies to victory on the theater of war? Will you build a civilization that stands the test of time?", "startIntroPart2": "Oh noble King, the people long for your prudent leadership, hopeful that once again they will see your kingdom rise to glory. Will you devise daring new strategies, leading your armies to victory on the theater of war? Will you build a civilization that stands the test of time?",
@ -733,15 +733,17 @@
"neutralHello": "Oh, welcome!", "neutralHello": "Oh, welcome!",
"hateHello": "Oh, it is you.", "hateHello": "Oh, it is you.",
"tradeRequest": "My friend, it is my belief that this settlement can benefit both our peoples.", "tradeRequest": "My friend, it is my belief that this settlement can benefit both our peoples.",
"outerColor": [227,225,44], // #e3e12c (warm yellow) "outerColor": [37,56,123],
"innerColor": [37,56,123], // #25387b (dark greyish blue) (was 194,97,255 #c261ff purple) "innerColor": [227,225,44],
"uniqueName": "Nobel Prize", "uniqueName": "Nobel Prize",
"uniques": ["Gain [90] [Influence] with a [Great Person] gift to a City-State", "When declaring [friendship], both parties gain a +[10]% boost to [great person generation]"], "uniques": ["Gain [90] Influence with a [Great Person] gift to a City-State", "When declaring friendship, both parties gain a [10]% boost to great person generation"],
"cities": ["Stockholm","Malmö","Gothenburg","Visby","Uppsala","Umeå","Lund","Kiruna","Helsingborg", "cities": ["Stockholm","Uppsala","Gothenburg","Malmö","Linköping","Kalmar","Skara","Västerås","Jönköping",
"Örebro","Västerås","Linköping","Norrköping","Gävle","Karlskrona","Halmstad","Karlstad","Växjö", "Visby","Falun","Norrköping","Gävle","Halmstad","Karlskrona","Hudiksvall","Örebro","Umeå","Karlstad",
"Sundsvall","Jönköping","Borås","Sigtuna","Birka","Strängnäs","Skara","Lödöse","Ystad","Paviken"] "Helsingborg","Härnösand","Vadstena","Lund","Västervik","Enköping","Skövde","Eskilstuna","Luleå","Lidköping",
"Södertälje","Mariestad","Östersund","Borås","Sundsvall","Vimmerby","Köping","Mora","Arboga","Växjö","Gränna",
"Kiruna","Borgholm","Strängnäs","Sveg"]
}, },
*/

View File

@ -882,6 +882,23 @@
"obsoleteTech": "Combined Arms", "obsoleteTech": "Combined Arms",
"attackSound": "horse" "attackSound": "horse"
}, },
{
"name": "Hakkapeliitta",
"unitType": "Mounted",
"replaces": "Lancer",
"uniqueTo": "Sweden",
"movement": 4,
"strength": 25,
"cost": 185,
"requiredTech": "Metallurgy",
"requiredResource": "Horses",
"uniques": ["Can move after attacking","No defensive terrain bonus","-[33]% Strength vs [City]",
"Transfer Movement to [Great General]", "[+15]% Strength when stacked with [Great General]"],
"promotions": ["Formation I"],
"upgradesTo": "Anti-Tank Gun",
"obsoleteTech": "Combined Arms",
"attackSound": "horse"
},
{ {
"name": "Cannon", "name": "Cannon",
"unitType": "Siege", "unitType": "Siege",
@ -936,6 +953,20 @@
"uniques": ["+[25]% Strength in [Snow]", "+[25]% Strength in [Tundra]", "+[25]% Strength in [Hill]", "Double movement in Snow, Tundra and Hills"], "uniques": ["+[25]% Strength in [Snow]", "+[25]% Strength in [Tundra]", "+[25]% Strength in [Hill]", "Double movement in Snow, Tundra and Hills"],
"attackSound": "shot" "attackSound": "shot"
}, },
{
"name": "Carolean",
"unitType": "Melee",
"replaces": "Rifleman",
"uniqueTo": "Sweden",
"movement": 2,
"strength": 34,
"cost": 225,
"requiredTech": "Rifling",
"obsoleteTech": "Replaceable Parts",
"upgradesTo": "Great War Infantry",
"promotions": ["March"],
"attackSound": "shot"
},
{ {
"name": "Cavalry", "name": "Cavalry",
"unitType": "Mounted", "unitType": "Mounted",

View File

@ -5311,6 +5311,123 @@ Coevorden =
# Requires translation! # Requires translation!
Kerkrade = Kerkrade =
# Requires translation!
Sweden =
# Requires translation!
Gustavus Adolphus =
# Requires translation!
The Hakkapeliittas will ride again and your men will fall just at the sight of my cavalry! God with us! =
# Requires translation!
Ha ha ha, captain Gars will be very glad to head out to war again. =
# Requires translation!
I am Sweden's king. You can take my lands, my people, my kingdom, but you will never reach the House of Vasa. =
# Requires translation!
Stranger, welcome to the Snow King's kingdom! I am Gustavus Adolphus, member of the esteemed House of Vasa =
# Requires translation!
My friend, it is my belief that this settlement can benefit both our peoples. =
# Requires translation!
Oh, welcome! =
# Requires translation!
Oh, it is you. =
# Requires translation!
Nobel Prize =
# Requires translation!
Gain [amount] Influence with a [param] gift to a City-State =
# Requires translation!
When declaring friendship, both parties gain a [amount]% boost to great person generation =
# Requires translation!
All hail the transcendent King Gustavus Adolphus, founder of the Swedish Empire and her most distinguished military tactician. It was during your reign that Sweden emerged as one of the greatest powers in Europe, due in no small part to your wisdom, both on and off the battlefield. As king, you initiated a number of domestic reforms that ensured the economic stability and prosperity of your people. As the general who came to be known as the "Lion of the North," your visionary designs in warfare gained the admiration of military commanders the world over. Thanks to your triumphs in the Thirty Years' War, you were assured a legacy as one of history's greatest generals. =
# Requires translation!
Oh noble King, the people long for your prudent leadership, hopeful that once again they will see your kingdom rise to glory. Will you devise daring new strategies, leading your armies to victory on the theater of war? Will you build a civilization that stands the test of time? =
# Requires translation!
Stockholm =
# Requires translation!
Uppsala =
# Requires translation!
Gothenburg =
# Requires translation!
Malmö =
# Requires translation!
Linköping =
# Requires translation!
Kalmar =
# Requires translation!
Skara =
# Requires translation!
Västerås =
# Requires translation!
Jönköping =
# Requires translation!
Visby =
# Requires translation!
Falun =
# Requires translation!
Norrköping =
# Requires translation!
Gävle =
# Requires translation!
Halmstad =
# Requires translation!
Karlskrona =
# Requires translation!
Hudiksvall =
# Requires translation!
Örebro =
# Requires translation!
Umeå =
# Requires translation!
Karlstad =
# Requires translation!
Helsingborg =
# Requires translation!
Härnösand =
# Requires translation!
Vadstena =
# Requires translation!
Lund =
# Requires translation!
Västervik =
# Requires translation!
Enköping =
# Requires translation!
Skövde =
# Requires translation!
Eskilstuna =
# Requires translation!
Luleå =
# Requires translation!
Lidköping =
# Requires translation!
Södertälje =
# Requires translation!
Mariestad =
# Requires translation!
Östersund =
# Requires translation!
Borås =
# Requires translation!
Sundsvall =
# Requires translation!
Vimmerby =
# Requires translation!
Köping =
# Requires translation!
Mora =
# Requires translation!
Arboga =
# Requires translation!
Växjö =
# Requires translation!
Gränna =
# Requires translation!
Kiruna =
# Requires translation!
Borgholm =
# Requires translation!
Strängnäs =
# Requires translation!
Sveg =
# Requires translation! # Requires translation!
Milan = Milan =
# Requires translation! # Requires translation!
@ -6973,6 +7090,13 @@ Sipahi =
# Requires translation! # Requires translation!
No movement cost to pillage = No movement cost to pillage =
# Requires translation!
Hakkapeliitta =
# Requires translation!
Transfer Movement to [param] =
# Requires translation!
[amount]% Strength when stacked with [param] =
# Requires translation! # Requires translation!
Cannon = Cannon =
@ -6987,6 +7111,9 @@ Norwegian Ski Infantry =
# Requires translation! # Requires translation!
Double movement in Snow, Tundra and Hills = Double movement in Snow, Tundra and Hills =
# Requires translation!
Carolean =
# Requires translation! # Requires translation!
Cavalry = Cavalry =

View File

@ -2814,6 +2814,123 @@ Weesp = Weesp
Coevorden = Coevorden Coevorden = Coevorden
Kerkrade = Kerkrade Kerkrade = Kerkrade
# Requires translation!
Sweden = Sverige
# Requires translation!
Gustavus Adolphus = Gustav II Adolf
# Requires translation!
The Hakkapeliittas will ride again and your men will fall just at the sight of my cavalry! God with us! = Hakkapeliterna kommer rida igen och era män kommer att stupa vid bara åsynen av mitt kavalleri. Gott mit uns!
# Requires translation!
Ha ha ha, captain Gars will be very glad to head out to war again. = Ha ha ha, kapten Gars kommer att bli mycket glad över att ge sig ut i krig igen.
# Requires translation!
I am Sweden's king. You can take my lands, my people, my kingdom, but you will never reach the House of Vasa. = Jag är Sveriges konung. Ni kan ta min mark, mitt folk, mitt rike, men ni kommer aldrig åt Vasaätten.
# Requires translation!
Stranger, welcome to the Snow King's kingdom! I am Gustavus Adolphus, member of the esteemed House of Vasa = Främling, välkommen till Snökonungens rike! Jag är Gustav Adolf, medlem av den aktade Vasaätten.
# Requires translation!
My friend, it is my belief that this settlement can benefit both our peoples. = Min vän, det är min övertygelse att denna uppgörelse kan gagna både mitt och ert folk.
# Requires translation!
Oh, welcome! = Ah, välkommen!
# Requires translation!
Oh, it is you. = Jaså, det är ni.
# Requires translation!
Nobel Prize = Nobelpriset
# Requires translation!
Gain [amount] Influence with a [param] gift to a City-State = Få [amount] Inflytande då du ger en [param] till en Stadsstat
# Requires translation!
When declaring friendship, both parties gain a [amount]% boost to great person generation = Vid en vänskapsförklaring får båda parter en [amount]% bonus för generation av stora personer
# Requires translation!
All hail the transcendent King Gustavus Adolphus, founder of the Swedish Empire and her most distinguished military tactician. It was during your reign that Sweden emerged as one of the greatest powers in Europe, due in no small part to your wisdom, both on and off the battlefield. As king, you initiated a number of domestic reforms that ensured the economic stability and prosperity of your people. As the general who came to be known as the "Lion of the North," your visionary designs in warfare gained the admiration of military commanders the world over. Thanks to your triumphs in the Thirty Years' War, you were assured a legacy as one of history's greatest generals. =
# Requires translation!
Oh noble King, the people long for your prudent leadership, hopeful that once again they will see your kingdom rise to glory. Will you devise daring new strategies, leading your armies to victory on the theater of war? Will you build a civilization that stands the test of time? =
# Requires translation!
Stockholm = Stockholm
# Requires translation!
Uppsala = Uppsala
# Requires translation!
Gothenburg = Göteborg
# Requires translation!
Malmö = Malmö
# Requires translation!
Linköping = Linköping
# Requires translation!
Kalmar = Kalmar
# Requires translation!
Skara = Skara
# Requires translation!
Västerås = Västerås
# Requires translation!
Jönköping = Jönköping
# Requires translation!
Visby = Visby
# Requires translation!
Falun = Falun
# Requires translation!
Norrköping = Norrköping
# Requires translation!
Gävle = Gävle
# Requires translation!
Halmstad = Halmstad
# Requires translation!
Karlskrona = Karlskrona
# Requires translation!
Hudiksvall = Hudiksvall
# Requires translation!
Örebro = Örebro
# Requires translation!
Umeå = Umeå
# Requires translation!
Karlstad = Karlstad
# Requires translation!
Helsingborg = Helsingborg
# Requires translation!
Härnösand = Härnösand
# Requires translation!
Vadstena = Vadstena
# Requires translation!
Lund = Lund
# Requires translation!
Västervik = Västervik
# Requires translation!
Enköping = Enköping
# Requires translation!
Skövde = Skövde
# Requires translation!
Eskilstuna = Eskilstuna
# Requires translation!
Luleå = Luleå
# Requires translation!
Lidköping = Lidköping
# Requires translation!
Södertälje = Södertälje
# Requires translation!
Mariestad = Mariestad
# Requires translation!
Östersund = Östersund
# Requires translation!
Borås = Borås
# Requires translation!
Sundsvall = Sundsvall
# Requires translation!
Vimmerby = Vimmerby
# Requires translation!
Köping = Köping
# Requires translation!
Mora = Mora
# Requires translation!
Arboga = Arboga
# Requires translation!
Växjö = Växjö
# Requires translation!
Gränna = Gränna
# Requires translation!
Kiruna = Kiruna
# Requires translation!
Borgholm = Borgholm
# Requires translation!
Strängnäs = Strängnäs
# Requires translation!
Sveg = Sveg
Milan = Milano Milan = Milano
You leave us no choice. War it must be. = Du ger oss inget val. Krig är enda alternativet. You leave us no choice. War it must be. = Du ger oss inget val. Krig är enda alternativet.
Very well, this shall not be forgotten. = Nåväl, det ska sent glömmas. Very well, this shall not be forgotten. = Nåväl, det ska sent glömmas.
@ -3810,6 +3927,13 @@ Lancer = Lansiär
Sipahi = Spahi Sipahi = Spahi
No movement cost to pillage = Ingen förflyttningskostnad för att plundra No movement cost to pillage = Ingen förflyttningskostnad för att plundra
# Requires translation!
Hakkapeliitta = Hakkapelit
# Requires translation!
Transfer Movement to [param] = Överför Förflyttning till [param]
# Requires translation!
[amount]% Strength when stacked with [param] = [amount]% Styrka medan i samma ruta som [param]
Cannon = Kanon Cannon = Kanon
Gatling Gun = Gatlingkulspruta Gatling Gun = Gatlingkulspruta
@ -3819,6 +3943,9 @@ Rifleman = Gevärsskytt
Norwegian Ski Infantry = Norskt Skidinfanteri Norwegian Ski Infantry = Norskt Skidinfanteri
Double movement in Snow, Tundra and Hills = Dubbel förflyttning i Snö, Tundra, och Kullar Double movement in Snow, Tundra and Hills = Dubbel förflyttning i Snö, Tundra, och Kullar
# Requires translation!
Carolean = Karolin
Cavalry = Kavalleri Cavalry = Kavalleri
Cossack = Kosack Cossack = Kosack

View File

@ -695,6 +695,7 @@ Attacking Bonus =
defence vs [unitType] = defence vs [unitType] =
[tileFilter] defence = [tileFilter] defence =
Defensive Bonus = Defensive Bonus =
Stacked with [unitType] =
The following improvements [stats]: = The following improvements [stats]: =
The following improvements on [tileType] tiles [stats]: = The following improvements on [tileType] tiles [stats]: =

View File

@ -76,9 +76,19 @@ object BattleDamage {
if (nearbyCivUnits.any { it.hasUnique("Bonus for units in 2 tile radius 15%") }) { if (nearbyCivUnits.any { it.hasUnique("Bonus for units in 2 tile radius 15%") }) {
val greatGeneralModifier = val greatGeneralModifier =
if (combatant.unit.civInfo.hasUnique("Great General provides double combat bonus")) 30 else 15 if (combatant.unit.civInfo.hasUnique("Great General provides double combat bonus")) 30 else 15
modifiers["Great General"] = greatGeneralModifier modifiers["Great General"] = greatGeneralModifier
} }
for (unique in combatant.unit.getMatchingUniques("[]% Strength when stacked with []")) {
var stackedUnitsBonus = 0
if (combatant.unit.getTile().getUnits().any { it.matchesFilter(unique.params[1]) } )
stackedUnitsBonus += unique.params[0].toInt()
if (stackedUnitsBonus > 0)
modifiers["Stacked with [${unique.params[1]}]"] = stackedUnitsBonus
}
if (civInfo.goldenAges.isGoldenAge() && civInfo.hasUnique("+10% Strength for all units during Golden Age")) if (civInfo.goldenAges.isGoldenAge() && civInfo.hasUnique("+10% Strength for all units during Golden Age"))
modifiers["Golden Age"] = 10 modifiers["Golden Age"] = 10

View File

@ -344,7 +344,20 @@ class CityInfo {
if (!matchesFilter(unique.params[1])) continue if (!matchesFilter(unique.params[1])) continue
stats[entry.key]!!.timesInPlace(1 + unique.params[0].toFloat() / 100f) stats[entry.key]!!.timesInPlace(1 + unique.params[0].toFloat() / 100f)
} }
// Sweden UP
var friendshipMultiplier = 0f
for (otherciv in civInfo.getKnownCivs()) {
if (civInfo.getDiplomacyManager(otherciv).hasFlag(DiplomacyFlags.DeclarationOfFriendship)) {
for(ourunique in civInfo.getMatchingUniques("When declaring friendship, both parties gain a []% boost to great person generation"))
friendshipMultiplier += ourunique.params[0].toFloat()
for(theirunique in otherciv.getMatchingUniques("When declaring friendship, both parties gain a []% boost to great person generation"))
friendshipMultiplier += theirunique.params[0].toFloat()
}
}
if (friendshipMultiplier > 0f)
stats[entry.key]!!.timesInPlace(1 + friendshipMultiplier / 100f)
// Deprecated since 3.15.9 // Deprecated since 3.15.9
for (unique in getMatchingUniques("+[]% great person generation in this city") for (unique in getMatchingUniques("+[]% great person generation in this city")
+ getMatchingUniques("+[]% great person generation in all cities") + getMatchingUniques("+[]% great person generation in all cities")

View File

@ -605,6 +605,20 @@ class MapUnit {
attacksThisTurn = 0 attacksThisTurn = 0
due = true due = true
// Hakkapeliitta movement boost
if (getTile().getUnits().count() > 1)
{
// For every double-stacked tile, check if our cohabitant can boost our speed
for (unit in getTile().getUnits())
{
if (unit == this)
continue
if (unit.getMatchingUniques("Transfer Movement to []").any { matchesFilter(it.params[0]) } )
currentMovement = maxOf(getMaxMovement().toFloat(), unit.getMaxMovement().toFloat())
}
}
// Wake sleeping units if there's an enemy in vision range: // Wake sleeping units if there's an enemy in vision range:
// Military units always but civilians only if not protected. // Military units always but civilians only if not protected.
if (isSleeping() && (!type.isCivilian() || currentTile.militaryUnit == null) && if (isSleeping() && (!type.isCivilian() || currentTile.militaryUnit == null) &&

View File

@ -607,7 +607,11 @@ object UnitActions {
// City States only take miliary units (and GPs for certain civs) // City States only take miliary units (and GPs for certain civs)
if (recipient.isCityState()) { if (recipient.isCityState()) {
if (unit.isGreatPerson()) return null // Unless Sweden if (unit.isGreatPerson()) {
// Do we have a unique ability to gift GPs?
if (unit.civInfo.getMatchingUniques("Gain [] Influence with a [] gift to a City-State").none {
it.params[1] == "Great Person" } ) return null
}
else if (!unit.baseUnit().matchesFilter("Military")) return null else if (!unit.baseUnit().matchesFilter("Military")) return null
} }
// If gifting to major civ they need to be friendly // If gifting to major civ they need to be friendly
@ -618,16 +622,24 @@ object UnitActions {
val giftAction = { val giftAction = {
if (recipient.isCityState()) { if (recipient.isCityState()) {
if (unit.isGreatPerson()) for (unique in unit.civInfo.getMatchingUniques("Gain [] Influence with a [] gift to a City-State")) {
recipient.getDiplomacyManager(unit.civInfo).influence += 90 if((unit.isGreatPerson() && unique.params[1] == "Great Person")
else || unit.matchesFilter(unique.params[1])) {
recipient.getDiplomacyManager(unit.civInfo).influence += 5 recipient.getDiplomacyManager(unit.civInfo).influence += unique.params[0].toInt() - 5
}
}
recipient.getDiplomacyManager(unit.civInfo).influence += 5
recipient.updateAllyCivForCityState() recipient.updateAllyCivForCityState()
} }
else recipient.getDiplomacyManager(unit.civInfo).addModifier(DiplomaticModifiers.GaveUsUnits, 5f) else recipient.getDiplomacyManager(unit.civInfo).addModifier(DiplomaticModifiers.GaveUsUnits, 5f)
unit.gift(recipient) if(recipient.isCityState() && unit.isGreatPerson())
// UncivGame.Current.worldScreen.shouldUpdate = true unit.destroy() // City states dont get GPs
else
unit.gift(recipient)
UncivGame.Current.worldScreen.shouldUpdate = true
} }
return UnitAction(UnitActionType.GiftUnit, uncivSound = UncivSound.Silent, action = giftAction) return UnitAction(UnitActionType.GiftUnit, uncivSound = UncivSound.Silent, action = giftAction)

View File

@ -79,10 +79,12 @@ Unless otherwise specified, all the following are from [the Noun Project](https:
* [Ship](https://thenounproject.com/search/?q=ship&i=800131) By Mungang Kim for Ship of the Line * [Ship](https://thenounproject.com/search/?q=ship&i=800131) By Mungang Kim for Ship of the Line
* [Lance](https://thenounproject.com/search/?q=Lance&i=440122) By parkjisun for Lancer * [Lance](https://thenounproject.com/search/?q=Lance&i=440122) By parkjisun for Lancer
* [Sword](https://thenounproject.com/search/?q=saber&i=1174742) By Daniela Baptista for Sipahi * [Sword](https://thenounproject.com/search/?q=saber&i=1174742) By Daniela Baptista for Sipahi
* [Helmet](https://thenounproject.com/term/helmet/1514355/) by Robert Bjurshagen for Hakkapeliitta
### Industrial Era ### Industrial Era
* [Rifle](https://thenounproject.com/search/?q=Rifle&i=604291) By Chameleon Design for Rifleman * [Rifle](https://thenounproject.com/search/?q=Rifle&i=604291) By Chameleon Design for Rifleman
* [Bayonet](https://thenounproject.com/term/bayonet/3101681/) By food lover for Carolean
* [Horse](https://thenounproject.com/search/?q=Horse&i=1023745) By Bakunetso Kaito for Cavalry * [Horse](https://thenounproject.com/search/?q=Horse&i=1023745) By Bakunetso Kaito for Cavalry
* [horse racing](https://thenounproject.com/antimso/uploads/?i=2427932) By Sergio Morozov for Cossack * [horse racing](https://thenounproject.com/antimso/uploads/?i=2427932) By Sergio Morozov for Cossack
* [Artillery](https://thenounproject.com/search/?q=Artillery&i=1165261) By Creative Mania * [Artillery](https://thenounproject.com/search/?q=Artillery&i=1165261) By Creative Mania
@ -518,6 +520,7 @@ Unless otherwise specified, all the following are from [the Noun Project](https:
* [Sun](https://thenounproject.com/search/?q=inca&i=910770) by Made x Made for Inca * [Sun](https://thenounproject.com/search/?q=inca&i=910770) by Made x Made for Inca
* [Sun symbol black](https://en.wikiquote.org/wiki/File:Sun_symbol_black.svg) by Eddo for The Huns * [Sun symbol black](https://en.wikiquote.org/wiki/File:Sun_symbol_black.svg) by Eddo for The Huns
* [Lion](https://thenounproject.com/search/?q=lion&i=76154) by Nikki Rodriguez for The Netherlands * [Lion](https://thenounproject.com/search/?q=lion&i=76154) by Nikki Rodriguez for The Netherlands
* [Three Crowns](https://thenounproject.com/search/?q=three+crowns&i=1155972) by Daniel Falk for Sweden
## Promotions ## Promotions