QTfrontend/ui/page/pageeditteam.cpp
changeset 12242 09010333c947
parent 12123 4027903ff3e7
child 12244 45c83c88ac4b
--- a/QTfrontend/ui/page/pageeditteam.cpp	Thu Apr 13 05:44:23 2017 +0200
+++ b/QTfrontend/ui/page/pageeditteam.cpp	Thu Apr 13 06:25:41 2017 +0200
@@ -347,7 +347,12 @@
     m_playerHash = playerHash;
     lazyLoad();
 
+    // Mostly create a default team, with 2 important exceptions:
     HWTeam newTeam(name);
+    // Randomize grave to make it less likely that default teams have equal graves (important for resurrector)
+    newTeam.setGrave(HWNamegen::getRandomGrave());
+    // Randomize fort for greater variety in fort mode with default teams
+    newTeam.setFort(HWNamegen::getRandomFort());
     loadTeam(newTeam);
 }