Auto-translated
By default, in all standard templates, with the GPC flag enabled, this algorithm is used:
*Getting the "Town Portal" and "Dimension Door" spells*
*Initial construction of the Guildhall - 0% chance*
*1st upgrade - original chance*
*2nd upgrade - original chance * 2*
*3rd upgrade - original chance * 3*
*4th upgrade - 100% chance*
However, it is possible to configure the template parameters so that "Town Portal"/"Dimension Door" (or any other spell) appears for players in the same upgrade turn, within a specified random range.
Attached is the "6lm10c" template, which is configured in this way - "Town Portal"/"Dimension Door" appears in the "0-3" upgrade of the Guildhall, equally for each player.