… | |
… | |
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 | const char *yield; |
|
|
166 | |
|
|
167 | yield = get_ob_key_value (tmp, "on_use_yield"); |
165 | if (const char *yield = get_ob_key_value (tmp, "on_use_yield")) |
168 | |
|
|
169 | if (yield) |
|
|
170 | get_archetype (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR); |
166 | archetype::get (yield)->insert_at (tmp, tmp, INS_BELOW_ORIGINATOR); |
171 | } |
167 | } |
172 | |
168 | |
173 | /** |
169 | /** |
174 | * Handles applying a potion. |
170 | * Handles applying a potion. |
175 | */ |
171 | */ |