@@ -29,7 +29,14 @@ struct clay_pit_t {
29
29
animations_t anim;
30
30
};
31
31
32
+ struct gold_mine_t {
33
+ static constexpr e_building_type type = BUILDING_GOLD_MINE;
34
+ e_labor_category labor_category;
35
+ animations_t anim;
36
+ };
37
+
32
38
clay_pit_t clay_pit;
39
+ gold_mine_t gold_mine;
33
40
34
41
}
35
42
@@ -38,9 +45,15 @@ void config_load_building_raw_materials() {
38
45
g_config_arch.r_section (" building_clay_pit" , [] (archive arch) {
39
46
model::clay_pit.labor_category = arch.r_type <e_labor_category>(" labor_category" );
40
47
model::clay_pit.anim .load (arch);
48
+ city_labor_set_category (model::clay_pit);
49
+ });
50
+
51
+ g_config_arch.r_section (" building_gold_mine" , [] (archive arch) {
52
+ model::gold_mine.labor_category = arch.r_type <e_labor_category>(" labor_category" );
53
+ model::gold_mine.anim .load (arch);
54
+ city_labor_set_category (model::gold_mine);
41
55
});
42
56
43
- city_labor_set_category (model::clay_pit);
44
57
}
45
58
46
59
static void building_raw_material_draw_info (object_info& c, const char * type, e_resource resource) {
@@ -121,6 +134,13 @@ int building_mine_gold::get_produce_uptick_per_day() const {
121
134
}
122
135
}
123
136
137
+ bool building_mine_gold::draw_ornaments_and_animations_height (painter &ctx, vec2i point, tile2i tile, color color_mask) {
138
+ const animation_t &anim = model::gold_mine.anim [" work" ];
139
+ building_draw_normal_anim (ctx, point, &base, tile, anim, color_mask);
140
+
141
+ return true ;
142
+ }
143
+
124
144
void building_quarry_stone::on_create () {
125
145
base.output_resource_first_id = RESOURCE_STONE;
126
146
}
@@ -146,10 +166,8 @@ int building_clay_pit::get_fire_risk(int value) const {
146
166
}
147
167
148
168
bool building_clay_pit::draw_ornaments_and_animations_height (painter &ctx, vec2i point, tile2i tile, color color_mask) {
149
- if (worker_percentage () > 50 ) {
150
- const animation_t &anim = model::clay_pit.anim [" work" ];
151
- building_draw_normal_anim (ctx, point, &base, tile, anim, color_mask);
152
- }
169
+ const animation_t &anim = model::clay_pit.anim [" work" ];
170
+ building_draw_normal_anim (ctx, point, &base, tile, anim, color_mask);
153
171
154
172
return true ;
155
173
}
0 commit comments