Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/chatHelper.js
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | "neutral": { | ||||
] | ] | ||||
} | } | ||||
}; | }; | ||||
PETRA.chatLaunchAttack = function(gameState, player, type) | PETRA.chatLaunchAttack = function(gameState, player, type) | ||||
{ | { | ||||
Engine.PostCommand(PlayerID, { | Engine.PostCommand(PlayerID, { | ||||
"type": "aichat", | "type": "aichat", | ||||
"message": "/allies " + pickRandom(this.launchAttackMessages[type === "HugeAttack" ? "hugeAttack" : "other"]), | "message": "/allies " + pickRandom(this.launchAttackMessages[type === PETRA.AttackPlan.TYPE_HUGE_ATTACK ? "hugeAttack" : "other"]), | ||||
"translateMessage": true, | "translateMessage": true, | ||||
"translateParameters": ["_player_"], | "translateParameters": ["_player_"], | ||||
"parameters": { "_player_": player } | "parameters": { "_player_": player } | ||||
}); | }); | ||||
}; | }; | ||||
PETRA.chatAnswerRequestAttack = function(gameState, player, answer, other) | PETRA.chatAnswerRequestAttack = function(gameState, player, answer, other) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator