111 result |= 0x200; |
111 result |= 0x200; |
112 if (schemeData(10).toBool()) |
112 if (schemeData(10).toBool()) |
113 result |= 0x400; |
113 result |= 0x400; |
114 if (schemeData(11).toBool()) |
114 if (schemeData(11).toBool()) |
115 result |= 0x800; |
115 result |= 0x800; |
|
116 if (schemeData(12).toBool()) |
|
117 result |= 0x2000; |
116 |
118 |
117 return result; |
119 return result; |
118 } |
120 } |
119 |
121 |
120 quint32 GameCFGWidget::getInitHealth() const |
122 quint32 GameCFGWidget::getInitHealth() const |
121 { |
123 { |
122 return schemeData(14).toInt(); |
124 return schemeData(15).toInt(); |
123 } |
125 } |
124 |
126 |
125 QStringList GameCFGWidget::getFullConfig() const |
127 QStringList GameCFGWidget::getFullConfig() const |
126 { |
128 { |
127 QStringList sl; |
129 QStringList sl; |
128 sl.append("eseed " + pMapContainer->getCurrentSeed()); |
130 sl.append("eseed " + pMapContainer->getCurrentSeed()); |
129 sl.append(QString("e$gmflags %1").arg(getGameFlags())); |
131 sl.append(QString("e$gmflags %1").arg(getGameFlags())); |
130 sl.append(QString("e$damagepct %1").arg(schemeData(12).toInt())); |
132 sl.append(QString("e$damagepct %1").arg(schemeData(13).toInt())); |
131 sl.append(QString("e$turntime %1").arg(schemeData(13).toInt() * 1000)); |
133 sl.append(QString("e$turntime %1").arg(schemeData(14).toInt() * 1000)); |
132 sl.append(QString("e$minestime %1").arg(schemeData(17).toInt() * 1000)); |
134 sl.append(QString("e$minestime %1").arg(schemeData(18).toInt() * 1000)); |
133 sl.append(QString("e$landadds %1").arg(schemeData(18).toInt())); |
135 sl.append(QString("e$landadds %1").arg(schemeData(19).toInt())); |
134 sl.append(QString("e$sd_turns %1").arg(schemeData(15).toInt())); |
136 sl.append(QString("e$sd_turns %1").arg(schemeData(16).toInt())); |
135 sl.append(QString("e$casefreq %1").arg(schemeData(16).toInt())); |
137 sl.append(QString("e$casefreq %1").arg(schemeData(17).toInt())); |
136 sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter())); |
138 sl.append(QString("e$template_filter %1").arg(pMapContainer->getTemplateFilter())); |
137 |
139 |
138 QString currentMap = pMapContainer->getCurrentMap(); |
140 QString currentMap = pMapContainer->getCurrentMap(); |
139 if (currentMap.size() > 0) |
141 if (currentMap.size() > 0) |
140 sl.append("emap " + currentMap); |
142 sl.append("emap " + currentMap); |