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 Item:GetDamageInfo 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 > Item:GetDamageInfo - Eluna</ title >
10+
11+ < link rel ="stylesheet " type ="text/css " href ="../static/main.css ">
12+ < link rel ="stylesheet " href ="../static/highlight.css ">
13+
14+ < link rel ="shortcut icon " href ="../static/favicon.ico ">
15+
16+ < script >
17+ // Inline script to set theme before the rest of the document loads
18+ ( function ( ) {
19+ const currentTheme = localStorage . getItem ( 'theme' ) ;
20+ if ( currentTheme ) {
21+ document . documentElement . classList . add ( currentTheme ) ;
22+ }
23+ } ) ( ) ;
24+ </ script >
25+ < script src ="../static/highlight.min.js "> </ script >
26+ < script src ="../static/lua.min.js "> </ script >
27+ </ head >
28+ < body class ="rustdoc ">
29+ < section class ="sidebar ">
30+ < a href ='../index.html '> < img src ='../static/eluna-logo.png ' alt ='Eluna Logo ' width ='100 '> </ a >
31+ < div class ="block ">
32+
33+ < h2 > Item Methods</ h2 >
34+ < script src ="sidebar.js "> </ script >
35+ < script >
36+ // Highlight current method by adding "current" class to it
37+ var element = document . getElementById ( "Item:GetDamageInfo" ) ;
38+ if ( element ) {
39+ var classname = "current" ;
40+ arr = element . className . split ( " " ) ;
41+ if ( arr . indexOf ( classname ) == - 1 ) {
42+ element . className += " " + classname ;
43+ }
44+ }
45+ </ script >
46+
47+ </ div >
48+ </ section >
49+
50+ < nav class ="sub ">
51+ < form class ="search-form js-only ">
52+ < input class ="search-input " name ="search "
53+ autocomplete ="off "
54+ placeholder ="Click or press 'S' to search... "
55+ type ="search ">
56+
57+ < div class ="toggle-container " id ="themeToggle ">
58+ < svg class ="sun-icon " xmlns ="http://www.w3.org/2000/svg ">
59+ < circle cx ="12 " cy ="12 " r ="5 "> </ circle >
60+ < line x1 ="12 " y1 ="1 " x2 ="12 " y2 ="3 "> </ line >
61+ < line x1 ="12 " y1 ="21 " x2 ="12 " y2 ="23 "> </ line >
62+ < line x1 ="4.22 " y1 ="4.22 " x2 ="5.64 " y2 ="5.64 "> </ line >
63+ < line x1 ="18.36 " y1 ="18.36 " x2 ="19.78 " y2 ="19.78 "> </ line >
64+ < line x1 ="1 " y1 ="12 " x2 ="3 " y2 ="12 "> </ line >
65+ < line x1 ="21 " y1 ="12 " x2 ="23 " y2 ="12 "> </ line >
66+ < line x1 ="4.22 " y1 ="19.78 " x2 ="5.64 " y2 ="18.36 "> </ line >
67+ < line x1 ="18.36 " y1 ="5.64 " x2 ="19.78 " y2 ="4.22 "> </ line >
68+ </ svg >
69+ < svg class ="moon-icon " xmlns ="http://www.w3.org/2000/svg ">
70+ < path d ="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z "> </ path >
71+ </ svg >
72+ </ div >
73+ </ form >
74+ </ nav >
75+
76+ < section id ='main ' class ="content mod ">
77+ < h1 class ='fqn '>
78+ Method
79+ < a class ="mod " href ="../Item/index.html "> Item</ a > :< a class ="fn " href ="../Item/GetDamageInfo.html "> GetDamageInfo</ a >
80+ < span class ='out-of-band '>
81+ < span id ='render-detail '>
82+ < a id ="collapse-all " href ="# "> [-]</ a >
83+ < a id ="expand-all " href ="# "> [+]</ a >
84+ </ span >
85+ </ span >
86+ </ h1 >
87+
88+
89+ < div class ='docblock '>
90+ < p > Returns the damage info of the specified damage slot of this < a class ="mod " href ="../Item/index.html "> Item</ a > </ p >
91+
92+
93+ < h2 id ="synopsis " class ='section-header '>
94+ < a href ="#synopsis "> Synopsis</ a >
95+ </ h2 >
96+ < p >
97+ < code > damageType, minDamage, maxDamage = Item:GetDamageInfo( damageSlot )</ code >
98+ </ p >
99+
100+ < h2 id ="arguments " class ='section-header '>
101+ < a href ="#arguments "> Arguments</ a >
102+ </ h2 >
103+ < p >
104+ < dl >
105+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > damageSlot</ code > </ dt >
106+ < dd class ="docblock "> < p > The damage slot specified (1 or 2). </ p > < p > < em > Valid numbers</ em > : integers from 0 to 255.</ p > </ dd >
107+ </ dl >
108+ </ p >
109+
110+ < h2 id ="returns " class ='section-header '>
111+ < a href ="#returns "> Returns</ a >
112+ </ h2 >
113+ < p >
114+ < dl >
115+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > damageType</ code > </ dt >
116+ < dd class ="docblock "> < p > < em > Valid numbers</ em > : integers from 0 to 4,294,967,295.</ p > </ dd >
117+ </ dl >
118+ < dl >
119+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > minDamage</ code > </ dt >
120+ < dd class ="docblock "> < p > < em > Valid numbers</ em > : all decimal numbers.</ p > </ dd >
121+ </ dl >
122+ < dl >
123+ < dt > < code > < strong > < a href ="http://www.lua.org/pil/2.3.html "> number</ a > </ strong > maxDamage</ code > </ dt >
124+ < dd class ="docblock "> < p > < em > Valid numbers</ em > : all decimal numbers.</ p > </ dd >
125+ </ dl >
126+ </ p >
127+ </ div >
128+
129+ </ section >
130+
131+ < section id ='search ' class ="content hidden "> </ section >
132+
133+ < section class ="footer "> </ section >
134+
135+ < div id ="help " class ="hidden ">
136+ < div class ="shortcuts ">
137+ < h1 > Keyboard shortcuts</ h1 >
138+ < dl >
139+ < dt > ?</ dt >
140+ < dd > Show this help dialog</ dd >
141+ < dt > S</ dt >
142+ < dd > Focus the search field</ dd >
143+ < dt > ⇤</ dt >
144+ < dd > Move up in search results</ dd >
145+ < dt > ⇥</ dt >
146+ < dd > Move down in search results</ dd >
147+ < dt > ⏎</ dt >
148+ < dd > Go to active search result</ dd >
149+ </ dl >
150+ </ div >
151+ < div class ="infos ">
152+ < h1 > Search tricks</ h1 >
153+ < p >
154+ Prefix searches with a type followed by a colon (e.g.
155+ < code > fn:</ code > ) to restrict the search to a given type.
156+ </ p >
157+ < p >
158+ Accepted types are: < code > fn</ code > , < code > mod</ code > ,
159+ < code > struct</ code > (or < code > str</ code > ), < code > enum</ code > ,
160+ < code > trait</ code > , < code > typedef</ code > (or
161+ < code > tdef</ code > ).
162+ </ p >
163+ </ div >
164+ </ div >
165+
166+ < script >
167+ window . rootPath = "../" ;
168+ </ script >
169+ < script src ="../static/jquery.js "> </ script >
170+ < script src ="../static/main.js "> </ script >
171+ < script src ="../static/theme.js "> </ script >
172+ < script async src ="../search-index.js "> </ script >
173+ < center > Generated on < script src ="../date.js "> </ script > </ center >
174+ < center > © 2010 - 2024 Eluna Lua Engine</ center >
175+ </ body >
176+ </ html >
0 commit comments