@@ -92,7 +92,20 @@ local function mined_entity(event)
9292 local corpse_owner = game .get_player (corpse_owner_index )
9393 if player and corpse_owner then
9494 local position = entity .position
95- Utils .action_warning (' [Corpse]' , { ' corpse.looted' , player .name , corpse_owner .name , position .x , position .y , entity .surface .name })
95+ local message = table.concat {
96+ player .name ,
97+ ' has looted ' ,
98+ corpse_owner .name ,
99+ ' \' s corpse.' ,
100+ ' [gps=' ,
101+ string.format (' %.1f' , position .x ),
102+ ' ,' ,
103+ string.format (' %.1f' , position .y ),
104+ ' ,' ,
105+ entity .surface .name ,
106+ ' ]'
107+ }
108+ Utils .action_warning (' [Corpse]' , message )
96109 end
97110end
98111
@@ -123,7 +136,20 @@ local function on_gui_opened(event)
123136 local corpse_owner = game .get_player (corpse_owner_index )
124137 if player and corpse_owner then
125138 local position = entity .position
126- Utils .action_warning (' [Corpse]' , { ' corpse.looting' , player .name , corpse_owner .name , position .x , position .y , entity .surface .name })
139+ local message = table.concat {
140+ player .name ,
141+ ' is looting ' ,
142+ corpse_owner .name ,
143+ ' \' s corpse.' ,
144+ ' [gps=' ,
145+ string.format (' %.1f' , position .x ),
146+ ' ,' ,
147+ string.format (' %.1f' , position .y ),
148+ ' ,' ,
149+ entity .surface .name ,
150+ ' ]'
151+ }
152+ Utils .action_warning (' [Corpse]' , message )
127153 end
128154end
129155
0 commit comments