All pastes #188054 Raw Edit

Untitled

public text v1 · immutable
·published 2006-10-01 18:56 UTC
rendered paste body
		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