Icebreaker units

Anarchemitis

Chieftain
Joined
Aug 9, 2014
Messages
1
As it stands Ice is an unpassable terrain type, unless you're a submarine or aircraft. In reality this is not the case.
The idea came from a thread I saw on Reddit, which proposed a new unit which could render Ice tiles into Ocean tiles. The obvious drawbacks of this would be AI abuse, and the fact that the mini-map wouldn't update. So I pondered a bit, and came up with this:

Icebreakers is a Level 1 Promotion available to Destroyers and Cargo Ships. The promotion can be activated on these ships if Combustion has been researched, and only if the ship you want to promote is located in a city you own, that has a Shipyard. The Promotion costs 300 Gold but no XP (since Cargo Ships do not have xp). It allows the unit to move through Ice (which has a movement cost of 2, like hills and jungles on land) and leave behind a trail of broken Ice which lasts for 1 turn, during which, other naval units can traverse the broken ice.

Recently broken ice would have one appearance as a tile with a clear cut path through them, and broken ice which is going to return to being solid at the end of the turn will have a different appearance, with chunks starting to fill the gap. There is also a permanent movement penalty of -2 to Cargo Ships and -3 to Destroyers which have the Icebreaker Promotion-- in real life, icebreaker hulls are less hydrodynamically efficient than regular sea-going hulls, and are much heavier, cutting into fuel efficiency.

Other naval units can follow in the trail behind the icebreaker ship with the default movement cost for water navigation, and can disembark onto land or snow if it is adjacent to the broken ice tile they occupy. If the unit does not move on to recently broken ice tiles, or off of ice by the end of the next turn, they will be sent back to the body of water they came from (still embarked if they are such), unless this distance is greater than 8 tiles, in which case that unit will be destroyed by floes.

An ice breaker ship can remain idle in ice, because any ice tile it is on will stay recently broken as long as it sits there. Recently broken ice, and soon-to-solidify ice do not change in the map, since they are like a temporary tile improvement.

How possible/impossible/difficult would such a Mod be?
The things I can foresee there are
1. inventing a promotion that is specific to two units, and requires a technology, money and being in a certain location, rather than XP.
2. creating two kinds of tile changes for ice.
3. changing how destroyers and cargo ships can react to ice.
However I have absolutely zero experience in Lua, C++ or modding Civilization in general, so even if it is possible, I wouldn't know where to get started.
 
First, this subforum is for completed mod components. I've alerted the moderators to move it.

The gameplay aspect isn't too bad. Allowing land or sea units to cross ice is already a feature exposed by whoward69's Various Mod Components DLL. It would be fairly easy to adapt his Terrain Crossing promotions mod, which includes an "Ice Breaker" promotion, to your purposes.

The broken ice graphics are going to be quite difficult, however. Some features, including ice, don't update graphically if you add or remove them from the hex until you save and reload the game. Water has the same problem, which is why we don't have a true canal mod. Even if you wanted to, say, apply a 2D decal to the ice to represent that the ice is broken and to show the allowed direction of travel, you'd still need lots of variations based on which direction the travel occurred, and not just traveling straight in 3 directions, but also all the variations of changing directions after moving into the hex, and even more for when the unit returns to the hex and then leaves in a different direction; then double that for the re-freezing versions.
 
Back
Top Bottom