LuaAPI: Fix some bugs
authorWuzzy
Tue, 01 Jan 2019 22:00:27 +0000
changeset 1695 6bf2e6deedb0
parent 1694 d3bebda2cdfd
child 1696 90dc2f42db2b
LuaAPI: Fix some bugs
LuaAPI.wiki
--- a/LuaAPI.wiki	Tue Jan 01 21:40:03 2019 +0000
+++ b/LuaAPI.wiki	Tue Jan 01 22:00:27 2019 +0000
@@ -502,6 +502,7 @@
 
 The name and hat match the player's team definition. The hog is also always player-controlled.
 
+Example:
 <code language="lua">-- Add player team with 3 hogs
 AddMissionTeam(-1)
 AddMissionHog(100)
@@ -1411,12 +1412,11 @@
 --[[ Adds a new team with name “team 1”, the first default color (usually red), the grave “Simple”,
 the fort “Tank” the voicepack “Default” and the flag “hedgewars”. ]]</code>
 
-=== <tt>!AddMissionTeam(color)</tt> (0.9.25) ===
-Adds a new team using the player-chosen team identity when playing a singleplayer mission.
-Does not work in multiplayer.
+==== <tt>!AddMissionTeam(color)</tt> (0.9.25) ===)
+Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer.
 
-This function is very similar to `AddTeam`. Team settings like name or flag do not need to be specified, they will be taken from the player-chosen team.
-You only need to specify the color, which works like in `AddTeam`.
+This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team.
+You only need to specify the clan color, which has the same meaning as in `AddTeam`.
 
 Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish.