From 38daeb18834cc8b85b8fea83bcaced2903efe49c Mon Sep 17 00:00:00 2001 From: Warmist Date: Fri, 7 Jun 2024 10:15:23 +0300 Subject: [PATCH] update to new structures --- plugins/building-hacks.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/building-hacks.cpp b/plugins/building-hacks.cpp index f8c968ff75..3f38529bba 100644 --- a/plugins/building-hacks.cpp +++ b/plugins/building-hacks.cpp @@ -101,8 +101,8 @@ struct work_hook : df::building_workshopst{ //try getting ref, if not return from definition if (ref) { - info->produced = ref->unk_1; - info->consumed = ref->unk_2; + info->produced = ref->race; + info->consumed = ref->caste; return true; } else @@ -131,18 +131,18 @@ struct work_hook : df::building_workshopst{ //if we have a setting then update it, else create a new ref for dynamic power tracking if (ref) { - ref->unk_1 = produced; - ref->unk_2 = consumed; + ref->race = produced; + ref->caste = consumed; } else { ref = df::allocate(); - ref->unk_1 = produced; - ref->unk_2 = consumed; + ref->race = produced; + ref->caste = consumed; general_refs.push_back(ref); } } - DEFINE_VMETHOD_INTERPOSE(uint32_t,getImpassableOccupancy,()) + DEFINE_VMETHOD_INTERPOSE(df::tile_building_occ,getImpassableOccupancy,()) { if(auto def = find_def()) {