Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | if (g_FollowPlayer) | ||||
g_Selection.reset(); | g_Selection.reset(); | ||||
if (notification.target) | if (notification.target) | ||||
g_Selection.addList([notification.target]); | g_Selection.addList([notification.target]); | ||||
} | } | ||||
if (Engine.ConfigDB_GetValue("user", "gui.session.notifications.attack") !== "true") | if (Engine.ConfigDB_GetValue("user", "gui.session.notifications.attack") !== "true") | ||||
return; | return; | ||||
let entState = GetEntityState(notification.target); | |||||
addChatMessage({ | addChatMessage({ | ||||
"type": "attack", | "type": "attack", | ||||
"player": player, | "player": player, | ||||
"attacker": notification.attacker, | "attacker": notification.attacker, | ||||
"target": notification.target, | |||||
"position": entState && entState.position, | |||||
"targetIsDomesticAnimal": notification.targetIsDomesticAnimal | "targetIsDomesticAnimal": notification.targetIsDomesticAnimal | ||||
}); | }); | ||||
}, | }, | ||||
"phase": function(notification, player) | "phase": function(notification, player) | ||||
{ | { | ||||
addChatMessage({ | addChatMessage({ | ||||
"type": "phase", | "type": "phase", | ||||
"player": player, | "player": player, | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator