1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

[154] Spoils of War SP still active after switching to freedom

Discussion in 'Bug Tracking' started by Taroshin, May 12, 2012.

  1. Taroshin

    Taroshin Chieftain

    Joined:
    May 12, 2012
    Messages:
    7
    I just played a game where I'd unlocked Nationalism and taken Spoils of War. I then changed plans and switched to Freedom policy but noticed I was still getting the cultural plunder when capturing cities.
    I was playing as India so it wasn't a Denmark/Jelling Stone issue. After the first time it happened I checked before/after capturing the next town to make sure it wasn't just the message, I was definitely getting the culture added to my pool.
     
  2. Thalassicus

    Thalassicus Bytes and Nibblers

    Joined:
    Nov 9, 2005
    Messages:
    11,057
    Location:
    Texas
    I don't think I can fix this. The bug appears to be in the inaccessible vanilla player:HasPolicy function:
    PHP:
    for policyInfo in GameInfo.Policies("CityCaptureCulture != 0") do
      if 
    player:HasPolicy(policyInfo.IDthen
        CityCaptureYield
    (capturedCity,
          
    YieldTypes.YIELD_CULTURE,
          
    policyInfo.CityCaptureCulture,
          
    policyInfo.CityCaptureCulturePerPop,
          
    policyInfo.CityCaptureCulturePerEra,
          
    policyInfo.CityCaptureCulturePerEraExponent
          
    )
      
    end
    end
     
  3. Taroshin

    Taroshin Chieftain

    Joined:
    May 12, 2012
    Messages:
    7
    No worries Thal, thanks for the reply. It seemed a rare enough situation (switching policies like I did) that I figured I'd mention it in case it was unknown.

    p.s. Love your work and the efforts of all modders involved. :)
     
  4. Thalassicus

    Thalassicus Bytes and Nibblers

    Joined:
    Nov 9, 2005
    Messages:
    11,057
    Location:
    Texas
    By the way, welcome to civfanatics. :goodjob:
     

Share This Page