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