# HG changeset patch # User Matti Hamalainen # Date 1301162746 -7200 # Node ID 71d077d39236f977634d6838fc70d9ddd6cc5538 # Parent bacbc8e248a5a89af59fcdb01610a7dff589830e Do not set alch_testing to 0 in some places, this is not "concurrency-safe". diff -r bacbc8e248a5 -r 71d077d39236 gm-alchemist.tf --- a/gm-alchemist.tf Sat Mar 26 19:52:50 2011 +0200 +++ b/gm-alchemist.tf Sat Mar 26 20:05:46 2011 +0200 @@ -229,20 +229,17 @@ /let _match=$[replace(" ","_",{P1})]%;\ /if (galch_update(strcat("?", _match)))\ /msq Added near-match '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\ - /endif%;\ - /set alch_testing=0 + /endif /gdef -i -F -aCgreen -mregexp -t"^Flask '([a-z_ -]+)' accepted\." galch_submit_match =\ /set alch_close=1%;\ /let _match=$[replace(" ","_",{P1})]%;\ /if (galch_update(strcat("!", _match)))\ /msq Added MATCH '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\ - /endif%;\ - /set alch_testing=0 + /endif /gdef -i -F -aBCred -msimple -t"You've already researched that flask." galch_submit_already =\ - /set alch_close=1%;\ - /set alch_testing=0 + /set alch_close=1 ;; Store organ into proper can