… | |
… | |
194 | |
194 | |
195 | value_item = query_cost (item, NULL, F_TRUE | F_IDENTIFIED | F_NOT_CURSED); |
195 | value_item = query_cost (item, NULL, F_TRUE | F_IDENTIFIED | F_NOT_CURSED); |
196 | if (attempt_shadow_alchemy && value_item > value_ingredients) |
196 | if (attempt_shadow_alchemy && value_item > value_ingredients) |
197 | { |
197 | { |
198 | #ifdef ALCHEMY_DEBUG |
198 | #ifdef ALCHEMY_DEBUG |
199 | # ifndef WIN32 |
|
|
200 | LOG (llevDebug, |
199 | LOG (llevDebug, |
201 | "Forcing failure for shadow alchemy recipe because price of ingredients (%llu) is less than price of result (%llu).\n", |
200 | "Forcing failure for shadow alchemy recipe because price of ingredients (%llu) is less than price of result (%llu).\n", |
202 | value_ingredients, value_item); |
201 | value_ingredients, value_item); |
203 | # else |
|
|
204 | LOG (llevDebug, |
|
|
205 | "Forcing failure for shadow alchemy recipe because price of ingredients (%I64d) is less than price of result (%I64d).\n", |
|
|
206 | value_ingredients, value_item); |
|
|
207 | # endif |
|
|
208 | #endif |
202 | #endif |
209 | } |
203 | } |
210 | /* roll the dice */ |
204 | /* roll the dice */ |
211 | else if ((float) (random_roll (0, 101, caster, PREFER_LOW)) <= 100.0 * success_chance) |
205 | else if ((float) (random_roll (0, 101, caster, PREFER_LOW)) <= 100.0 * success_chance) |
212 | { |
206 | { |