wateret / mengde

A turn-based RPG game engine inspired by 三國志曹操傳.
MIT License
27 stars 10 forks source link

StateUIs does not reflect Cmd update #157

Open wateret opened 4 years ago

wateret commented 4 years ago

Issue

  1. A StateUI is generated with a Cmd
  2. The Cmd is updated (e.g. by OnCmdEventEffect)
  3. StateUI does its work without Cmd changes

This happens when CriticalAttack is proceed correctly but the effect is not shown. It is because StateUI is written as static. Every param is fixed when it is generated and can never change.

Possible solution