aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/ch_functions.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-06-17 23:54:03 +0200
committerorwell <orwell@bleipb.de>2025-06-17 23:54:03 +0200
commitf1eda7f572891c04eea6662a18c7626d9a46abef (patch)
tree2cd5cf2541787d25bc372f7db7730ad62086b52f /advtrains_line_automation/ch_functions.lua
parent803bd1c2a28499125d5b1fb49e5595a033e07d39 (diff)
downloadadvtrains-f1eda7f572891c04eea6662a18c7626d9a46abef.tar.gz
advtrains-f1eda7f572891c04eea6662a18c7626d9a46abef.tar.bz2
advtrains-f1eda7f572891c04eea6662a18c7626d9a46abef.zip
Revert back some of the stoprail strings to english and tag them with S
Diffstat (limited to 'advtrains_line_automation/ch_functions.lua')
-rw-r--r--advtrains_line_automation/ch_functions.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/advtrains_line_automation/ch_functions.lua b/advtrains_line_automation/ch_functions.lua
index 0b4514f..b9cd962 100644
--- a/advtrains_line_automation/ch_functions.lua
+++ b/advtrains_line_automation/ch_functions.lua
@@ -2,6 +2,18 @@
-- Functions from Cesky Hvozd utility libraries which are used in the code integrated from Singularis are now provided here.
+--[[
+Jednoduchá funkce, která vyhodnotí condition jako podmínku
+a podle výsledku vrátí buď true_result, nebo false_result.
+]]
+local function ifthenelse(condition, true_result, false_result)
+ if condition then
+ return true_result
+ else
+ return false_result
+ end
+end
+
local ch_core = {}
-- gives various info about a player. we return only what is relevant outside CH