You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stock M1 map always uses terminal permutation values in the range 0..9, although Aleph One does not enforce this. It might be good enough to have #Terminals always return 10 for M1 maps, and use the presence of the corresponding resource to determine validity. This would be similar to other lists with gaps such as Projectiles or Scenery. The behavior of Terminals() would be comparable to M2, iterating used and unused terminals intended for the current level.
Triggers could still return nil if a terminal outside the conventional range were activated, but the common cases would work. It also avoids dealing with negative terminal IDs, which would happen if we considered all terminals in a scenario to be valid.
M1 maps do not have M2 terminals, so
number_of_terminal_texts()
always returns 0. Unfortunately, this is used for Lua_Terminal::Valid, so:# Terminals
andTerminals[id]
do not workTriggers.enter_terminal()
andTriggers.exit_terminal()
return nil for the first argumentPlayer::activate_terminal
does still work, if you pass a number.The text was updated successfully, but these errors were encountered: