-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconverter.py
70 lines (59 loc) · 1.13 KB
/
converter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
import json
import Inventory
# Currencies included in the game:
# Copper, Silver, Electrum, Gold, Platinum
def cu_ag(amt):
return amt / 10
def cu_es(amt):
return amt / 50
def cu_au(amt):
return amt / 100
def cu_pt(amt):
return amt / 1000
def ag_cu(amt):
return amt * 10
def ag_es(amt):
return amt / 5
def ag_au(amt):
return amt / 10
def ag_pt(amt):
return amt / 100
def es_cu(amt):
return amt * 50
def es_ag(amt):
return amt * 5
def es_au(amt):
return amt / 2
def es_pt(amt):
return amt / 20
def au_cu(amt):
return amt * 100
def au_ag(amt):
return amt * 10
def au_es(amt):
return amt * 2
def au_pt(amt):
return amt /10
def pt_cu(amt):
return amt * 1000
def pt_ag(amt):
return amt * 100
def pt_es(amt):
return amt * 20
def pt_ag(amt):
return amt * 10
def forex(amt,cur):
if cur == "cp":
return amt - 250
elif cur == "sp":
return amt - 100
elif cur == "ep":
return amt - 50
elif cur == "gp":
return amt - 10
elif cur == "pp":
return amt - 5
def trades(amt,cur):
if cut >= 100:
pass