@@ -107,10 +107,10 @@ def __call__(self, text: str) -> 'ColouredMessage':
107
107
def coloured (self , text : str , colour : str ) -> 'ColouredMessage' :
108
108
add_json_text (self .parts , text , type = "color" , color = colour )
109
109
return self
110
- def location (self , location_id : int , player_id : int = 0 ) -> 'ColouredMessage' :
110
+ def location (self , location_id : int , player_id : int ) -> 'ColouredMessage' :
111
111
add_json_location (self .parts , location_id , player_id )
112
112
return self
113
- def item (self , item_id : int , player_id : int = 0 , flags : int = 0 ) -> 'ColouredMessage' :
113
+ def item (self , item_id : int , player_id : int , flags : int = 0 ) -> 'ColouredMessage' :
114
114
add_json_item (self .parts , item_id , player_id , flags )
115
115
return self
116
116
def player (self , player_id : int ) -> 'ColouredMessage' :
@@ -256,7 +256,7 @@ def print_faction_title():
256
256
for item in received_items_of_this_type :
257
257
print_faction_title ()
258
258
has_printed_faction_title = True
259
- (ColouredMessage ('* ' ).item (item .item , flags = item .flags )
259
+ (ColouredMessage ('* ' ).item (item .item , self . ctx . slot , flags = item .flags )
260
260
(" from " ).location (item .location , self .ctx .slot )
261
261
(" by " ).player (item .player )
262
262
).send (self .ctx )
@@ -277,7 +277,7 @@ def print_faction_title():
277
277
received_items_of_this_type = items_received .get (child_item , [])
278
278
for item in received_items_of_this_type :
279
279
filter_match_count += len (received_items_of_this_type )
280
- (ColouredMessage (' * ' ).item (item .item , flags = item .flags )
280
+ (ColouredMessage (' * ' ).item (item .item , self . ctx . slot , flags = item .flags )
281
281
(" from " ).location (item .location , self .ctx .slot )
282
282
(" by " ).player (item .player )
283
283
).send (self .ctx )
0 commit comments