Added skills and Partial support for feats.. Breaking change.. I really
need to start doing pull requests and branches..
Showing
5 changed files
with
13 additions
and
2 deletions
1 | import sys | ||
2 | |||
3 | if 'WiPy' in sys.platform: | ||
4 | from ucrypto import getrandbits | ||
5 | import network | ||
6 | wlan = network.WLAN(mode=network.WLAN.STA) | ||
7 | wlan.connect('Volley', auth=(network.WLAN.WPA2, '6198472223')) | ||
8 | |||
1 | import weemud | 9 | import weemud |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
1 | {"name": "test", "password": "6c76899eb15393064b4f4db94805e5862232920b", "room": "town/tavern", "abilities": {"str": 10, "dex": 23, "con": 10, "int": 12, "wis": 10, "cha": 8}, "equipment": {"finger": [null, null], "hand": [null, null], "arm": [null, null], "leg": [null, null], "foot": [null, null], "head": null, "neck": null, "back": null, "body": null, "waist": null}, "inventory": {"bag": [{"expires": 0, "inventory": {"shirt": [{"expires": 0}]}}]}, "prompt": "hp %hp mp %mp> ", "aliases": {}, "hp": 100, "mp": 10, "maxhp": 100, "maxmp": 10, "maxsta": 10, "sta": 10, "aa": "1d2", "mpr": 0.25, "star": 0.4, "weapon": null, "sp": {}, "at": {"kick": {"cost": 5, "dmg": "2d4", "desc": "You unleash a powerful kick"}}, "createstep": 7, "color_enabled": true, "over_13": true, "race": "Android", "theme": "Ace Pilot", "class": "Envoy", "abilitypoints": 0, "baseattack": 0, "fort": 0, "ref": 2, "will": 2} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | {"name": "test", "password": "6c76899eb15393064b4f4db94805e5862232920b", "room": "town/tavern", "abilities": {"str": 10, "dex": 11, "con": 10, "int": 10, "wis": 10, "cha": 10}, "equipment": {"finger": [null, null], "hand": [null, null], "arm": [null, null], "leg": [null, null], "foot": [null, null], "head": null, "neck": null, "back": null, "body": null, "waist": null}, "inventory": {"bag": [{"expires": 0, "inventory": {"shirt": [{"expires": 0}]}}]}, "skills": {}, "prompt": "hp %hp mp %mp> ", "aliases": {}, "level": 1, "hp": 10, "mp": 10, "maxhp": 10, "maxmp": 10, "maxsta": 10, "sta": 10, "aa": "1d2", "mpr": 0.25, "star": 0.4, "weapon": null, "sp": 7, "at": {"kick": {"cost": 5, "dmg": "2d4", "desc": "You unleash a powerful kick"}}, "createstep": 7, "color_enabled": true, "over_13": true, "race": "Human", "theme": "Ace Pilot", "class": "Envoy", "abilitypoints": 12, "baseattack": 0, "fort": 0, "ref": 2, "will": 2, "maxsp": 7, "maxrp": 3, "rp": 3, "skillpoints": 9} | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -3,6 +3,8 @@ import sys | ... | @@ -3,6 +3,8 @@ import sys |
3 | 3 | ||
4 | if 'esp' in sys.platform: | 4 | if 'esp' in sys.platform: |
5 | from urandom import getrandbits | 5 | from urandom import getrandbits |
6 | elif 'WiPy' in sys.platform: | ||
7 | from ucrypto import getrandbits | ||
6 | else: | 8 | else: |
7 | from random import getrandbits | 9 | from random import getrandbits |
8 | 10 | ||
... | @@ -15,7 +17,7 @@ codes = {'resetall': 0, 'bold': 1, 'underline': 4, | ... | @@ -15,7 +17,7 @@ codes = {'resetall': 0, 'bold': 1, 'underline': 4, |
15 | 17 | ||
16 | 18 | ||
17 | def password_hash(name, password): | 19 | def password_hash(name, password): |
18 | if 'esp' in sys.platform: | 20 | if sys.platform in ['esp', 'WiPy']: |
19 | import uhashlib | 21 | import uhashlib |
20 | return ''.join(['%.2x' % i for i in uhashlib.sha1(password + 'weemud' + name).digest()]) | 22 | return ''.join(['%.2x' % i for i in uhashlib.sha1(password + 'weemud' + name).digest()]) |
21 | else: | 23 | else: | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment