whowards69s Units-Prospectors (improved)

Serp

King
Joined
Apr 1, 2015
Messages
661
Since whoward did not update one of his mods since one year, the latest version you can download at picknmixmods.com is from Oct 2013.
But whoward did really great work in 2014 with his dll and added an Event, that fires when a unit is captured.

In his Prospectors mod is a note from him:
"If there was an onUnitCaptured() event, we could give the unit's gold to the capturing player, but there isn't, so it will just be lost"
Original mod: http://www.picknmixmods.com/mods/f9abe488-1329-4266-90e3-5b5c613c8f25/mod.html

So I decided to complete this mod and added the event made by whoward69. It was a bit tricky, since the event does not return the capturing player, but I made it. So if the prospector is captured while having gold/ressource, this gold/ressource is not lost, except it is captured by barbarian. (during a Capturing the original unit is deleted and replaced by a new unit).

I also fixed a small "bug". After building a fossick twice at the same tile, a mine/quarry spawned. I fixed this by saving all places from fossicks, so a mine/quarry only spawns, if there was a mine/quarry previously.
And I made it multiplayer compatible.

In addition to that I added some multipliers to the Gold amount. The amount you can find now depends on:
1) Gamespeed
2) Your current Era
3) The distance to one of your towns!
The chance to find a ressource also increased with higher distance.
So that means, the further away your prospector is working, the more output you can get, but the higher the chance of being captured.

Known Bugs:
After the prospector finished his work, the graphic from the ressource he worked on will disappear. I solved this by removing the ressource completely and add it at next turn start again to the game. (if I add it without delay, the graphic do not come back).
If you know a better solution to this problem, please let me know.

Also I'm not sure, if the amounts of gold/chance for ressource are balanced in all combinations.
So please try it out and make suggestions to improve it.

Download it here:
http://forums.civfanatics.com/downloads.php?do=file&id=23989

Note:

Whowards latest dll v66 is required for this mod:
http://www.picknmixmods.com/mods/d1b6328c-ff44-4b0d-aad7-c657f83610cd/mod.html

Changelog::
31.May 2015
- When another player capture the prospector it turns into an worker - Fixed
- I failed to see a function, that is not multiplayer compatible (GetActivePlayer). - Fixed
 
Top Bottom