MultiServer: persist hints even if previously found (#4214)
* change to persist all hints to ctx.hints regardless of found status
* remove if not found entirely as it seems like it was added to not double charge hint points
9842399d8b
			
			
This commit is contained in:
		
							parent
							
								
									85a713771b
								
							
						
					
					
						commit
						48ea274655
					
				|  | @ -727,15 +727,15 @@ class Context: | |||
|             if not hint.local and data not in concerns[hint.finding_player]: | ||||
|                 concerns[hint.finding_player].append(data) | ||||
|             # remember hints in all cases | ||||
|             if not hint.found: | ||||
|                 # since hints are bidirectional, finding player and receiving player, | ||||
|                 # we can check once if hint already exists | ||||
|                 if hint not in self.hints[team, hint.finding_player]: | ||||
|                     self.hints[team, hint.finding_player].add(hint) | ||||
|                     new_hint_events.add(hint.finding_player) | ||||
|                     for player in self.slot_set(hint.receiving_player): | ||||
|                         self.hints[team, player].add(hint) | ||||
|                         new_hint_events.add(player) | ||||
| 
 | ||||
|             # since hints are bidirectional, finding player and receiving player, | ||||
|             # we can check once if hint already exists | ||||
|             if hint not in self.hints[team, hint.finding_player]: | ||||
|                 self.hints[team, hint.finding_player].add(hint) | ||||
|                 new_hint_events.add(hint.finding_player) | ||||
|                 for player in self.slot_set(hint.receiving_player): | ||||
|                     self.hints[team, player].add(hint) | ||||
|                     new_hint_events.add(player) | ||||
| 
 | ||||
|             self.logger.info("Notice (Team #%d): %s" % (team + 1, format_hint(self, team, hint))) | ||||
|         for slot in new_hint_events: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue