tribal-relations / client

0 stars 0 forks source link

make validation in web #101

Open gennadyterekhov opened 10 months ago

gennadyterekhov commented 10 months ago

there are specific requirements for many actions
for example for pillage caravan we need to be able to select only valid caravans, not just any tribe name
for send caravan - we can send only to other tribes (not to self), same with remove caravan

if possible, make it work for cli also

gennadyterekhov commented 9 months ago

there are 2 separate issues/solutions

1 validate player decision AFTER they made a choice -> throw and ask to choose again 2 calculate which actions can get which parameters and ask for these parameters only (only web) (maybe https://github.com/tribal-relations/client/issues/120)

gennadyterekhov commented 9 months ago

https://github.com/tribal-relations/client/pull/147