A small :P problem with the ruleset

Finished (teamless)
Post Reply
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

A small :P problem with the ruleset

Post 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.
User avatar
HanduMan
Member
Posts: 115
Joined: Thu Jan 01, 1970 12:00 am

Post by HanduMan »

For example?
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

Post by wieder »

I was told that there is no -1 penalty in despotism since the other players have built the pyramids.
User avatar
HanduMan
Member
Posts: 115
Joined: Thu Jan 01, 1970 12:00 am

Post by HanduMan »

Or maybe someone invented railroad?
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

Post by wieder »

Apparently some effects were missing. Those were added to the ruleset and synced to github. Restart tomorrow.
User avatar
HanduMan
Member
Posts: 115
Joined: Thu Jan 01, 1970 12:00 am

Post 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"
;    }
wieder
Member
Posts: 1781
Joined: Thu Jan 01, 1970 12:00 am

Post 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.
Post Reply