From a2b21dff76b66b0f73d49b9f1b8bee94f2e7fe17 Mon Sep 17 00:00:00 2001 From: Jason Le Long Date: Thu, 8 Mar 2018 13:57:31 +0000 Subject: Equipment rolls working as desired --- sassbot/modules/artifact2.py | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) (limited to 'sassbot/modules/artifact2.py') diff --git a/sassbot/modules/artifact2.py b/sassbot/modules/artifact2.py index bddd968..04c3db2 100644 --- a/sassbot/modules/artifact2.py +++ b/sassbot/modules/artifact2.py @@ -26,26 +26,30 @@ def adventurersinc(phenny, input): parameters['LiveDB'] = 'Artifact2.0' parameters['LiveVersion'] = '2.0' parameters['Nick'] = input.nick - - - #Actions based on player state - if strPlayerState == "newchar": - phenny.say("New Character") - - elif strPlayerState == "rest": - phenny.say("Resting") - - elif strPlayerState == "adventuring": - phenny.say("Exploring") - - elif strPlayerState == "combat": - phenny.say("Combat") - - elif strPlayerState == "debug": - itemCode = input.group(2).split(':') - #phenny.say(str(input.group(2))) - NewItem = EquipmentCreate.GenerateItem(phenny, parameters, itemCode) - phenny.say(NewItem["EquipmentName"]) + + if strCmd1 == "git": + phenny.say("Artifact v2 git: http://www.blatech.co.uk/JasonFS/Artifact-v2") + elif strCmd1 == "version": + phenny.say("Artifact v2 - alpha 0.0") + else: + #Actions based on player state + if strPlayerState == "newchar": + phenny.say("New Character") + + elif strPlayerState == "rest": + phenny.say("Resting") + + elif strPlayerState == "adventuring": + phenny.say("Exploring") + + elif strPlayerState == "combat": + phenny.say("Combat") + + elif strPlayerState == "debug": + itemCode = input.group(2).split(':') + #phenny.say(str(input.group(2))) + NewItem = EquipmentCreate.GenerateItem(phenny, parameters, itemCode) + phenny.say(NewItem["EquipmentName"]) adventurersinc.commands = ['a'] adventurersinc.priority = 'high' -- cgit v1.2.3