Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.17k stars 85 forks source link

Add missing failureTarget trigger for codemaster #606

Closed thokkat closed 7 months ago

thokkat commented 7 months 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 7 months ago

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

Done.

Try commented 7 months ago

Merged, thanks!