Skip to content

Commit 60e2515

Browse files
committed
Tweaky tweak
1 parent 967bef5 commit 60e2515

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

printouts/equipment.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,27 +163,37 @@ def decide_scm_shop(self):
163163
# combine shops to reasonable sizes
164164
if not shop_type:
165165
stance = 'any' # off to the general stores
166+
166167
if eq_type == 'armor':
167168
if v == 'loa':
168169
rarity = None # combined normal/special shops for loa armors
169170
if shop_type in ['he', 'gl', 'bo'] and not (v == 'v' and stance == 'f'):
170171
shop_type = 'hgb' # separate he/gl/bo shops only for vanilla fighters, else combine
171172
if stance == 'r' and rarity == 'ru' and shop_type != 'sh':
172173
shop_type = 'amr' # combine all special ranger armors
174+
173175
if eq_type == 'weapon':
174-
if self.is_2h and self.weapon_kind == 'melee' and shop_type != 'st':
175-
shop_type = '2h'
176-
if shop_type == 'scythe':
177-
shop_type = 'ax'
178-
if v == 'loa' and shop_type in ['cb', 'dg', 'hm', 'mc']:
179-
shop_type = 'cdhm' # combine minor melee weapon types
180-
if v == 'v' and shop_type in ['db', 'dg', 'hm']:
181-
shop_type = 'cdh' # in vanilla there are enough maces to warrant a separate shop
176+
if v == 'v' and stance == 'f' and shop_type in ['cb', 'dg', 'hm', 'st', 'scythe']:
177+
shop_type = 'cdhss' # combine small weapon groups - clubs daggers hammers melee-staves scythes
178+
rarity = None
179+
if v == 'v' and shop_type == 'ss':
180+
rarity = None
181+
if self.weapon_kind == 'melee' and stance == 'f':
182+
if v == 'loa':
183+
if self.is_2h:
184+
shop_type = '2h'
185+
else:
186+
shop_type = '1h'
187+
rarity = None
188+
else:
189+
if self.is_2h:
190+
shop_type += '2h'
182191
if shop_type in ['cw', 'minigun']:
183192
shop_type = 'cm'
184193
rarity = None
185194
if v == 'loa' and stance in ['r', 'm']:
186195
rarity = None
196+
187197
if stance == 'any':
188198
# general store: all-in-one
189199
v = 'x' # even vanilla & loa
@@ -275,7 +285,7 @@ def load_dsx_armor_template_names(bits: Bits) -> list[str]:
275285
def load_armor_templates(bits: Bits) -> tuple[list[str], list[Template]]:
276286
dsx_armor_template_names = load_dsx_armor_template_names(bits)
277287
armor_templates = list()
278-
# armor_templates.extend(bits.templates.get_leaf_templates('armor').values())
288+
armor_templates.extend(bits.templates.get_leaf_templates('armor').values())
279289
armor_templates.extend(bits.templates.get_leaf_templates('weapon').values())
280290
return dsx_armor_template_names, armor_templates
281291

0 commit comments

Comments
 (0)