… | |
… | |
320 | { |
320 | { |
321 | LOG (llevDebug, "Object %s still has last_heal set, not gen_sp_armour\n", op->debug_desc ()); |
321 | LOG (llevDebug, "Object %s still has last_heal set, not gen_sp_armour\n", op->debug_desc ()); |
322 | op->gen_sp_armour = op->last_heal; |
322 | op->gen_sp_armour = op->last_heal; |
323 | op->last_heal = 0; |
323 | op->last_heal = 0; |
324 | } |
324 | } |
325 | if (editor) |
325 | |
326 | ip = 0; |
|
|
327 | else |
|
|
328 | ip = calc_item_power (op, 0); |
326 | ip = calc_item_power (op, 0); |
329 | /* Legacy objects from before item power was in the game */ |
327 | /* Legacy objects from before item power was in the game */ |
330 | if (!op->item_power && ip) |
328 | if (!op->item_power && ip) |
331 | { |
329 | { |
332 | if (ip > 3) |
330 | if (ip > 3) |
333 | { |
331 | { |