Skip to content

[Variant creation] Changing country names can create duplicates in adjudicatorPreGame file #31

Description

@gkykc

When working on the variant World Diplomacy X, I changed the country name "Kenya" to "Japan" and "Near-East" to "Near East". After these changes, the following code still existed in the /classes/adjudicatorPreGame.php file, while it should have been deleted:

'Kenya' => array('Kenya' =>'Army' , 'Uganda' =>'Army' , 'Tanzania' =>'Fleet'),
'Near-East' => array('Iraq' =>'Army' , 'Saudi Arabia' =>'Army' , 'Syria' =>'Army' ),

But Japan and Near-East were added as countries in this file, too.

This is the only place where the duplicates emerged; in all other places, "Kenya" and "Near-East" were not recognized as powers anymore.

It is noteworthy here that I have changed multiple different country names, and that didn't cause duplicates to emerge. I don't know why the duplicates emerged in some cases while they didn't in others.

  • Mercy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions