Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Factories not destroyed when captured

    Map Making
    2
    4
    984
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RogerCooper
      RogerCooper last edited by

      I have a factory defined as follows:

          <attachment name="unitAttachment" 
      		 attachTo="factory"
      		 javaClass="games.strategy.triplea.attachments.UnitAttachment"
      		 type="unitType">
      		 <option name="isFactory" value="true"/>   
         <option name="maxBuiltPerPlayer" value="3"/>
         <option name="destroyedWhenCapturedBy" value="Russians:Germans:British:Japanese:Americans"/>
          </attachment>
      

      It is not getting destroyed when captured. I am doing something wrong?

      C 2 Replies Last reply Reply Quote 0
      • C
        Cernel Moderators @RogerCooper last edited by

        @rogercooper When stuff is ineffective, that probably means it is enabled by a property you don't have true.
        In this case, "Units Can Be Destroyed Instead Of Captured".

        1 Reply Last reply Reply Quote 2
        • RogerCooper
          RogerCooper last edited by

          Thanks for the help. The xml option browser should be updated to reflect the dependency

          1 Reply Last reply Reply Quote 0
          • C
            Cernel Moderators @RogerCooper last edited by

            @rogercooper Also:
            https://forums.triplea-game.org/topic/595/short-attachment-names

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums