# HG changeset patch # User Wuzzy # Date 1547511837 0 # Node ID 09694f0d4e90be1350d02f6b954ffc109af49f4d # Parent c7d3e5459a588041dd5305ee59d6a49e4abbd5ea LuaAPI: fix some asterisks diff -r c7d3e5459a58 -r 09694f0d4e90 LuaAPI.wiki --- a/LuaAPI.wiki Tue Jan 15 00:21:43 2019 +0000 +++ b/LuaAPI.wiki Tue Jan 15 00:23:57 2019 +0000 @@ -429,7 +429,7 @@ Most visual gears delete themselves eventually. -*NOTE:* Visual gears *must only* be used for decorational/informational/rendering purposes. *Never* use the visual gear's internal state to manipulate anything gameplay-related. Visual gears are not safe for reliable storage and using them as that would lead to strange bugs. +*NOTE:* Visual gears *must* only be used for decorational/informational/rendering purposes. *Never* use the visual gear's internal state to manipulate anything gameplay-related. Visual gears are not safe for reliable storage and using them as that would lead to strange bugs. *NOTE:* Since 0.9.25, visual gears will never spawn when Hedgewars is run in a testing mode (i.e. not as the real game), so don't rely for visual gears to spawn even if they're critical. @@ -785,7 +785,7 @@ Note that most visual gears require little to no modification of their values. -*NOTE:* *Never* use the visual gear's internal state to manipulate/store anything gameplay-related. Visual gears are not safe for reliable storage and using them as that would lead to strange bugs. +*NOTE*: *Never* use the visual gear's internal state to manipulate/store anything gameplay-related. Visual gears are not safe for reliable storage and using them as that would lead to strange bugs. Example 1: @@ -1196,7 +1196,7 @@ SetAmmoTexts(amBazooka, "This weapon deals double the damage than usually.") ==== !AddAmmo(gearUid, ammoType, ammoCount) ==== -Adds `ammoType` to the specified gear. The amount added is determined by the arguments passed via `SetAmmo()` in the `onAmmoStoreInit()` event handler. `ammoCount` is an optional parameter. If this is set, the ammo will **not** be added, but instead set to `ammoCount`. A value of `0` will remove the weapon, a value of `AMMO_INFINITE` will give infinite ammo. +Adds `ammoType` to the specified gear. The amount added is determined by the arguments passed via `SetAmmo()` in the `onAmmoStoreInit()` event handler. `ammoCount` is an optional parameter. If this is set, the ammo will *not* be added, but instead set to `ammoCount`. A value of `0` will remove the weapon, a value of `AMMO_INFINITE` will give infinite ammo. Note: By default, ammo is per-team, so calling `AddAmmo` for a hedgehog will give the ammo for the whole team. The game flags `gfPerHogAmmo` and `gfSharedAmmo` change how ammo is managed in the game, so these game flags also affect `AddAmmo`. @@ -1737,7 +1737,7 @@ The available commands depend on the current engine protocol version. The *engine protocol can (and will) change* between releases. -**Important**: If you use `ParseCommand` to overcome a shortcoming in our Lua API (e.g. a missing function), please make sure to [https://issues.hedgewars.org/enter_bug.cgi report the issue]. +*Important*: If you use `ParseCommand` to overcome a shortcoming in our Lua API (e.g. a missing function), please make sure to [https://issues.hedgewars.org/enter_bug.cgi report the issue]. With your report we can fix the shortcoming in future releases. We will try to remove the reliance on `ParseCommand` as good as possible. This will allow scripts to use the previously missing feature in a way that won’t break!