Untitled
public text v1 · immutable while i <= 6:
value = getattr(item_detail, 'resist_%d' % i)
if value:
if value < 0:
sign = '-'
value = value[1:]
else:
sign = '+'
str = strings['item_resist_single'] % (sign, value, strings['spell_school%d_cap'] % i)
item_detail.resists.append(str)
i += 1