<?xml version="1.0" encoding="utf-8"?>
<configs>
  <!--
    Trader Discount - Clean the Shop :: buffs.xml
    - 5 marker buffs (one per trader) stamp NPC cvar tdcTraderNum=1..5 so the
      dialog can show the option for any of them and the DLL knows which trader.
    - buffTdcDiscount: the timed shop-wide discount; strength = @tdcDiscFrac
      (set by the controller to the rolled percent/100).
  -->
  <append xpath="/buffs">

    <buff name="buffTdcMarkerJen" hidden="true"><duration value="0"/><effect_group>
      <triggered_effect trigger="onSelfBuffStart"  action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="1"/>
      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="1"/>
    </effect_group></buff>
    <buff name="buffTdcMarkerBob" hidden="true"><duration value="0"/><effect_group>
      <triggered_effect trigger="onSelfBuffStart"  action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="2"/>
      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="2"/>
    </effect_group></buff>
    <buff name="buffTdcMarkerHugh" hidden="true"><duration value="0"/><effect_group>
      <triggered_effect trigger="onSelfBuffStart"  action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="3"/>
      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="3"/>
    </effect_group></buff>
    <buff name="buffTdcMarkerJoel" hidden="true"><duration value="0"/><effect_group>
      <triggered_effect trigger="onSelfBuffStart"  action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="4"/>
      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="4"/>
    </effect_group></buff>
    <buff name="buffTdcMarkerRekt" hidden="true"><duration value="0"/><effect_group>
      <triggered_effect trigger="onSelfBuffStart"  action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="5"/>
      <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="tdcTraderNum" operation="set" value="5"/>
    </effect_group></buff>

    <buff name="buffTdcDiscount" name_key="buffTdcDiscountName" description_key="buffTdcDiscountDesc"
          icon="ui_game_symbol_barter" icon_color="175,255,175">
      <stack_type value="replace"/>
      <duration value="300"/>
      <effect_group>
        <passive_effect name="BarteringBuying"  operation="base_add" value="@tdcDiscFrac"/>
        <passive_effect name="BarteringSelling" operation="base_add" value="@tdcDiscFrac"/>
      </effect_group>
    </buff>

  </append>
</configs>
