From 839cbb2ee434dad1d30edf5132a85e8779afa371 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 4 May 2022 23:44:47 -0700 Subject: [PATCH] add short aliases for section ids in chat commands --- src/StaticGameData.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/StaticGameData.cc b/src/StaticGameData.cc index 75af7693..0615f1cf 100644 --- a/src/StaticGameData.cc +++ b/src/StaticGameData.cc @@ -18,7 +18,20 @@ const unordered_map name_to_section_id({ {"redria", 6}, {"oran", 7}, {"yellowboze", 8}, - {"whitill", 9}}); + {"whitill", 9}, + + // Shortcuts for chat commands + {"b", 3}, + {"g", 1}, + {"o", 7}, + {"pi", 5}, + {"pu", 4}, + {"r", 6}, + {"s", 2}, + {"v", 0}, + {"w", 9}, + {"y", 8}, +}); const vector lobby_event_to_name({ "none", "xmas", "none", "val", "easter", "hallo", "sonic", "newyear",