[SVN:r3230] Updated BuffMerchant.cs

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[SVN:r3230] Updated BuffMerchant.cs

Postby Leodagan » Wed Aug 28, 2013 4:38 pm

I changed Buff procedure from static to object one...

I did not liked the queues being instancied weirdly (static param in class, but new object given to a static procedure...) and I needed "this" to cast spell handler...

I also made the buff procedures "Pet" compatible, and added a const to actually enable or disable it...

I also made a const to spell duration, and set it to max... on my server buff don't wear out and stays flashy, so it's better to have them forever (easy to change if you like)
Attachments
BuffMerchant.cs.patch
(10.27 KiB) Downloaded 27 times
Last edited by Leodagan on Thu Aug 29, 2013 8:24 am, edited 1 time in total.
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: Updated BuffMerchant.cs

Postby Graveen » Wed Aug 28, 2013 9:40 pm

Thank you ! Can you please commit with the current (limited) duration ?
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Updated BuffMerchant.cs

Postby Leodagan » Thu Aug 29, 2013 8:23 am

Commited to SVN 3230 with 2 hours buff duration (and pets buff enabled...)
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest