Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/unit_actions.js
Show First 20 Lines • Show All 1,878 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
let playerState = g_SimState.players[entState.player]; | let playerState = g_SimState.players[entState.player]; | ||||
if (playerState && playerState.controlsAll) | if (playerState && playerState.controlsAll) | ||||
return false; | return false; | ||||
if (entState.resourceSupply && entState.resourceSupply.killBeforeGather) | if (entState.resourceSupply && entState.resourceSupply.killBeforeGather) | ||||
return translate("The entity has to be killed before it can be gathered from"); | return translate("The entity has to be killed before it can be gathered from"); | ||||
if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints / 2) | if (entState.capturePoints && entState.capturePoints[entState.player] < entState.maxCapturePoints) | ||||
return translate("You cannot destroy this entity as you own less than half the capture points"); | return translate("You cannot destroy this entity as you don't own it completely"); | ||||
if (!entState.identity.canDelete) | if (!entState.identity.canDelete) | ||||
return translate("This entity is undeletable"); | return translate("This entity is undeletable"); | ||||
return false; | return false; | ||||
} | } | ||||
function DrawTargetMarker(target) | function DrawTargetMarker(target) | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator