Created
July 5, 2014 10:33
-
-
Save StoneCypher/922fe8d8e46f1fdfee04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Pricers = { | |
| "us": { cur: "$", price: function(Slots) { return (Slots*10)+10; } }, | |
| "ru": { cur: "E", price: function(Slots) { return Slots*0.5; } } | |
| }; | |
| function curFmt(Cur, X) { return Pricers[Cur].cur + X.toString(); } | |
| function price(Cur, Amt) { return curFmt(Cur, Pricers[Cur].price(Amt)); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment