Comments (3)
Also, objects need value now.
from mud-backend.
Since we don't want to hand-craft a bunch of values onto things (booooring), let's do some maths:
- Objects have a base cost, say N gp
- Material has a factor cost associated with it.
- Cloth: 1
- Leather: 1.25
- Hard leather: 1.5
- Copper: 1.5
- Iron: 1.75
- Steel: 2
- Magic stuff is insanely expensive. It should be. It's freakin' magic, man.
- Attribute modifier: x2 x (attribute modifier / 2)
- Damage modifier: x2 x (max damage / 2)
- Character attribute: x2 x (modifier / 10)
So Shandian Bianyuan would be 50 (base) x2 (steel) x2 (att1) x2 (att2) x2 x3 (dmg) => 2400 gp
Adventurer's ring would be 25 (base) x2 x2.5 (att1) x2 x2.5 (att2) x2 x2.5 (att3) => 3125 gp
Seems reasonable.
from mud-backend.
Hm. I'm fine with having currency
be a 'thing' on a Character, as money is weird. But we also need to manipulate money as an object.
$ drop 50 gold
You drop 50 gold.
$ look
...
gold (50)
The "(50)" should be something that doesn't matter, it just tells us how much is there. So you can do something like:
$ get gold
You pick up gold (50)
And:
$ get 0.gold
The best way to do this is to create the gold as an inanimate object. That makes it work like most other objects, and it will be saved, etc.
When you pick it up, we should convert it to currency. When you drop it, it should create a new Inanimate on the fly and generate it. (Or rather, we'll have a new factory that does that.)
Commands that should manipulate money:
- Put
- Get
- Drop
Obviously eventually we'll have 'give' and 'buy' and what-not, but that'll work for now.
from mud-backend.
Related Issues (20)
- Support monetary rewards
- Quests: Spawning a boss
- [Fighter]: Double attack command HOT 1
- [Fighter] Shield Bash
- [Fighter] Parry HOT 1
- [Fighter] Implement Cleave
- [Fighter]: Dual wield/ambidexterity
- [Adventurer's Guild Quest]: Add a quest that teaches a user how to play the game HOT 1
- [Priest] Add the ability to chant HOT 1
- [Priest] Add the healing prayer (water) HOT 2
- [Priest] Energize prayer (fire)
- [Priest]: "Wind" or "speed" prayer
- [Priest]: Earth or defensive prayer
- [Priest]: Darkness prayer (evasion)
- [Priest]: Light prayer HOT 5
- [Priest]: Spirit prayer
- [Priest] Prayer of wrath (beast)
- [Party]: Add the basic command/interface
- [Party]: Add follow the leader option
- [Party]: Add auto-attack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mud-backend.