adaneslavo / More-Unique-Components-for-VP

Adds 3rd and 4th unique component to each civilization.
1 stars 6 forks source link

Bought/produced Sea Beggars don't get Prize Ships, only upgraded ones do #158

Closed Enrico-Swagolo closed 6 years ago

Enrico-Swagolo commented 6 years ago

Basically Title. It wasn't happening on vanilla 15/07 version with the Dutch (bought and produced Baggers all had the promo), so I think some code about the promotion is broken here because it's the only thing that changed and the only other mod I use (excluding VP promo icons and other such small stuff that affects nothing in this regard).

Also, you can get Prize Ships with a level up. I think lvl2 or lvl1 melee ship city attack tier allows it to be taken. At least on Beggars, that is, they're allowed to get what they normally get for free. Weird. I can buy a caraval and check if it does too

Enrico-Swagolo commented 6 years ago

Checked, got Caravel, Skull line didn't allow them to get Prize Ships, so only Sea Beggars - bought, produced, not upgraded - have the access, but they don't get it for free

Enrico-Swagolo commented 6 years ago

Tersane IS guilty! I removed the line about Prize Ships from Tersane.lua, and reloading the save and buying Sea Beggar gave him his well-deserved Prize Ships.

pineappledan commented 6 years ago

Resolved! Inserted a check that aborts the Tersane's lua if the unit built was a sea beggar