1. wzp

    wzp Plugin Developer

    why calling it inside of foreach and giving it "this" but not current - it'll be better to call this hook once before foreach, finishBonus can be easily iterated in the hook, IMHO
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That's what I had, which is why I was asking if calling per item was really necessary.
     
  3. Vlad-00003

    Vlad-00003 Plugin Developer

    Nah... nevermind - do it like you think would be better =)
     
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I don't really know which way would be better. I don't know how spammy the hook would be in the loop, but you could modify the list too if you wanted to.
     
  5. Vlad-00003

    Vlad-00003 Plugin Developer

    WAAAAIT, I've remembered the reason. The ITEM doesan't exist before foreach.
    But sure - I can change the ItemAmount in fifnish bonus, so..... There is not much difference for me =)
     
  6. Vlad-00003

    Vlad-00003 Plugin Developer

    So in the end you've desidet to put it in the foreach? Cool. Thanks!
    --- Double Post Merged, Aug 17, 2017 ---
    Modifying the Item itself wasn't nessaserry. All that I wanted to to if do modify it like in the OnDispencerGaver - it's info and amount....