mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Style fixes
A bunch of style fixes. Mostly white space and style import order tweaks, but a few other stylistic changes are present too.
This commit is contained in:
9
Items.py
9
Items.py
@@ -1,7 +1,7 @@
|
||||
from BaseClasses import World, Item
|
||||
import random
|
||||
import logging
|
||||
|
||||
from BaseClasses import Item
|
||||
|
||||
|
||||
def ItemFactory(items):
|
||||
ret = []
|
||||
@@ -14,13 +14,12 @@ def ItemFactory(items):
|
||||
advancement, priority, type, code, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit = item_table[item]
|
||||
ret.append(Item(item, advancement, priority, type, code, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit))
|
||||
else:
|
||||
logging.getLogger('').warning('Unknown Item: %s' % item)
|
||||
logging.getLogger('').warning('Unknown Item: %s', item)
|
||||
return None
|
||||
|
||||
if singleton:
|
||||
return ret[0]
|
||||
else:
|
||||
return ret
|
||||
return ret
|
||||
|
||||
|
||||
# Format: Name: (Advancement, Priority, Type, ItemCode, Pedestal Hint Text, Pedestal Credit Text, Sick Kid Credit Text, Zora Credit Text, Witch Credit Text, Flute Boy Credit Text)
|
||||
|
||||
Reference in New Issue
Block a user