From 3dcde1554a1a93b860eb972e60d898e84b24818d Mon Sep 17 00:00:00 2001 From: Quietust Date: Tue, 23 Jun 2020 13:36:00 -0600 Subject: [PATCH] Update xml, fix reaction_product::produce() parms --- plugins/tweak/tweaks/reaction-gloves.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/tweak/tweaks/reaction-gloves.h b/plugins/tweak/tweaks/reaction-gloves.h index 6ef3c6ccf..82890239c 100644 --- a/plugins/tweak/tweaks/reaction-gloves.h +++ b/plugins/tweak/tweaks/reaction-gloves.h @@ -7,11 +7,15 @@ struct reaction_gloves_hook : df::reaction_product_itemst { typedef df::reaction_product_itemst interpose_base; - DEFINE_VMETHOD_INTERPOSE(void, produce, (df::unit *unit, std::vector *out_products, std::vector *out_items, std::vector *in_reag, std::vector *in_items, int32_t quantity, df::job_skill skill, df::historical_entity *entity, int32_t unk_1, df::world_site *site, void *unk_2)) + DEFINE_VMETHOD_INTERPOSE(void, produce, (df::unit *unit, + std::vector *out_products, std::vector *out_items, + std::vector *in_reag, std::vector *in_items, + int32_t quantity, df::job_skill skill, int32_t quality, + df::historical_entity *entity, df::world_site *site, std::vector *unk_2)) { if (item_type != df::item_type::GLOVES) { - INTERPOSE_NEXT(produce)(unit, out_products, out_items, in_reag, in_items, quantity, skill, entity, unk_1, site, unk_2); + INTERPOSE_NEXT(produce)(unit, out_products, out_items, in_reag, in_items, quantity, skill, quality, entity, site, unk_2); return; } @@ -45,7 +49,7 @@ struct reaction_gloves_hook : df::reaction_product_itemst { count *= num_hands; } - INTERPOSE_NEXT(produce)(unit, out_products, &out_items_temp, in_reag, in_items, quantity, skill, entity, unk_1, site, unk_2); + INTERPOSE_NEXT(produce)(unit, out_products, &out_items_temp, in_reag, in_items, quantity, skill, quality, entity, site, unk_2); count = old_count; // If the reaction was somehow asked to produce multiple sets (due to excess inputs), multiply the outputs too