Page 1 of 1

A small :P problem with the ruleset

Posted: Tue Jan 13, 2015 5:58 pm
by wieder
Small wonders seem to have a global effect or so I was told. Does anyone have idea how is this possible? I'm trying to figure it out but no luck yet.

Posted: Tue Jan 13, 2015 6:18 pm
by HanduMan
For example?

Posted: Tue Jan 13, 2015 6:42 pm
by wieder
I was told that there is no -1 penalty in despotism since the other players have built the pyramids.

Posted: Tue Jan 13, 2015 7:28 pm
by HanduMan
Or maybe someone invented railroad?

Posted: Tue Jan 13, 2015 11:13 pm
by wieder
Apparently some effects were missing. Those were added to the ruleset and synced to github. Restart tomorrow.

Posted: Wed Jan 14, 2015 6:25 am
by HanduMan
Those missing effects will not fix the pyramids issue though. There is a problem with the definition of the penalty effects. In effects.ruleset, the regs are ANDed but nregs are ORed.

The effect for Despotism is:

Code: Select all

; Railroad because makes Pyramids obsolete
[effect_gov_tile_penalty_despotism]
name    = "Output_Penalty_Tile"
value   = 2
reqs    =
    { "type", "name", "range"
      "Gov", "Despotism", "Player"
    }
nreqs   =
    { "type", "name", "range"
      "Building", "Pyramids", "Player"
      "Tech", "Railroad", "World"
    }
So, there is a -1 penalty on worked tile with resource value more than 2 if player is running their civilization on Despotism.
The effect is cancelled if the player has built the pyramids OR any player has invented the railroad tech.

I think the railroad should be removed from nreqs and new effects (for both despo & tribal) added to re-instate the effect in case of pyramids gone obsolete:

Code: Select all

; The basic penalty effect cancelled by pyramids
[effect_gov_tile_penalty_despotism]
name    = "Output_Penalty_Tile"
value   = 2
reqs    =
    { "type", "name", "range"
      "Gov", "Despotism", "Player"
    }
nreqs   =
    { "type", "name", "range"
      "Building", "Pyramids", "Player"
    }

; Railroad makes Pyramids obsolete
[effect_gov_tile_penalty_despotism_0]
name    = "Output_Penalty_Tile"
value   = 2
reqs    =
    { "type", "name", "range"
      "Gov", "Despotism", "Player"
      "Building", "Pyramids", "Player"
      "Tech", "Railroad", "World"
    }
;nreqs   =
;    { "type", "name", "range"
;    }

Posted: Wed Jan 14, 2015 9:24 am
by wieder
Thanks for figuring it out!

Since it's that simple, I guess we don't really need to do anything now. Maybe for the next game but not for LT34. It would be highly unlikely that we could have rails and someone still in despotism while not having built the pyramids.