Skip to content

Commit 6612e94

Browse files
committed
Update to current snapshot.
1 parent f4ab553 commit 6612e94

File tree

3 files changed

+392
-124
lines changed

3 files changed

+392
-124
lines changed

api/bleed/lua.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ Adds the specified amount of ammo to the specified ammopool.
274274
<b>Requires Trait:</b> AmmoPool
275275
</td></tr>
276276
</table>
277+
<table align="center" width="1024"><tr><th colspan="2" width="1024">Cloak</th></tr>
278+
<tr><td width="50%" align="right"><strong>bool IsCloaked { get; }</strong>
279+
</td><td>
280+
Returns true if the actor is cloaked.
281+
<br />
282+
<b>Requires Trait:</b> Cloak
283+
</td></tr>
284+
</table>
277285
<table align="center" width="1024"><tr><th colspan="2" width="1024">Combat</th></tr>
278286
<tr><td width="50%" align="right"><strong>void Attack(Actor targetActor, bool allowMove = True, bool forceAttack = False)</strong>
279287
</td><td>
@@ -330,6 +338,44 @@ Patrol along a set of given waypoints until a condition becomes true. The actor
330338
<b>Requires Traits:</b> IMove, AttackBase
331339
</td></tr>
332340
</table>
341+
<table align="center" width="1024"><tr><th colspan="2" width="1024">Experience</th></tr>
342+
<tr><td width="50%" align="right"><strong>bool CanGainLevel { get; }</strong>
343+
</td><td>
344+
Returns true if the actor can gain a level.
345+
<br />
346+
<b>Requires Trait:</b> GainsExperience
347+
</td></tr>
348+
<tr><td width="50%" align="right"><strong>int Experience { get; }</strong>
349+
</td><td>
350+
The actor's amount of experience.
351+
<br />
352+
<b>Requires Trait:</b> GainsExperience
353+
</td></tr>
354+
<tr><td width="50%" align="right"><strong>void GiveExperience(int amount, bool silent = False)</strong>
355+
</td><td>
356+
Gives the actor experience. If 'silent' is true, no animation or sound will be played if the actor levels up.
357+
<br />
358+
<b>Requires Trait:</b> GainsExperience
359+
</td></tr>
360+
<tr><td width="50%" align="right"><strong>void GiveLevels(int numLevels, bool silent = False)</strong>
361+
</td><td>
362+
Gives the actor level(s). If 'silent' is true, no animation or sound will be played.
363+
<br />
364+
<b>Requires Trait:</b> GainsExperience
365+
</td></tr>
366+
<tr><td width="50%" align="right"><strong>int Level { get; }</strong>
367+
</td><td>
368+
The actor's level.
369+
<br />
370+
<b>Requires Trait:</b> GainsExperience
371+
</td></tr>
372+
<tr><td width="50%" align="right"><strong>int MaxLevel { get; }</strong>
373+
</td><td>
374+
The actor's maximum possible level.
375+
<br />
376+
<b>Requires Trait:</b> GainsExperience
377+
</td></tr>
378+
</table>
333379
<table align="center" width="1024"><tr><th colspan="2" width="1024">General</th></tr>
334380
<tr><td width="50%" align="right"><strong>bool AcceptsCondition(string condition)</strong>
335381
</td><td>
@@ -680,9 +726,9 @@ Specifies the amount of passengers.
680726
<br />
681727
<b>Requires Trait:</b> Cargo
682728
</td></tr>
683-
<tr><td width="50%" align="right"><strong>Actor UnloadPassenger()</strong>
729+
<tr><td width="50%" align="right"><strong>Actor UnloadPassenger(Actor a = nil)</strong>
684730
</td><td>
685-
Remove the first actor from the transport. This actor is not added to the world.
731+
Remove an existing actor (or first actor if none specified) from the transport. This actor is not added to the world.
686732
<br />
687733
<b>Requires Trait:</b> Cargo
688734
</td></tr>

0 commit comments

Comments
 (0)