File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -118,3 +118,9 @@ let delivery_text shipment region stations money =
118
118
119
119
let get_freight v = v.freight
120
120
121
+ let station_waiting_delivery_text priority ~loc =
122
+ Option. bind priority (fun priority ->
123
+ if Utils. equal_loc loc priority.dst_loc then
124
+ Some (Freight. show priority.freight)
125
+ else None )
126
+
Original file line number Diff line number Diff line change @@ -189,6 +189,17 @@ let render win (s:State.t) loc ~show_demand =
189
189
info.demand
190
190
10
191
191
in
192
+ (* Priority shipment *)
193
+ let goods_s = Backend. get_player s.backend C. player
194
+ |> Player. get_priority
195
+ |> Priority_shipment. station_waiting_delivery_text ~loc
196
+ in
197
+ Option. iter
198
+ (fun goods ->
199
+ let str = " PRIORITY\n DELIVERY:\n " ^ goods in
200
+ Fonts.Render. write_shadow win s.fonts ~color: Ega. white ~idx: 4 ~x: 210 ~y: 104 str)
201
+ goods_s;
202
+
192
203
(* name with shadow *)
193
204
write_name ~shadow: true ~x: 8 ~y: 104 ~color: Ega. white;
194
205
()
You can’t perform that action at this time.
0 commit comments