TS Service Depot: allow sell unit when repairing

This commit is contained in:
dnqbob
2023-09-23 13:01:11 +08:00
committed by Gustas
parent 3bc4a6c9dc
commit 1a98312595
4 changed files with 28 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ Cursors:
repair-blocked:
Start: 190
Length: 1
sell2: # TODO: unused
sell2:
Start: 139
Length: 10
powerdown-blocked:

View File

@@ -38,6 +38,7 @@ notification-unit-ready = Unit ready.
notification-unable-to-comply-building-in-progress = Unable to comply. Building in progress.
notification-repairing = Repairing.
notification-unit-repaired = Unit repaired.
notification-unit-sold = Unit sold.
notification-ion-cannon-ready = Ion cannon ready.
notification-select-target = Select target.
notification-cluster-missile-ready = Cluster missile ready.

View File

@@ -862,6 +862,16 @@
Sequence: vehicle
Palette: player
IsPlayerPalette: true
Sellable:
SellSounds: cashturn.aud
Cursor: sell2
Notification: UnitSold
TextNotification: notification-unit-sold
RequiresCondition: unit.sellable
GrantConditionOnClientDock@Sellable:
Condition: unit.sellable
AfterDockDuration: 20
DockHostNames: gadept
^Tank:
Inherits: ^Vehicle
@@ -949,6 +959,16 @@
RequiresCondition: cruising
BobDistance: -64
InitialHeight: 64
Sellable:
SellSounds: cashturn.aud
Cursor: sell2
Notification: UnitSold
TextNotification: notification-unit-sold
RequiresCondition: unit.sellable
GrantConditionOnClientDock@Sellable:
Condition: unit.sellable
AfterDockDuration: 20
DockHostNames: gadept
^EMPableAircraft:
Inherits: ^Aircraft

View File

@@ -356,7 +356,7 @@ GADEPT:
BuildPaletteOrder: 70
Prerequisites: factory, ~structures.gdi, ~techlevel.medium
Queue: Building
Description: Repairs vehicles.
Description: Repairs or sells vehicles and aircraft.
Building:
Footprint: =+= x++ x+=
Dimensions: 3,3
@@ -431,6 +431,11 @@ GADEPT:
FactionImages:
gdi: gadept.gdi
nod: gadept.nod
GrantConditionOnHostDock:
Condition: serving
AfterDockDuration: 20
Sellable:
RequiresCondition: !serving && !build-incomplete && !being-demolished
GARADR:
Inherits: ^Building