diff --git a/src/outfit.c b/src/outfit.c index c516536..0fe06e6 100644 --- a/src/outfit.c +++ b/src/outfit.c @@ -451,6 +451,10 @@ static void outfit_parseSAmmo(Outfit* tmp, const xmlNodePtr parent) { else if(xml_isNode(node, "damage")) outfit_parseDamage(&tmp->u.amm.dtype, &tmp->u.amm.damage, node); } while((node = node->next)); + + /* Post-processing. */ + tmp->u.amm.resist /= 100.; /* Set it in per one. */ + #define MELEMENT(o,s) if(o) WARN("Outfit '%s' missing '"s"' element", tmp->name) MELEMENT(tmp->u.amm.gfx_space == NULL, "gfx"); MELEMENT((sound_lock != NULL) && (tmp->u.amm.sound == 0), "sound");