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 9 times
The IM on this site doesn't seem to work for me properly so please PM me if you wish to talk!
geshi
Contributor
 
Posts: 1806
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: 8777
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: 11872
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
The IM on this site doesn't seem to work for me properly so please PM me if you wish to talk!
geshi
Contributor
 
Posts: 1806
Joined: Tue Oct 21, 2008 9:16 pm


Return to DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest