Global Constants Things Noticed

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

Global Constants Things Noticed

Postby Crazys » Tue Jun 01, 2010 9:16 pm

Hey all
I was viewing global Constants and found
eInstrumentType
which was in correctly...
but then a bit father down the page i found
InstrumentType
which was identical to the top one.

Is there some reason we have both of these???
Just figured it would be something we could take out that was completely unnecessary code

Also ShieldLevel, its missing the naming format... of e....
I don't feel is named correctly... Technically its not the level its the size. So I vote it should be eShieldSize...

Thanks,
Crazys
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Global Constants Things Noticed

Postby Graveen » Tue Jun 01, 2010 9:31 pm

You are right, InstrumentType is not used.

For ShieldLevel, i agree too, anyway, you have to refactor this, if you can do it this is nice.
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: Global Constants Things Noticed

Postby Crazys » Tue Jun 01, 2010 9:58 pm

Graveen wrote:You are right, InstrumentType is not used.

For ShieldLevel, i agree too, anyway, you have to refactor this, if you can do it this is nice.


Not a problem!!!
i don't know if it will be tonight but I'll have it updated and let you know!

Thanks,
Crazys
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Global Constants Things Noticed

Postby Crazys » Thu Jun 03, 2010 12:48 pm

Its been a bit since i've done an upload for you guys so let me know if I did anything wrong. I attached all the changes needed to change ShieldLevel to eShieldSize and removed the second listing of InstrumentType.

Thanks,
Kyle
Attachments
eShieldSize and Removal of extra InstrumentType.patch
(18.6 KiB) Downloaded 11 times
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Global Constants Things Noticed

Postby Crazys » Thu Jun 03, 2010 1:02 pm

More Changes I would like to add to Global Constants

Please let me know if you approve of the following

(handles what slot an item is)
Current Name - Slot
Change to - eSlot

(handles cloth vs leather vs chain...)
Current Name - ArmorLevel
Change to - eArmorType

(to keep it uniform...)
Current Name - Gender
Change to - eGender

Let me know if you approve of any of these before i spend the time changing it to be what I feel would be unifrom with DoL
Thanks,
Crazys
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Global Constants Things Noticed

Postby Graveen » Thu Jun 03, 2010 1:36 pm

if theses are enums, yes, they should be prefixed with eXX
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: Global Constants Things Noticed

Postby Crazys » Thu Jun 03, 2010 2:20 pm

Graveen wrote:if theses are enums, yes, they should be prefixed with eXX


I'll have all 3 changed tonight and the patch uploaded!

- I'll keep the patch separated from the one above -

Thanks,
Crazys
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Global Constants Things Noticed

Postby Graveen » Thu Jun 03, 2010 3:45 pm

Ok thank you !
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: Global Constants Things Noticed

Postby Crazys » Thu Jun 03, 2010 4:04 pm

Patch Changes

(handles what slot an item is)
Current Name - Slot
Changed to - eSlot

(handles cloth vs leather vs chain...)
Current Name - ArmorLevel
Changed to - eArmorType

(to keep it uniform...)
Current Name - Gender
Changed to - eGender

Thanks,
Crazys
Attachments
eArmorType eSlot and eGender patch.patch
(65.87 KiB) Downloaded 14 times
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest