Skip to content

Commit 214cee7

Browse files
Fix realm icons in item list
1 parent e94506a commit 214cee7

30 files changed

+384
-336
lines changed

config.ld

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ tparam_alias('character', 'Character')
4141
tparam_alias('item', 'Item')
4242
tparam_alias('inv', 'Inventory')
4343
tparam_alias('panel', 'Panel')
44-
tparam_alias('inv', 'Inventory')
4544
tparam_alias('vector', 'Vector')
4645
tparam_alias('angle', 'Angle')
4746
tparam_alias('entity', 'Entity')
@@ -51,9 +50,9 @@ kind_names = {
5150
module = 'Libraries'
5251
}
5352

54-
new_type("client", "Client", true)
55-
new_type("plugin", "Plugins", true)
56-
new_type("hook", "Hooks", true)
57-
new_type("derma", "Derma", true)
58-
new_type("metaclass", "Class", true)
59-
new_type("global", "Globals", true)
53+
new_type('client', 'Client', true)
54+
new_type('plugin', 'Plugins', true)
55+
new_type('hook', 'Hooks', true)
56+
new_type('derma', 'Derma', true)
57+
new_type('metaclass', 'Class', true)
58+
new_type('global', 'Globals', true)

docs/developer/classes/Character.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All characters that a player owns are loaded into server memory upon the client
77

88
## Methods
99
??? realm-server "<a id=Character:save></a>Character:save (callback)"
10-
##### Character:save {#charactersave}
10+
##### sv_Character:save {#charactersave}
1111
Saves the character to the database and calls the callback if provided.
1212
<h3>Parameters:</h3>
1313
<span class="types"><span class="type">function</span></span>
@@ -17,7 +17,7 @@ All characters that a player owns are loaded into server memory upon the client
1717

1818

1919
??? realm-server "<a id=Character:sync></a>Character:sync (receiver)"
20-
##### Character:sync {#charactersync}
20+
##### sv_Character:sync {#charactersync}
2121
Sends character information to the receiver.
2222
<h3>Parameters:</h3>
2323
<span class="types"><span class="type">Client</span></span>
@@ -28,7 +28,7 @@ All characters that a player owns are loaded into server memory upon the client
2828

2929

3030
??? realm-server "<a id=Character:setup></a>Character:setup (noNetworking)"
31-
##### Character:setup {#charactersetup}
31+
##### sv_Character:setup {#charactersetup}
3232
Sets up the "appearance" related information for the character.
3333
<h3>Parameters:</h3>
3434
<span class="types"><span class="type">boolean</span></span>
@@ -38,11 +38,11 @@ All characters that a player owns are loaded into server memory upon the client
3838

3939

4040
??? realm-server "<a id=Character:kick></a>Character:kick ()"
41-
##### Character:kick {#characterkick}
41+
##### sv_Character:kick {#characterkick}
4242
Forces the player to choose a character.
4343

4444
??? realm-server "<a id=Character:ban></a>Character:ban (time)"
45-
##### Character:ban {#characterban}
45+
##### sv_Character:ban {#characterban}
4646
Prevents the use of this character permanently or for a certain amount of time.
4747
<h3>Parameters:</h3>
4848
<span class="types"><span class="type">integer</span></span>
@@ -59,17 +59,17 @@ All characters that a player owns are loaded into server memory upon the client
5959
```
6060
</ul>
6161
??? realm-server "<a id=Character:delete></a>Character:delete ()"
62-
##### Character:delete {#characterdelete}
62+
##### sv_Character:delete {#characterdelete}
6363
Deletes this character from existence along with its associated data.
6464

6565
??? realm-server "<a id=Character:destroy></a>Character:destroy ()"
66-
##### Character:destroy {#characterdestroy}
66+
##### sv_Character:destroy {#characterdestroy}
6767
!!! warning "Internal"
6868
This is used internally - although you're able to use it you probably shouldn't.
6969
Deletes this character from memory.
7070

7171
??? realm-shared "<a id=Character:getPlayer></a>Character:getPlayer ()"
72-
##### Character:getPlayer {#charactergetplayer}
72+
##### sh_Character:getPlayer {#charactergetplayer}
7373
Returns which player owns this character.
7474
<h3>Returns:</h3>
7575
<span class="types"><span class="type">player</span></span>
@@ -88,7 +88,7 @@ All characters that a player owns are loaded into server memory upon the client
8888
## Class-related methods
8989

9090
??? realm-shared "<a id=Character:joinClass></a>Character:joinClass (class, isForced)"
91-
##### Character:joinClass {#characterjoinclass}
91+
##### sh_Character:joinClass {#characterjoinclass}
9292
Makes a character join a class
9393
<h3>Parameters:</h3>
9494
<span class="types"><span class="type">number</span></span>
@@ -108,13 +108,13 @@ All characters that a player owns are loaded into server memory upon the client
108108

109109

110110
??? realm-shared "<a id=Character:kickClass></a>Character:kickClass ()"
111-
##### Character:kickClass {#characterkickclass}
111+
##### sh_Character:kickClass {#characterkickclass}
112112
Removes character from current class (joins default)
113113

114114
## Currency-related methods
115115

116116
??? realm-shared "<a id=Character:hasMoney></a>Character:hasMoney (amount)"
117-
##### Character:hasMoney {#characterhasmoney}
117+
##### sh_Character:hasMoney {#characterhasmoney}
118118
Checks if character has sufficient funds
119119
<h3>Parameters:</h3>
120120
<span class="types"><span class="type">number</span></span>
@@ -129,7 +129,7 @@ All characters that a player owns are loaded into server memory upon the client
129129

130130

131131
??? realm-shared "<a id=Character:giveMoney></a>Character:giveMoney (amount, takingMoney)"
132-
##### Character:giveMoney {#charactergivemoney}
132+
##### sh_Character:giveMoney {#charactergivemoney}
133133
Gives money to character
134134
<h3>Parameters:</h3>
135135
<span class="types"><span class="type">number</span></span>
@@ -149,7 +149,7 @@ All characters that a player owns are loaded into server memory upon the client
149149

150150

151151
??? realm-shared "<a id=Character:takeMoney></a>Character:takeMoney (amount)"
152-
##### Character:takeMoney {#charactertakemoney}
152+
##### sh_Character:takeMoney {#charactertakemoney}
153153
Takes money from character
154154
<h3>Parameters:</h3>
155155
<span class="types"><span class="type">number</span></span>
@@ -166,7 +166,7 @@ All characters that a player owns are loaded into server memory upon the client
166166
## Flag-related methods
167167

168168
??? realm-server "<a id=Character:setFlags></a>Character:setFlags (flags)"
169-
##### Character:setFlags {#charactersetflags}
169+
##### sv_Character:setFlags {#charactersetflags}
170170
Set the flag data to the character, overriding existing flags
171171
<h3>Parameters:</h3>
172172
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
@@ -176,7 +176,7 @@ All characters that a player owns are loaded into server memory upon the client
176176

177177

178178
??? realm-server "<a id=Character:takeFlags></a>Character:takeFlags (flags)"
179-
##### Character:takeFlags {#charactertakeflags}
179+
##### sv_Character:takeFlags {#charactertakeflags}
180180
Remove the flags from the character.
181181
<h3>Parameters:</h3>
182182
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
@@ -186,7 +186,7 @@ All characters that a player owns are loaded into server memory upon the client
186186

187187

188188
??? realm-shared "<a id=Character:getFlags></a>Character:getFlags ()"
189-
##### Character:getFlags {#charactergetflags}
189+
##### sh_Character:getFlags {#charactergetflags}
190190
Gets character's current flags.
191191
<h3>Returns:</h3>
192192
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
@@ -195,7 +195,7 @@ All characters that a player owns are loaded into server memory upon the client
195195

196196

197197
??? realm-shared "<a id=Character:hasFlags></a>Character:hasFlags (flags)"
198-
##### Character:hasFlags {#characterhasflags}
198+
##### sh_Character:hasFlags {#characterhasflags}
199199
Check if the character contains the flags specified.
200200
<h3>Parameters:</h3>
201201
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>

0 commit comments

Comments
 (0)