# HG changeset patch # User Wuzzy # Date 1544274642 -3600 # Node ID 4edc73fc722c773d13d5223d84de5ff61709b8dc # Parent b251aa50c0d3d57d8a4a42b9aab5a66d4f980f3d Add chat command "/help room" to show room help in game diff -r b251aa50c0d3 -r 4edc73fc722c ChangeLog.txt --- a/ChangeLog.txt Sat Dec 08 14:02:25 2018 +0100 +++ b/ChangeLog.txt Sat Dec 08 14:10:42 2018 +0100 @@ -1,5 +1,8 @@ + features * bugfixes +=============== 1.0.0 (unreleased) ================= + + New chat command: “/help room” (shows room chat commands within the game) + ====================== 0.9.25 ====================== HIGHLIGHTS: + Complete overhaul of Continental supplies diff -r b251aa50c0d3 -r 4edc73fc722c hedgewars/uChat.pas --- a/hedgewars/uChat.pas Sat Dec 08 14:02:25 2018 +0100 +++ b/hedgewars/uChat.pas Sat Dec 08 14:10:42 2018 +0100 @@ -589,6 +589,15 @@ exit end; + if (copy(s, 2, 9) = 'help room') then + begin + if (gameType = gmtNet) then + SendConsoleCommand('/help') + else + AddChatString(#0 + shortstring(trcmd[sidCmdHelpRoomFail])); + exit; + end; + if (copy(s, 2, 4) = 'help') then begin AddChatString(#3 + shortstring(trcmd[sidCmdHeaderBasic])); @@ -608,6 +617,8 @@ AddChatString(#3 + shortstring(trcmd[sidCmdHistory])); AddChatString(#3 + shortstring(trcmd[sidCmdHelp])); AddChatString(#3 + shortstring(trcmd[sidCmdHelpTaunts])); + if gameType = gmtNet then + AddChatString(#3 + shortstring(trcmd[sidCmdHelpRoom])); exit end; diff -r b251aa50c0d3 -r 4edc73fc722c hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Sat Dec 08 14:02:25 2018 +0100 +++ b/hedgewars/uTypes.pas Sat Dec 08 14:10:42 2018 +0100 @@ -511,7 +511,8 @@ sidCmdHeaderTaunts, sidCmdSpeech, sidCmdThink, sidCmdYell, sidCmdSpeechNumberHint, sidCmdHsa, sidCmdHta, sidCmdHya, sidCmdHurrah, sidCmdIlovelotsoflemonade, sidCmdJuggle, - sidCmdRollup, sidCmdShrug, sidCmdWave, sidCmdUnknown); + sidCmdRollup, sidCmdShrug, sidCmdWave, sidCmdUnknown, + sidCmdHelpRoom, sidCmdHelpRoomFail); // Events that are important for the course of the game or at least interesting for other reasons TEventId = (eidDied, eidDrowned, eidRoundStart, eidRoundWin, eidRoundDraw, diff -r b251aa50c0d3 -r 4edc73fc722c share/hedgewars/Data/Locale/de.txt --- a/share/hedgewars/Data/Locale/de.txt Sat Dec 08 14:02:25 2018 +0100 +++ b/share/hedgewars/Data/Locale/de.txt Sat Dec 08 14:10:42 2018 +0100 @@ -1420,3 +1420,5 @@ 06:24=/shrug: Igel mit den Achseln zucken lassen 06:25=/wave: Igel winken lassen 06:26=Unbekannter Befehl oder ungültige Parameter. Sag »/help« im Chat für eine Liste an Befehlen. +06:27=/help room: Raum-Chatbefehle auflisten +06:28=Du bist nicht online! diff -r b251aa50c0d3 -r 4edc73fc722c share/hedgewars/Data/Locale/en.txt --- a/share/hedgewars/Data/Locale/en.txt Sat Dec 08 14:02:25 2018 +0100 +++ b/share/hedgewars/Data/Locale/en.txt Sat Dec 08 14:10:42 2018 +0100 @@ -1325,3 +1325,5 @@ 06:24=/shrug: Make hedgehog shrug 06:25=/wave: Make hedgehog wave its hand 06:26=Unknown command or invalid parameters. Say “/help” in chat for a list of commands. +06:27=/help room: List room chat commands +06:28=You're not online!