mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-29 11:26:35 -05:00
clean wild encounter code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user