Opened 3 years ago

Closed 3 years ago

#6135 closed enhancement (fixed)

Add trading state in UnitAI.

Reported by: Freagarach Owned by: Freagarach
Priority: Nice to Have Milestone: Alpha 25
Component: Simulation Keywords: UnitAI
Cc: Patch: Phab:D3813

Description

Currently, in UnitAI trading is handled by PerformTradeAndMoveToNextMarket which seems like it should just be converted to a substate, TRADING, of TRADE.

Change History (2)

comment:1 by Freagarach, 3 years ago

Owner: set to Freagarach
Patch: Phab:D3813

comment:2 by Freagarach, 3 years ago

Resolution: fixed
Status: newclosed

In 25216:

Move function to perform trade to substate.

Don't pretend it to be a callable function, while it is certainly part of the FSM.
(Also makes it easier for us to implement a duration for the trading in the future, might we ever want to.)

Differential revision: D3813
Comment from: @Angen
Closes: #6135

Note: See TracTickets for help on using tickets.