Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
As per @regner
  • Loading branch information
Ebag333 committed Oct 13, 2016
1 parent dbe6c6b commit 053db46
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions eos/const/eve.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Attribute(IntEnum):

# This is a static mapping of data from dmgattribs
# if attribs are added/updated, this will have to be manually changed

mass = 4
hp = 9
power_output = 11
Expand Down Expand Up @@ -105,7 +105,7 @@ class Attribute(IntEnum):
required_skill_5 = 1289
required_skill_6 = 1290

#Ship Groups
# Ship Groups
can_fit_ship_group_1 = 1298
can_fit_ship_group_2 = 1299
can_fit_ship_group_3 = 1300
Expand All @@ -117,7 +117,7 @@ class Attribute(IntEnum):
can_fit_ship_group_9 = 2065
can_fit_ship_group_10 = 2396

#Ship Types
# Ship Types
can_fit_ship_type_1 = 1302
can_fit_ship_type_2 = 1303
can_fit_ship_type_3 = 1304
Expand Down
24 changes: 16 additions & 8 deletions eos/fit/restriction_tracker/register/holder_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,31 @@
Attribute.implantness in item.attributes
),
ModuleHigh: lambda item: (
(item.category == Category.module or
item.category == Category.structureModule) and
(
item.category == Category.module or
item.category == Category.structureModule
) and
Slot.module_high in item.slots
),
ModuleMed: lambda item: (
(item.category == Category.module or
item.category == Category.structureModule) and
(
item.category == Category.module or
item.category == Category.structureModule
) and
Slot.module_med in item.slots
),
ModuleLow: lambda item: (
(item.category == Category.module or
item.category == Category.structureModule) and
(
item.category == Category.module or
item.category == Category.structureModule
) and
Slot.module_low in item.slots
),
Rig: lambda item: (
(item.category == Category.module or
item.category == Category.structureModule) and
(
item.category == Category.module or
item.category == Category.structureModule
) and
Slot.rig in item.slots
),
Ship: lambda item: (
Expand Down
4 changes: 2 additions & 2 deletions eos/fit/restriction_tracker/register/ship_type_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Attribute.can_fit_ship_type_5,
Attribute.can_fit_ship_type_6,
Attribute.can_fit_ship_type_7,
Attribute.fits_to_shiptype
Attribute.fits_to_shiptype,
)
GROUP_RESTRICTION_ATTRS = (
Attribute.can_fit_ship_group_1,
Expand All @@ -48,7 +48,7 @@
Attribute.can_fit_ship_group_7,
Attribute.can_fit_ship_group_8,
Attribute.can_fit_ship_group_9,
Attribute.can_fit_ship_group_10
Attribute.can_fit_ship_group_10,
)


Expand Down

0 comments on commit 053db46

Please sign in to comment.