「view this page in B3 βῆτα server」

Revisions №17

branch: interactive/develop 「№17」
Commited by: Rocco Moretti
GitHub commit link: 「bd293c9551b7869e」 「№3580」
Difference from previous tested commit:  code diff
Commit date: 2018-10-26 11:34:42

Merge pull request #3580 from RosettaCommons/roccomoretti/interactive_lua_bonus_filter Foldit: Fix issue with Lua scripting and Condition Filters With the filter re-write, attempting to use on a filter which is not a BonusFilter will result in a crash of Foldit as a whole. Update things such that it just raises an error within Lua itself. Additionally, add a function which will allow scripts to tell if a given filter will raise such an error when passed to GetBonus(). Release Notes: * Lua: Fix filter.GetBonus() to raise an error rather than crashing when passed the Exploration filter. * Lua: Add a filter.HasBonus() which returns true if filter.GetBonus() returns a value, false otherwise.

...