Item Equip

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

Item Equip

Postby geshi » Thu Jul 08, 2010 3:42 pm

Hey, In this patch I have added Equip method to PlayerInventoryItem.cs and moved all the Equip code from GamePlayer to there.
Attachments
EquipPatch.patch
(16.2 KiB) Downloaded 22 times
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: Item Equip

Postby Tolakram » Thu Jul 08, 2010 4:51 pm

Interesting Geshi, thanks.

I'm changing things around still so not quite ready, but this may be a good idea. My thinking is the interface will die and all classtypes that handle items will have to inherit from playerinventoryitem. Even if so, most of this patch can be accepted once I'm done, I'll have to think about what methods we want to move once I have some more time.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Item Equip

Postby Graveen » Thu Jul 08, 2010 8:03 pm

really geshi you code that ? with reflection ?

well, anyway, interesting patch, that will not be included in the core due to heavy changes performed by Tola, but it worths it.
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: Item Equip

Postby geshi » Thu Jul 08, 2010 10:02 pm

mmh I didn't really code it.. I looked at how Tolakram did it for Delve and did the same for Equip and it worked :D but now I know what you meant by Reflection :D :D
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: Bing [Bot] and 1 guest