Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.07k stars 78 forks source link

Add missing failureTarget trigger for codemaster #606

Closed thokkat closed 4 weeks ago

thokkat commented 1 month ago

If ordered=true and firstFalseIsFailure=false then failureTarget is triggered if number of codemaster ontrigger events matches the number of slaves and either not all slaves have sent trigger or order is wrong.

Testcases are both upper rooms at switch riddle location. In the right room e.g. any wrong sequence of three activated switches causes a new spawn of shadow skeleton warriors.

thokkat commented 4 weeks ago

also would be nice to have less nested 'if''s (and possibly more early-outs instead), for readability

Done.

Try commented 4 weeks ago

Merged, thanks!