The webclient can for some reason run into problems when one verb is the same as another verb in name but with something added to the front
Numbered Steps to Reproduce Problem:
1. Use the code below
2. Use the webclient
3. Click on "Verb A"
4. Watch as "B Verb A" gets triggered instead
Code Snippet (if applicable) to Reproduce Problem:
/mob/verb/verbb()
set name = "B Verb A"
src << "B Verb A"
/client/verb/verba(some_text as text)
set name = "Verb A"
src << "Verb A [some_text]"
Expected Results:
Triggers "Verb A"
Actual Results:
Triggers "B Verb A"
Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
This issue only happens sometimes, but this test case seems to reproduce it.
Also renaming the verbs so that one does not end with the other also fixes it
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
Rename the verbs