clean wild encounter code

This commit is contained in:
garak
2019-07-02 21:44:19 -04:00
parent 78a6944a3c
commit 267c71d40e
9 changed files with 28 additions and 269 deletions

View File

@@ -1,25 +1,9 @@
//
#include "wildmoninfo.h"
#include "montabwidget.h"
#include "project.h"
// TODO: remove this necessity
static QMap<int, QString> landPercentages = QMap<int, QString>({
{1, "20"}, {2, "20"},
{3, "10"}, {4, "10"}, {5, "10"}, {6, "10"},
{7, "5"}, {8, "5"},
{9, "4"}, {10, "4"},
{11, "1"}, {12, "1"}
});
void clearTabWidget(QLayout *tab) {
QLayoutItem *item = tab->itemAt(0);
if (item) tab->removeItem(item);
}
WildMonInfo getDefaultMonInfo(Field field) {
WildMonInfo newInfo;
newInfo.active = true;
@@ -48,4 +32,3 @@ WildMonInfo copyMonInfoFromTab(QTableWidget *monTable, Field field) {
return newInfo;
}