Item struct variable name revision #7303
kphoenix137
started this conversation in
General
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
List looks good now feel free to apply this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggested names to rename these variables to. All variable names are kept between 3-20 characters. I opted for full words when possible for clarity, and I'm assuming most modern IDEs have an autofill/autocomplete feature that makes it less tedious to type longer variable names.
_iSeed
->seed
_iCreateInfo
->creationFlags
_itype
->type
_iAnimFlag
->isAnimated
(Note: this is a boolean, so variable name should indicate as such for consistency in this codebase)position
AnimInfo
->animationInfo
_iDelFlag
-> REMOVED (Note: unused)_iPostDraw
->postDraw
_iIdentified
->isIdentified
_iMagical
->isMagical
_iName
->name
_iIName
->identifiedName
_iLoc
->equipLocation
_iClass
->class
_iCurs
->cursorGraphic
_ivalue
->value
_iIvalue
->idenfitiedValue
_iMinDam
->minDamage
_iMaxDam
->maxDamage
_iAC
->armorClass
_iFlags
->flags
_iMiscId
->miscID
_iSpell
->spell
IDidx
->tableID
_iCharges
->charges
_iMaxCharges
->maxCharges
_iDurability
->durability
_iMaxDur
->maxDurability
_iPLDam
->damagePercent
_iPLToHit
->toHit
_iPLAC
->armorClass
_iPLStr
->strength
_iPLMag
->magic
_iPLDex
->dexterity
_iPLVit
->vitality
_iPLFR
->resistFire
_iPLLR
->resistLightning
_iPLMR
->resistMagic
_iPLMana
->mana
_iPLHP
->life
_iPLDamMod
->damage
_iPLGetHit
->damageFromEnemies
_iPLLight
->lightRadius
_iSplLvlAdd
->spellLevel
_iRequest
->isBeingPickedUp
_iUid
->uniqueID
_iFMinDam
->minFireDamage
_iFMaxDam
->maxFireDamage
_iLMinDam
->minLightningDamage
_iLMaxDam
->maxLightningDamage
_iPLEnAc
->armorPierce
_iPrePower
->prefix
_iSufPower
->suffix
_iVAdd1
->addedValue1
_iVMult1
->valueMultiplier1
_iVAdd2
->addedValue2
_iVMult2
->valueMultiplier2
_iMinStr
->requiredStrength
_iMinMag
->requiredMagic
_iMinDex
->requiredDexterity
_iStatFlag
->canBeEquipped
_iDamAcFlags
->hellfireItemFlags
dwBuff
->extraFlags
Beta Was this translation helpful? Give feedback.
All reactions