Skip to content

Commit 135c802

Browse files
committed
update to new structures
1 parent 236b871 commit 135c802

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/building-hacks.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ struct work_hook : df::building_workshopst{
102102
//try getting ref, if not return from definition
103103
if (ref)
104104
{
105-
info->produced = ref->unk_1;
106-
info->consumed = ref->unk_2;
105+
info->produced = ref->race;
106+
info->consumed = ref->caste;
107107
return true;
108108
}
109109
else
@@ -132,18 +132,18 @@ struct work_hook : df::building_workshopst{
132132
//if we have a setting then update it, else create a new ref for dynamic power tracking
133133
if (ref)
134134
{
135-
ref->unk_1 = produced;
136-
ref->unk_2 = consumed;
135+
ref->race = produced;
136+
ref->caste = consumed;
137137
}
138138
else
139139
{
140140
ref = df::allocate<df::general_ref_creaturest>();
141-
ref->unk_1 = produced;
142-
ref->unk_2 = consumed;
141+
ref->race = produced;
142+
ref->caste = consumed;
143143
general_refs.push_back(ref);
144144
}
145145
}
146-
DEFINE_VMETHOD_INTERPOSE(uint32_t,getImpassableOccupancy,())
146+
DEFINE_VMETHOD_INTERPOSE(df::tile_building_occ,getImpassableOccupancy,())
147147
{
148148
if(auto def = find_def())
149149
{

0 commit comments

Comments
 (0)