1
1
#include " building_health.h"
2
2
3
3
#include " building/building.h"
4
+ #include " building/figure.h"
4
5
#include " city/object_info.h"
5
6
#include " game/resource.h"
6
7
#include " graphics/elements/panel.h"
@@ -34,7 +35,7 @@ static void building_health_draw_info(object_info& c, int help_id, const char* t
34
35
window_building_draw_employment (&c, 142 );
35
36
}
36
37
37
- void building_apothecary_draw_info (object_info& c) {
38
+ void building_apothecary::window_info_background (object_info& c) {
38
39
building_health_draw_info (c, 63 , " apothecary" , e_text_building_apothecary, FIGURE_HERBALIST);
39
40
}
40
41
@@ -69,3 +70,22 @@ void building_physician_draw_info(object_info& c) {
69
70
inner_panel_draw (c.offset .x + 16 , c.offset .y + 136 , c.width_blocks - 2 , 4 );
70
71
window_building_draw_employment (&c, 142 );
71
72
}
73
+
74
+ void building_apothecary::spawn_figure () {
75
+ common_spawn_roamer (FIGURE_HERBALIST, 50 , FIGURE_ACTION_125_ROAMING);
76
+ // check_labor_problem();
77
+ // if (has_figure_of_type(FIGURE_DOCTOR))
78
+ // return;
79
+ // map_point road;
80
+ // if (map_has_road_access(x, y, size, &road)) {
81
+ // spawn_labor_seeker(50);
82
+ // int spawn_delay = figure_spawn_timer();
83
+ // if (spawn_delay == -1)
84
+ // return;
85
+ // figure_spawn_delay++;
86
+ // if (figure_spawn_delay > spawn_delay) {
87
+ // figure_spawn_delay = 0;
88
+ // create_roaming_figure(road.x, road.y, FIGURE_DOCTOR);
89
+ // }
90
+ // }
91
+ }
0 commit comments