Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Create more examples #4

Open
xforce opened this issue May 16, 2019 · 3 comments
Open

Create more examples #4

xforce opened this issue May 16, 2019 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@xforce
Copy link
Owner

xforce commented May 16, 2019

Would be nice to have some more examples 馃樃

@xforce xforce added help wanted Extra attention is needed good first issue Good for newcomers labels May 16, 2019
@Smartertime
Copy link

Smartertime commented May 20, 2019

Force loots for world fair pool 9 : assets.xml in Anno 1800\mods\fairloots\data\config\export\main\asset

<!-- Slot 1 -->
<ModOp Type="remove" Path="//Asset[Values/Standard/GUID='191256']/Values/RewardPool/ItemsPool/Item" />
<ModOp Type="add" Path="//Asset[Values/Standard/GUID='191256']/Values/RewardPool/ItemsPool">
    <Item><ItemLink>190826</ItemLink></Item>
</ModOp>
<!-- Slot 2 -->
<ModOp Type="remove" Path="//Asset[Values/Standard/GUID='191258']/Values/RewardPool/ItemsPool/Item" />
<ModOp Type="add" Path="//Asset[Values/Standard/GUID='191258']/Values/RewardPool/ItemsPool">
    <Item><ItemLink>191896</ItemLink></Item>
</ModOp>
<!-- Slot 3 -->
<ModOp Type="remove" Path="//Asset[Values/Standard/GUID='191257']/Values/RewardPool/ItemsPool/Item" />
<ModOp Type="add" Path="//Asset[Values/Standard/GUID='191257']/Values/RewardPool/ItemsPool">
    <Item><ItemLink>190861</ItemLink></Item>
</ModOp>

@kskudlik
Copy link
Contributor

why don麓t you just replace them?

<!-- Slot 1 -->
<ModOp Type="replace" Path="//Asset[Values/Standard/GUID='191256']/Values/RewardPool/ItemsPool/Item">
    <Item><ItemLink>190826</ItemLink></Item>
</ModOp>
<!-- Slot 2 -->
<ModOp Type="replace" Path="//Asset[Values/Standard/GUID='191258']/Values/RewardPool/ItemsPool/Item">
    <Item><ItemLink>191896</ItemLink></Item>
</ModOp>
<!-- Slot 3 -->
<ModOp Type="replace" Path="//Asset[Values/Standard/GUID='191257']/Values/RewardPool/ItemsPool/Item">
    <Item><ItemLink>190861</ItemLink></Item>
</ModOp>

that should do the trick. will try later :)

@Smartertime
Copy link

You're right, just tested it, works and is simpler. I started with a removal as it would be cleaner to compose more operations later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants