… | |
… | |
160 | * matching item. |
160 | * matching item. |
161 | **/ |
161 | **/ |
162 | void |
162 | void |
163 | handle_apply_yield (object *tmp) |
163 | handle_apply_yield (object *tmp) |
164 | { |
164 | { |
165 | if (const char *yield = get_ob_key_value (tmp, "on_use_yield")) |
165 | if (shstr yield = tmp->kv (shstr_on_use_yield)) |
166 | archetype::get (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR); |
166 | archetype::get (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR); |
167 | } |
167 | } |
168 | |
168 | |
169 | /** |
169 | /** |
170 | * Handles applying a potion. |
170 | * Handles applying a potion. |