Desert Hardship mod

xooll

Chieftain
Joined
Jun 3, 2011
Messages
77
Edit 8/30/11: New "Hardship 1.4" no longer exempts barbarians from damage.
Edit 6/23/11: New "Hardship" version causes damage in desert, jungle, tundra, and ice.

This small mod makes it more dangerous for units to cross a large desert. Any unit ending a turn in a desert takes 5% damage. If it spends 20 turns on desert tiles, it will automatically earn the new Survivalist I promotion, which prevents desert hardship damage.

I have made this as easy as I can to merge with other mods. Instructions are included in the readme file.

Massive respect to anyone who can make the AIs worry more about entering deserts!
 
Nice mod :)

Instead of hard coding '54' you could use

Code:
iSurvialist1 = CvUtil.findInfoTypeNum(gc.getPromotionInfo,gc.getNumPromotionInfos(),'PROMOTION_SURVIVALIST1')
 
Easily done. What do you think, should the damage from harsh conditions be the same across the board, or should it vary depending on the terrain?
 
Well, it would be nice if it varied by terrain. That way, various civs could could have UUs that start with the promotion that negates the particular hardship. In a WW2 mod, Soviet and Finnish units could start immune to hardship from tundra, Barbs immune to Jungle hardship, Egyptian units immune to dessert hardship.

Thanks for doing this, btw.
 
Hi,

Nice mod component. :goodjob:

Will you create the same with "Snow" and "Jungle" ? It could be a nice add-on.

Among the suggestions:
- the health loss could be lowered with some techs (medicine progress).
- the number of turns to earn the free promo could be lowered with tech(s), trait(s) or civic(s) or building(s)/wonder(s).


In all case, it stays a very good idea. :goodjob:
 
What techs should be attached to hardship reduction/elimination? Medicine for jungle makes sense, but I'm not sure what others. Maybe combustion for tundra/ice?

Also, I'm currently working on making units built in a city whose terrain is largely desert/jungle/tundra/ice get the promotion for free.
 
A new version with hardship in desert, jungle, tundra, and ice/snow is available.
I'm still working on the hometown-advantage aspect I referred to in the last post, and I'm not sure what techs to use to reduce/remove the damage, but these may appear in the next version.
 
Ok, "hometown advantage" aspect is now working. Here's the latest version.
 

Attachments

  • Hardship 1.2.zip
    34.9 KB · Views: 86
Fixing a bug where the guys who should get Arctic Survivalist are getting Desert Survivalist instead (this is what I get for copy-pasting too much :mischief:).
Also, other civs' survivalist promotion messages will no longer show up for the player.

Replace the existing Hardship.py file with this one.
 

Attachments

  • Hardship.zip
    1.5 KB · Views: 85
I haven't tried it (and don't know much about RFC), but it should be combinable with most anything--it has no DLL component or anything messy like that. The only thing that I think is likely to trip it up is new terrain types.
 
Okay.. I just need to copy that Hardship.py right? There's nothing else I need to copy or paste, like the CivEvents what? nice then! Thanks :)
 
You need everything from the above "Hardship 1.2.zip" file (CvEventManager.py, Hardship.py, and Civ4PromotionInfos.xml), and then replace that "Hardship.py" with the latest one...

You know what, why don't I just repost it as a complete set with the bugs fixed. Probably should've done that to begin with instead of just the .py file... :blush:
 

Attachments

  • Hardship 1.3.zip
    36.5 KB · Views: 92
What version of the .zip file did you use?
Are they standing still in harsh terrain? The damage done by harsh terrain is less than the amount healed by standing still.
Have you tried all of the harsh terrain types (desert, jungle, tundra, snow)?
If they're in desert, are they away from any fresh water?
 
I'm using 1.3 and trying to merge it with my Kuwait mod. They are definetly away from fresh water and spend time in the desert. I didn't realize that they need to be movingto show damage. I'll check it again. I haven't tried more than the desert terrain though.
 
Top Bottom