1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < meta name ="description " content ="API documentation for the Unit:AddFlatStatModifier method in the Eluna engine. ">
7+ < meta name ="keywords " content ="eluna, lua, lua engine, trinitycore, trinity, mangos, cmangos, script, scripting, doc, docs, documentation ">
8+
9+ < title > Unit:AddFlatStatModifier - Eluna</ title >
10+
11+ < link rel ="stylesheet " type ="text/css " href ="../static/main.css ">
12+
13+ < link rel ="shortcut icon " href ="../static/favicon.ico ">
14+
15+ </ head >
16+ < body class ="rustdoc ">
17+ <!--[if lte IE 8]>
18+ <div class="warning">
19+ This old browser is unsupported and will most likely display funky
20+ things.
21+ </div>
22+ <![endif]-->
23+
24+ < section class ="sidebar ">
25+ < a href ='../index.html '> < img src ='../static/eluna-logo.png ' alt ='Eluna Logo ' width ='100 '> </ a >
26+ < div class ="block ">
27+
28+ < h2 > Unit Methods</ h2 >
29+ < script src ="sidebar.js "> </ script >
30+ < script >
31+ // Highlight current method by adding "current" class to it
32+ var element = document . getElementById ( "Unit:AddFlatStatModifier" ) ;
33+ if ( element ) {
34+ var classname = "current" ;
35+ arr = element . className . split ( " " ) ;
36+ if ( arr . indexOf ( classname ) == - 1 ) {
37+ element . className += " " + classname ;
38+ }
39+ }
40+ </ script >
41+
42+ </ div >
43+ </ section >
44+
45+ < nav class ="sub ">
46+ < form class ="search-form js-only ">
47+ < div class ="search-container ">
48+ < input class ="search-input " name ="search "
49+ autocomplete ="off "
50+ placeholder ="Click or press 'S' to search, '?' for more options... "
51+ type ="search ">
52+ </ div >
53+ </ form >
54+ </ nav >
55+
56+ < section id ='main ' class ="content mod ">
57+ < h1 class ='fqn '>
58+ Method
59+ < a class ="mod " href ="../Unit/index.html "> Unit</ a > :< a class ="fn " href ="../Unit/AddFlatStatModifier.html "> AddFlatStatModifier</ a >
60+ < span class ='out-of-band '>
61+ < span id ='render-detail '>
62+ < a id ="collapse-all " href ="# "> [-]</ a >
63+ < a id ="expand-all " href ="# "> [+]</ a >
64+ </ span >
65+ </ span >
66+ </ h1 >
67+
68+
69+ < div class ='docblock '>
70+ < p > Modifies a flat amount of a specific stat of the < a class ="mod " href ="../Unit/index.html "> Unit</ a > </ p >
71+ < pre >
72+ enum UnitModifierFlatType
73+ {
74+ BASE_VALUE = 0,
75+ TOTAL_VALUE = 1
76+ };
77+ </ pre >
78+
79+ < h2 id ="synopsis " class ='section-header '>
80+ < a href ="#synopsis "> Synopsis</ a >
81+ </ h2 >
82+ < p >
83+ < code > Unit:AddFlatStatModifier( statType, modType, value )</ code >
84+ </ p >
85+ < p >
86+ < code > Unit:AddFlatStatModifier( statType, modType, value, apply )</ code >
87+ </ p >
88+
89+ < h2 id ="arguments " class ='section-header '>
90+ < a href ="#arguments "> Arguments</ a >
91+ </ h2 >
92+ < p >
93+ < dl >
94+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > statType</ code > </ dt >
95+ < dd class ="docblock "> < p > The stat to modify. </ p > < p > < em > Valid numbers</ em > : integers from 0 to 4,294,967,295.</ p > </ dd >
96+ </ dl >
97+ < dl >
98+ < dt > < code > < strong > < a href ="https://github.com/ElunaLuaEngine/ElunaTrinityWotlk/search?l=cpp&q=%22enum+UnitModifierFlatType%22&type=Code&utf8=%E2%9C%93 "> UnitModifierFlatType</ a > </ strong > modType</ code > </ dt >
99+ < dd class ="docblock "> < p > The type of modifier to apply. </ p > </ dd >
100+ </ dl >
101+ < dl >
102+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > value</ code > </ dt >
103+ < dd class ="docblock "> < p > The value to apply to the stat. </ p > < p > < em > Valid numbers</ em > : all decimal numbers.</ p > </ dd >
104+ </ dl >
105+ < dl >
106+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.2.html "> boolean</ a > </ strong > apply (true)</ code > </ dt >
107+ < dd class ="docblock "> < p > True applies a positive modifier, false applies a negative. </ p > </ dd >
108+ </ dl >
109+ </ p >
110+
111+ < h2 id ="returns " class ='section-header '>
112+ < a href ="#returns "> Returns</ a >
113+ </ h2 >
114+ < p >
115+ Nothing.
116+ </ p >
117+ </ div >
118+
119+ </ section >
120+
121+ < section id ='search ' class ="content hidden "> </ section >
122+
123+ < section class ="footer "> </ section >
124+
125+ < div id ="help " class ="hidden ">
126+ < div class ="shortcuts ">
127+ < h1 > Keyboard shortcuts</ h1 >
128+ < dl >
129+ < dt > ?</ dt >
130+ < dd > Show this help dialog</ dd >
131+ < dt > S</ dt >
132+ < dd > Focus the search field</ dd >
133+ < dt > ⇤</ dt >
134+ < dd > Move up in search results</ dd >
135+ < dt > ⇥</ dt >
136+ < dd > Move down in search results</ dd >
137+ < dt > ⏎</ dt >
138+ < dd > Go to active search result</ dd >
139+ </ dl >
140+ </ div >
141+ < div class ="infos ">
142+ < h1 > Search tricks</ h1 >
143+ < p >
144+ Prefix searches with a type followed by a colon (e.g.
145+ < code > fn:</ code > ) to restrict the search to a given type.
146+ </ p >
147+ < p >
148+ Accepted types are: < code > fn</ code > , < code > mod</ code > ,
149+ < code > struct</ code > (or < code > str</ code > ), < code > enum</ code > ,
150+ < code > trait</ code > , < code > typedef</ code > (or
151+ < code > tdef</ code > ).
152+ </ p >
153+ </ div >
154+ </ div >
155+
156+ < script >
157+ window . rootPath = "../" ;
158+ </ script >
159+ < script src ="../static/jquery.js "> </ script >
160+ < script src ="../static/main.js "> </ script >
161+ < script async src ="../search-index.js "> </ script >
162+ < center > Generated on < script src ="../date.js "> </ script > </ center >
163+ < center > © 2010 - 2024 Eluna Lua Engine</ center >
164+ </ body >
165+ </ html >
0 commit comments