Skip to content

Map: Reset Spawnpoints after migration#234

Open
evenly-epic-mule wants to merge 1 commit intoNoctem:developfrom
evenly-epic-mule:map_fix_unknown_spawn
Open

Map: Reset Spawnpoints after migration#234
evenly-epic-mule wants to merge 1 commit intoNoctem:developfrom
evenly-epic-mule:map_fix_unknown_spawn

Conversation

@evenly-epic-mule
Copy link
Contributor

Marking not jet updated spawns as mysteries again

'spawn_id': spawn.spawn_id,
'despawn_time': spawn.despawn_time,
'despawn_time': spawn.despawn_time
if spawn.updated and spawn.updated > conf.LAST_MIGRATION else None,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say truth-testing spawn.updated before the comparison isn't necessary. The default migration time isn't zero and if someone wants to disable migration checks entirely they should set LAST_MIGRATION to 1 or any time before their first scan. So with a valid configuration spawn.updated > conf.LAST_MIGRATION should always fail when spawn.updated fails the truth test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after removing the spawn.updated and I get TypeError: unorderable types: NoneType() > int()
guess I'll have to readd it

@evenly-epic-mule evenly-epic-mule force-pushed the map_fix_unknown_spawn branch from c4a6aec to 0a2ed10 Compare May 6, 2017 07:23
Marking not jet updated spawns as mysteries again
RobTwoThree pushed a commit to RobTwoThree/Monocle that referenced this pull request Dec 25, 2017
Cleaned up duplicate and unused imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants