mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-11 11:26:00 -05:00
Connect wild mon chart to editor
This commit is contained in:
@@ -79,8 +79,11 @@ QWidget *SpinBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewIt
|
||||
editor->setMaximum(this->project->miscConstants.value("max_level_define").toInt());
|
||||
}
|
||||
else if (col == EncounterTableModel::ColumnType::EncounterRate) {
|
||||
// The games multiply the encounter rate value provided here by 16, so the input limit is the max/16.
|
||||
// TODO: Read MAX_ENCOUNTER_RATE?
|
||||
static const int maxEncounterRate = 2880;
|
||||
editor->setMinimum(0);
|
||||
editor->setMaximum(180);
|
||||
editor->setMaximum(maxEncounterRate / 16);
|
||||
}
|
||||
|
||||
return editor;
|
||||
|
||||
Reference in New Issue
Block a user