* Some objects are affected by being carried. * Make those adjustments here. Called _after_ the object * has been added to the hero's or monster's inventory, * and after hero's intrinsics have been updated. */
| 1184 | * and after hero's intrinsics have been updated. |
| 1185 | */ |
| 1186 | void |
| 1187 | carry_obj_effects(struct obj *obj) |
| 1188 | { |
| 1189 | /* Cursed figurines can spontaneously transform when carried. */ |
| 1190 | if (obj->otyp == FIGURINE) { |
| 1191 | if (obj->cursed && obj->corpsenm != NON_PM |
| 1192 | && !dead_species(obj->corpsenm, TRUE)) { |
| 1193 | attach_fig_transform_timeout(obj); |
| 1194 | } |
| 1195 | } |
| 1196 | } |
| 1197 | |
| 1198 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 1199 |
no test coverage detected