Comment spell struct with official names for each field

This commit is contained in:
Michael Cook (mackal) 2016-07-17 02:13:13 -04:00
parent 921136c987
commit 7cd613e5f2

View File

@ -643,139 +643,159 @@ typedef enum {
struct SPDat_Spell_Struct struct SPDat_Spell_Struct
{ {
/* 000 */ int id; // not used /* 000 */ int id; // not used -- SPELLINDEX
/* 001 */ char name[64]; // Name of the spell /* 001 */ char name[64]; // Name of the spell -- SPELLNAME
/* 002 */ char player_1[32]; // "PLAYER_1" /* 002 */ char player_1[32]; // "PLAYER_1" -- ACTORTAG
/* 003 */ char teleport_zone[64]; // Teleport zone, pet name summoned, or item summoned /* 003 */ char teleport_zone[64]; // Teleport zone, pet name summoned, or item summoned -- NPC_FILENAME
/* 004 */ char you_cast[64]; // Message when you cast /* 004 */ char you_cast[64]; // Message when you cast -- CASTERMETXT
/* 005 */ char other_casts[64]; // Message when other casts /* 005 */ char other_casts[64]; // Message when other casts -- CASTEROTHERTXT
/* 006 */ char cast_on_you[64]; // Message when spell is cast on you /* 006 */ char cast_on_you[64]; // Message when spell is cast on you -- CASTEDMETXT
/* 007 */ char cast_on_other[64]; // Message when spell is cast on someone else /* 007 */ char cast_on_other[64]; // Message when spell is cast on someone else -- CASTEDOTHERTXT
/* 008 */ char spell_fades[64]; // Spell fades /* 008 */ char spell_fades[64]; // Spell fades -- SPELLGONE
/* 009 */ float range; /* 009 */ float range; // -- RANGE
/* 010 */ float aoerange; /* 010 */ float aoerange; // -- IMPACTRANGE
/* 011 */ float pushback; /* 011 */ float pushback; // -- OUTFORCE
/* 012 */ float pushup; /* 012 */ float pushup; // -- UPFORCE
/* 013 */ uint32 cast_time; // Cast time /* 013 */ uint32 cast_time; // Cast time -- CASTINGTIME
/* 014 */ uint32 recovery_time; // Recovery time /* 014 */ uint32 recovery_time; // Recovery time -- RECOVERYDELAY
/* 015 */ uint32 recast_time; // Recast same spell time /* 015 */ uint32 recast_time; // Recast same spell time -- SPELLDELAY
/* 016 */ uint32 buffdurationformula; /* 016 */ uint32 buffdurationformula; // -- DURATIONBASE
/* 017 */ uint32 buffduration; /* 017 */ uint32 buffduration; // -- DURATIONCAP
/* 018 */ uint32 AEDuration; // sentinel, rain of something /* 018 */ uint32 AEDuration; // sentinel, rain of something -- IMPACTDURATION
/* 019 */ uint16 mana; // Mana Used /* 019 */ uint16 mana; // Mana Used -- MANACOST
/* 020 */ int base[EFFECT_COUNT]; //various purposes /* 020 */ int base[EFFECT_COUNT]; //various purposes -- BASEAFFECT1 .. BASEAFFECT12
/* 032 */ int base2[EFFECT_COUNT]; //various purposes /* 032 */ int base2[EFFECT_COUNT]; //various purposes -- BASE_EFFECT2_1 ... BASE_EFFECT2_12
/* 044 */ int32 max[EFFECT_COUNT]; /* 044 */ int32 max[EFFECT_COUNT]; // -- AFFECT1CAP ... AFFECT12CAP
/* 056 */ //uint16 icon; // Spell icon /* 056 */ //uint16 icon; // Spell icon -- IMAGENUMBER
/* 057 */ //uint16 memicon; // Icon on membarthing /* 057 */ //uint16 memicon; // Icon on membarthing -- MEMIMAGENUMBER
/* 058 */ int32 components[4]; // reagents /* 058 */ int32 components[4]; // reagents -- EXPENDREAGENT1 ... EXPENDREAGENT4
/* 062 */ int component_counts[4]; // amount of regents used /* 062 */ int component_counts[4]; // amount of regents used -- EXPENDQTY1 ... EXPENDQTY4
/* 066 */ int NoexpendReagent[4]; // focus items (Need but not used; Flame Lick has a Fire Beetle Eye focus.) /* 066 */ int NoexpendReagent[4]; // focus items (Need but not used; Flame Lick has a Fire Beetle Eye focus.)
// If it is a number between 1-4 it means components[number] is a focus and not to expend it // If it is a number between 1-4 it means components[number] is a focus and not to expend it
// If it is a valid itemid it means this item is a focus as well // If it is a valid itemid it means this item is a focus as well
/* 070 */ uint16 formula[EFFECT_COUNT]; // Spell's value formula // -- NOEXPENDREAGENT1 ... NOEXPENDREAGENT4
/* 082 */ //int LightType; // probaly another effecttype flag /* 070 */ uint16 formula[EFFECT_COUNT]; // Spell's value formula -- LEVELAFFECT1MOD ... LEVELAFFECT12MOD
/* 083 */ int8 goodEffect; //0=detrimental, 1=Beneficial, 2=Beneficial, Group Only /* 082 */ //int LightType; // probaly another effecttype flag -- LIGHTTYPE
/* 084 */ int Activated; // probably another effecttype flag /* 083 */ int8 goodEffect; //0=detrimental, 1=Beneficial, 2=Beneficial, Group Only -- BENEFICIAL
/* 085 */ int resisttype; /* 084 */ int Activated; // probably another effecttype flag -- ACTIVATED
/* 086 */ int effectid[EFFECT_COUNT]; // Spell's effects /* 085 */ int resisttype; // -- RESISTTYPE
/* 098 */ SpellTargetType targettype; // Spell's Target /* 086 */ int effectid[EFFECT_COUNT]; // Spell's effects -- SPELLAFFECT1 ... SPELLAFFECT12
/* 099 */ int basediff; // base difficulty fizzle adjustment /* 098 */ SpellTargetType targettype; // Spell's Target -- TYPENUMBER
/* 100 */ EQEmu::skills::SkillType skill; /* 099 */ int basediff; // base difficulty fizzle adjustment -- BASEDIFFICULTY
/* 101 */ int8 zonetype; // 01=Outdoors, 02=dungeons, ff=Any /* 100 */ EQEmu::skills::SkillType skill; // -- CASTINGSKILL
/* 102 */ int8 EnvironmentType; /* 101 */ int8 zonetype; // 01=Outdoors, 02=dungeons, ff=Any -- ZONETYPE
/* 103 */ int8 TimeOfDay; /* 102 */ int8 EnvironmentType; // -- ENVIRONMENTTYPE
/* 104 */ uint8 classes[PLAYER_CLASS_COUNT]; // Classes, and their min levels /* 103 */ int8 TimeOfDay; // -- TIMEOFDAY
/* 120 */ uint8 CastingAnim; /* 104 */ uint8 classes[PLAYER_CLASS_COUNT]; // Classes, and their min levels -- WARRIORMIN ... BERSERKERMIN
/* 121 */ //uint8 TargetAnim; /* 120 */ uint8 CastingAnim; // -- CASTINGANIM
/* 122 */ //uint32 TravelType; /* 121 */ //uint8 TargetAnim; // -- TARGETANIM
/* 123 */ uint16 SpellAffectIndex; /* 122 */ //uint32 TravelType; // -- TRAVELTYPE
/* 124 */ int8 disallow_sit; // 124: high-end Yaulp spells (V, VI, VII, VIII [Rk 1, 2, & 3], & Gallenite's Bark of Fury /* 123 */ uint16 SpellAffectIndex; // -- SPELLAFFECTINDEX
/* 125 */ int8 diety_agnostic;// 125: Words of the Skeptic /* 124 */ int8 disallow_sit; // 124: high-end Yaulp spells (V, VI, VII, VIII [Rk 1, 2, & 3], & Gallenite's Bark of Fury -- CANCELONSIT
/* 125 */ int8 diety_agnostic;// 125: Words of the Skeptic -- DIETY_AGNOSTIC
/* 126 */ int8 deities[16]; // Deity check. 201 - 216 per http://www.eqemulator.net/wiki/wikka.php?wakka=DeityList /* 126 */ int8 deities[16]; // Deity check. 201 - 216 per http://www.eqemulator.net/wiki/wikka.php?wakka=DeityList
// -1: Restrict to Deity; 1: Restrict to Deity, but only used on non-Live (Test Server "Blessing of ...") spells; 0: Don't restrict // -1: Restrict to Deity; 1: Restrict to Deity, but only used on non-Live (Test Server "Blessing of ...") spells; 0: Don't restrict
/* 142 */ // 142: between 0 & 100 // the client actually stores deities in a single int32_t
// 143: always set to 0 // -- DIETY_BERTOXXULOUS ... DIETY_VEESHAN
/* 144 */ //int16 new_icon // Spell icon used by the client in uifiles/default/spells??.tga, both for spell gems & buff window. Looks to depreciate icon & memicon /* 142 */ //int8 npc_no_cast; // 142: between 0 & 100 -- NPC_NO_CAST
/* 145 */ //int16 spellanim; // Doesn't look like it's the same as #doanim, so not sure what this is /* 143 */ //int ai_pt_bonus; // 143: always set to 0, client doesn't save this -- AI_PT_BONUS
/* 146 */ int8 uninterruptable; // Looks like anything != 0 is uninterruptable. Values are mostly -1, 0, & 1 (Fetid Breath = 90?) /* 144 */ //int16 new_icon // Spell icon used by the client in uifiles/default/spells??.tga, both for spell gems & buff window. Looks to depreciate icon & memicon -- NEW_ICON
/* 147 */ int16 ResistDiff; /* 145 */ //int16 spellanim; // Doesn't look like it's the same as #doanim, so not sure what this is, particles I think -- SPELL_EFFECT_INDEX
/* 148 */ bool dot_stacking_exempt; /* 146 */ bool uninterruptable; // Looks like anything != 0 is uninterruptable. Values are mostly -1, 0, & 1 (Fetid Breath = 90?) -- NO_INTERRUPT
/* 149 */ //int deletable; /* 147 */ int16 ResistDiff; // -- RESIST_MOD
/* 150 */ uint16 RecourseLink; /* 148 */ bool dot_stacking_exempt; // -- NOT_STACKABLE_DOT
/* 151 */ bool no_partial_resist; // 151: -1, 0, or 1 /* 149 */ //int deletable; // -- DELETE_OK
// 152 & 153: all set to 0 /* 150 */ uint16 RecourseLink; // -- REFLECT_SPELLINDEX
/* 154 */ int8 short_buff_box; // != 0, goes to short buff box. /* 151 */ bool no_partial_resist; // 151: -1, 0, or 1 -- NO_PARTIAL_SAVE
/* 155 */ int descnum; // eqstr of description of spell /* 152 */ //bool small_targets_only; // -- SMALL_TARGETS_ONLY
/* 156 */ int typedescnum; // eqstr of type description /* 153 */ //bool uses_persistent_particles; // -- USES_PERSISTENT_PARTICLES
/* 157 */ int effectdescnum; // eqstr of effect description /* 154 */ int8 short_buff_box; // != 0, goes to short buff box. -- BARD_BUFF_BOX
/* 158 */ //Category Desc ID 3 /* 155 */ int descnum; // eqstr of description of spell -- DESCRIPTION_INDEX
/* 159 */ bool npc_no_los; /* 156 */ int typedescnum; // eqstr of type description -- PRIMARY_CATEGORY
/* 161 */ bool reflectable; /* 157 */ int effectdescnum; // eqstr of effect description -- SECONDARY_CATEGORY_1
/* 162 */ int bonushate; /* 158 */ //int secondary_category_2; //Category Desc ID 3 -- SECONDARY_CATEGORY_2
/* 163 */ /* 159 */ bool npc_no_los; // -- NO_NPC_LOS
/* 164 */ // for most spells this appears to mimic ResistDiff /* 160 */ //bool feedbackable; // -- FEEDBACKABLE
/* 165 */ bool ldon_trap; //Flag found on all LDON trap / chest related spells. /* 161 */ bool reflectable; // -- REFLECTABLE
/* 166 */ int EndurCost; /* 162 */ int bonushate; // -- HATE_MOD
/* 167 */ int8 EndurTimerIndex; /* 163 */ //int resist_per_level; // -- RESIST_PER_LEVEL
/* 168 */ bool IsDisciplineBuff; //Will goto the combat window when cast /* 164 */ //int resist_cap; // for most spells this appears to mimic ResistDiff -- RESIST_CAP
/* 169 - 172*/ //These are zero for ALL spells /* 165 */ bool ldon_trap; //Flag found on all LDON trap / chest related spells. -- AFFECT_INANIMATE
/* 173 */ int HateAdded; /* 166 */ int EndurCost; // -- STAMINA_COST
/* 174 */ int EndurUpkeep; /* 167 */ int8 EndurTimerIndex; // bad name, used for all spells -- TIMER_INDEX
/* 175 */ int numhitstype; // defines which type of behavior will tick down the numhit counter. /* 168 */ bool IsDisciplineBuff; //Will goto the combat window when cast -- IS_SKILL
/* 176 */ int numhits; /* 169 - 172*/ //These are zero for ALL spells, also removed from live -- ATTACK_OPENING, DEFENSE_OPENING, SKILL_OPENING, NPC_ERROR_OPENING
/* 177 */ int pvpresistbase; /* 173 */ int HateAdded; // -- SPELL_HATE_GIVEN
/* 178 */ int pvpresistcalc; /* 174 */ int EndurUpkeep; // -- ENDUR_UPKEEP
/* 179 */ int pvpresistcap; /* 175 */ int numhitstype; // defines which type of behavior will tick down the numhit counter. -- LIMITED_USE_TYPE
/* 180 */ int spell_category; /* 176 */ int numhits; // -- LIMITED_USE_COUNT
/* 181 */ //unknown - likely buff duration related /* 177 */ int pvpresistbase; // -- PVP_RESIST_MOD
/* 182 */ //unknown - likely buff duration related /* 178 */ int pvpresistcalc; // -- PVP_RESIST_PER_LEVEL
/* 183 */ /* 179 */ int pvpresistcap; // -- PVP_RESIST_CAP
/* 184 */ /* 180 */ int spell_category; // -- GLOBAL_GROUP
/* 185 */ int8 can_mgb; // 0=no, -1 or 1 = yes /* 181 */ //int pvp_duration; // buffdurationformula for PvP -- PVP_DURATION
/* 186 */ int dispel_flag; /* 182 */ //int pvp_duration_cap; // buffduration for PvP -- PVP_DURATION_CAP
/* 187 */ //int npc_category; /* 183 */ //int pcnpc_only_flag; // valid values are 0, 1, and 2 -- PCNPC_ONLY_FLAG
/* 188 */ //int npc_usefulness; /* 184 */ //bool cast_not_standing; // this is checked in the client's EQ_Spell::IsCastWhileInvisSpell -- CAST_NOT_STANDING
/* 189 */ int MinResist; /* 185 */ bool can_mgb; // 0=no, -1 or 1 = yes -- CAN_MGB
/* 190 */ int MaxResist; /* 186 */ int dispel_flag; // -- NO_DISPELL
/* 191 */ uint8 viral_targets; /* 187 */ //int npc_category; // -- NPC_MEM_CATEGORY
/* 192 */ uint8 viral_timer; /* 188 */ //int npc_usefulness; // -- NPC_USEFULNESS
/* 193 */ int NimbusEffect; /* 189 */ int MinResist; // -- MIN_RESIST
/* 194 */ float directional_start; //Cone Start Angle: /* 190 */ int MaxResist; // -- MAX_RESIST
/* 195 */ float directional_end; // Cone End Angle: /* 191 */ uint8 viral_targets; // -- MIN_SPREAD_TIME
/* 196 */ bool sneak; // effect can only be used if sneaking (rogue 'Daggerfall' ect) /* 192 */ uint8 viral_timer; // -- MAX_SPREAD_TIME
/* 197 */ bool not_focusable; //prevents focus effects from being applied to spell /* 193 */ int NimbusEffect; // -- DURATION_PARTICLE_EFFECT
/* 198 */ bool no_detrimental_spell_aggro; /* 194 */ float directional_start; //Cone Start Angle: -- CONE_START_ANGLE
/* 199 */ /* 195 */ float directional_end; // Cone End Angle: -- CONE_END_ANGLE
/* 200 */ bool suspendable; // buff is suspended in suspended buff zones /* 196 */ bool sneak; // effect can only be used if sneaking (rogue 'Daggerfall' ect) -- SNEAK_ATTACK
/* 201 */ int viral_range; /* 197 */ bool not_focusable; //prevents focus effects from being applied to spell -- NOT_FOCUSABLE
/* 202 */ int songcap; // individual song cap /* 198 */ bool no_detrimental_spell_aggro; // -- NO_DETRIMENTAL_SPELL_AGGRO
/* 203 */ /* 199 */ //bool show_wear_off_message; // -- SHOW_WEAR_OFF_MESSAGE
/* 204 */ /* 200 */ bool suspendable; // buff is suspended in suspended buff zones -- IS_COUNTDOWN_HELD
/* 205 */ bool no_block; /* 201 */ int viral_range; // -- SPREAD_RADIUS
/* 206 */ /* 202 */ int songcap; // individual song cap -- BASE_EFFECTS_FOCUS_CAP
/* 207 */ int spellgroup; /* 203 */ //bool stacks_with_self; // -- STACKS_WITH_SELF
/* 208 */ int rank; //increments AA effects with same name /* 204 */ //int not_shown_to_player; // client skips this -- NOT_SHOWN_TO_PLAYER
/* 209 */ int no_resist; //makes spells unresistable, which makes charms unbreakable as well. /* 205 */ bool no_block; // -- NO_BUFF_BLOCK
/* 210 */ // bool DurationFrozen; ??? /* 206 */ //int8 anim_variation; // -- ANIM_VARIATION
/* 211 */ int CastRestriction; //Various restriction categories for spells most seem targetable race related but have also seen others for instance only castable if target hp 20% or lower or only if target out of combat /* 207 */ int spellgroup; // -- SPELL_GROUP
/* 212 */ bool AllowRest; /* 208 */ int rank; //increments AA effects with same name -- SPELL_GROUP_RANK
/* 213 */ bool InCombat; //Allow spell if target is in combat /* 209 */ int no_resist; //makes spells unresistable, which makes charms unbreakable as well. -- NO_RESIST
/* 214 */ bool OutofCombat; //Allow spell if target is out of combat /* 210 */ // bool allow_spellscribe; // -- ALLOW_SPELLSCRIBE
/* 215 - 216 */ /* 211 */ int CastRestriction; //Various restriction categories for spells most seem targetable race related but have also seen others for instance only castable if target hp 20% or lower or only if target out of combat -- SPELL_REQ_ASSOCIATION_ID
/* 217 */ int override_crit_chance; //Places a cap on the max chance to critical /* 212 */ bool AllowRest; // -- BYPASS_REGEN_CHECK
/* 218 */ int aemaxtargets; //Is used for various AE effects /* 213 */ bool InCombat; //Allow spell if target is in combat -- CAN_CAST_IN_COMBAT
/* 219 */ int no_heal_damage_item_mod; /* 214 */ bool OutofCombat; //Allow spell if target is out of combat -- CAN_CAST_OUT_OF_COMBAT
/* 220 - 223 */ /* 215 */ //bool show_dot_message; // -- SHOW_DOT_MESSAGE
/* 224 */ bool persistdeath; // buff doesn't get stripped on death /* 216 */ //bool invalid; // -- INVALID
/* 225 - 226 */ /* 217 */ int override_crit_chance; //Places a cap on the max chance to critical -- OVERRIDE_CRIT_CHANCE
/* 227 */ float min_dist; //spell power modified by distance from caster (Min Distance) /* 218 */ int aemaxtargets; //Is used for various AE effects -- MAX_TARGETS
/* 228 */ float min_dist_mod; //spell power modified by distance from caster (Modifier at Min Distance) /* 219 */ int no_heal_damage_item_mod; // -- NO_HEAL_DAMAGE_ITEM_MOD
/* 229 */ float max_dist; //spell power modified by distance from caster (Max Distance) /* 220 */ //int caster_requirement_id; // -- CASTER_REQUIREMENT_ID
/* 230 */ float max_dist_mod; //spell power modified by distance from caster (Modifier at Max Distance) /* 221 */ //int spell_class; // -- SPELL_CLASS
/* 231 */ float min_range; //Min casting range /* 222 */ //int spell_subclass; // -- SPELL_SUBCLASS
/* 232 */ bool no_remove; //prevents buff from being removed by click /* 223 */ //int ai_valid_targets; // -- AI_VALID_TARGETS
/* 233 - 236 */ /* 224 */ bool persistdeath; // buff doesn't get stripped on death -- NO_STRIP_ON_DEATH
/* 225 */ //float base_effects_focus_slope; // -- BASE_EFFECTS_FOCUS_SLOPE
/* 226 */ //float base_effects_focus_offset; // -- BASE_EFFECTS_FOCUS_OFFSET
/* 227 */ float min_dist; //spell power modified by distance from caster (Min Distance) -- DISTANCE_MOD_CLOSE_DIST
/* 228 */ float min_dist_mod; //spell power modified by distance from caster (Modifier at Min Distance) -- DISTANCE_MOD_CLOSE_MULT
/* 229 */ float max_dist; //spell power modified by distance from caster (Max Distance) -- DISTANCE_MOD_FAR_DIST
/* 230 */ float max_dist_mod; //spell power modified by distance from caster (Modifier at Max Distance) -- DISTANCE_MOD_FAR_MULT
/* The client also does this
* v26 = *(float *)&v4->DistanceModFarDist - *(float *)&v4->DistanceModCloseDist;
* if ( v26 > -0.00000011920929 && v26 < 0.00000011920929 )
* v26 = 1.0;
* v27 = (st7_0 - *(float *)&v4->DistanceModCloseMult) / v26;
* *(float *)&v4->DistanceMod = v27;
*/
/* 231 */ float min_range; //Min casting range -- MIN_RANGE
/* 232 */ bool no_remove; //prevents buff from being removed by click -- NO_REMOVE
/* 233 */ //int spell_recourse_type; // -- SPELL_RECOURSE_TYPE
/* 234 */ //bool only_during_fast_regen; // -- ONLY_DURING_FAST_REGEN
/* 235 */ //bool is_beta_only; // -- IS_BETA_ONLY
/* 236 */ //int spell_subgroup; // -- SPELL_SUBGROUP
uint8 DamageShieldType; // This field does not exist in spells_us.txt uint8 DamageShieldType; // This field does not exist in spells_us.txt
}; };