Opened 3 years ago

Last modified 22 months ago

#5991 new enhancement

Allow to limit the structures a builder can construct.

Reported by: Freagarach Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Simulation Keywords: simple
Cc: Patch:

Description

Currently a builder can construct any foundation. It would be nice to be able to limit builders to only be able to construct foundations present in their BuildList. E.g. via a function CanBuild(foundationEntity).

Potential use case:

  • Siege engineers only able to construct siege equipment.

Change History (3)

comment:1 by Silier, 3 years ago

Keywords: simple removed
severity: simple

comment:2 by Silier, 3 years ago

Keywords: simple added

comment:3 by Grapjas, 22 months ago

You can specify the build entities in the template of that entity, and no one else but that unit can build them. Is there a special case you want a function for it? For example you can make template_unit_siege_engineer and specify

<Builder>
    <Rate>1</Rate>
    <Entities datatype="tokens">
      template_unit_siege_ram
    </Entities>
  </Builder>

(i haven't checked if this changed in SVN though)

Version 0, edited 22 months ago by Grapjas (next)
Note: See TracTickets for help on using tickets.