mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 22:58:50 +07:00
Add submarine and refrigeration. Submarine is not invisible yet.
This commit is contained in:
@ -63,6 +63,7 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
|
||||
* [Tank](https://thenounproject.com/term/tank/1287510/) By corpus delicti for Landship
|
||||
* [Warship](https://thenounproject.com/term/warship/1597474/) By zidney for Destroyer
|
||||
* [Battleship](https://thenounproject.com/search/?q=battleship&i=1986807) By Vitaliy Gorbachev, KZ for Battleship
|
||||
* [Submarine](https://thenounproject.com/search/?q=submarine&i=589519) By Hea Poh Lin, MY
|
||||
|
||||
### Great People
|
||||
|
||||
@ -346,6 +347,7 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
|
||||
* [Plastic](https://thenounproject.com/term/plastic/478826/) By Yu luck
|
||||
* [Microphone](https://thenounproject.com/term/microphone/470266/) By Viktor Vorobyev for Mass Media
|
||||
* [Flight](https://thenounproject.com/term/flight/1014306/) By Genius Icons
|
||||
* [Refridgerator](https://thenounproject.com/search/?q=refridgerator&i=1188873) By b farias, CL
|
||||
|
||||
### Information
|
||||
* [Pill](https://thenounproject.com/term/pill/780458/) By Alex Arseneau for Pharmaceuticals
|
||||
|
BIN
android/Images/TechIcons/Refrigeration.png
Normal file
BIN
android/Images/TechIcons/Refrigeration.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
BIN
android/Images/UnitIcons/Submarine.png
Normal file
BIN
android/Images/UnitIcons/Submarine.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 968 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 819 KiB After Width: | Height: | Size: 825 KiB |
@ -356,13 +356,12 @@
|
||||
techCost: 4505,
|
||||
buildingCost:500,
|
||||
wonderCost:1250,
|
||||
techs:[/*
|
||||
techs:[
|
||||
{
|
||||
name:"Refrigeration",
|
||||
row:4,
|
||||
prerequisites:["Electricity"],
|
||||
baseDescription:"Does nothing since we have no sea tiles - In theory, allows construction of offshore platforms and submarines"
|
||||
},*/
|
||||
row:3,
|
||||
prerequisites:["Biology", "Electricity"], //to do: offshore platform should need this
|
||||
},
|
||||
{
|
||||
name:"Replacable Parts",
|
||||
row:4,
|
||||
@ -395,7 +394,7 @@
|
||||
{
|
||||
name:"Electronics",
|
||||
row:5,
|
||||
prerequisites:["Radio"],
|
||||
prerequisites:["Replacable Parts", "Flight"],
|
||||
},
|
||||
{
|
||||
name:"Mass Media",
|
||||
|
@ -483,6 +483,17 @@
|
||||
uniques:["Indirect Fire", "Bonus vs City 30%"],
|
||||
hurryCostModifier:20
|
||||
},
|
||||
{
|
||||
name: "Submarine",
|
||||
unitType: "WaterRanged",
|
||||
movement: 5,
|
||||
strength: 35,
|
||||
rangedStrength: 60,
|
||||
cost: 325,
|
||||
requiredTech:"Refrigeration",
|
||||
uniques:["Bonus as Attacker 75%", "Invisible to others", "Can Only Attack Water"], //to do: 3 uniques
|
||||
hurryCostModifier:20
|
||||
},
|
||||
{
|
||||
name:"Great War Infantry",
|
||||
unitType:"Melee",
|
||||
|
@ -88,6 +88,12 @@ class BattleDamage{
|
||||
else modifiers[text] = BDM.modificationAmount
|
||||
}
|
||||
}
|
||||
|
||||
for (ability in attacker.unit.getUniques()) {
|
||||
val regexResult = Regex("""Bonus as Attacker (\d*)%""").matchEntire(ability) //to do: extend to defender, and penalyy
|
||||
if (regexResult == null) continue
|
||||
modifiers["Attacker Bonus"] = regexResult.groups[1]!!.value.toFloat() / 100
|
||||
}
|
||||
}
|
||||
|
||||
if (attacker.isMelee()) {
|
||||
|
Reference in New Issue
Block a user