mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Change check for trading NPC
This commit is contained in:
parent
18694b30ad
commit
a483817fc2
@ -935,7 +935,7 @@ impl<'a> AgentData<'a> {
|
||||
event_emitter.emit(ServerEvent::Chat(
|
||||
UnresolvedChatMsg::npc(*self.uid, msg),
|
||||
));
|
||||
} else if agent.trade_for_site.is_some() {
|
||||
} else if self.behavior.has_tag(&BehaviorTag::CanTrade) {
|
||||
let msg = "npc.speech.merchant_advertisement".to_string();
|
||||
event_emitter.emit(ServerEvent::Chat(
|
||||
UnresolvedChatMsg::npc(*self.uid, msg),
|
||||
|
Loading…
Reference in New Issue
Block a user