facebookresearch/ELF

[Question:] Change units behaviour

zhouker94 opened this issue · 2 comments

Sorry to bother you.
In miniRTS game, players can only gain the resource belong to theirselves, but in my research project I really need them to gain the common resources.

So where should I change the code that a resource can be gained by two players?

Also, how to change the properties of units such as capacity of a worker or the gaining speed?

Thanks!

It is hard to summarize this in a short sentence. You can check the class CmdGather in rts/engine/cmd_specific.cc and start from there. The logic should be fairly easy to understand.

Thank you so much!