title
This commit is contained in:
+15
-8
@@ -1,3 +1,18 @@
|
||||
Pve needs to be good, not many players early on
|
||||
Randomly generated PVE graph to traverse with scattered rewards
|
||||
|
||||
Two types of XP -> Skill xp and Cryp XP
|
||||
Skill XP allocates points in skill tree
|
||||
Cryp XP allocates points in Cryp passive tree
|
||||
|
||||
Skills can be customised via skill tree
|
||||
|
||||
Cryp obiendience a deteoriating bar (placeholder name)
|
||||
Cryps gain obedience when playing with you in PVE, PVP or using items
|
||||
Obedience drains over time
|
||||
Obedience drains faster when training / missions
|
||||
Having obedience is desirable for getting good rewards
|
||||
|
||||
# Principles
|
||||
* Experience something
|
||||
* Express something
|
||||
@@ -11,13 +26,9 @@
|
||||
|
||||
* skills
|
||||
* handle setting account better maybe?
|
||||
* ensure cryp untargetable and doesn't resolve when KO
|
||||
* remove all statuses etc when KO
|
||||
* calculate
|
||||
* hp increase/decrease
|
||||
* private fields for opponents
|
||||
* attack
|
||||
* can you attack yourself?
|
||||
* write players row for every team+cryp added
|
||||
* return results<>
|
||||
* defensive
|
||||
@@ -26,8 +37,6 @@
|
||||
*
|
||||
|
||||
* Items
|
||||
* unselect item with esc + button
|
||||
* Grid reroll
|
||||
* Colour scheme
|
||||
|
||||
* Missions
|
||||
@@ -38,8 +47,6 @@
|
||||
* delete games when a cryp is deleted
|
||||
* does this need to happen? can have historical games
|
||||
|
||||
* run nginx as not root
|
||||
|
||||
# Art Styles
|
||||
* Aztec
|
||||
* youkai
|
||||
|
||||
+36
-36
@@ -1,36 +1,36 @@
|
||||
extern crate rand;
|
||||
extern crate uuid;
|
||||
extern crate tungstenite;
|
||||
extern crate env_logger;
|
||||
extern crate bcrypt;
|
||||
|
||||
extern crate dotenv;
|
||||
extern crate petgraph;
|
||||
extern crate postgres;
|
||||
extern crate r2d2;
|
||||
extern crate r2d2_postgres;
|
||||
|
||||
extern crate serde;
|
||||
extern crate serde_cbor;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[macro_use] extern crate failure;
|
||||
// #[macro_use] extern crate failure_derive;
|
||||
|
||||
mod cryp;
|
||||
mod game;
|
||||
mod net;
|
||||
mod skill;
|
||||
mod passives;
|
||||
mod rpc;
|
||||
mod account;
|
||||
mod item;
|
||||
|
||||
use dotenv::dotenv;
|
||||
use net::{start};
|
||||
|
||||
fn main() {
|
||||
dotenv().ok();
|
||||
start()
|
||||
}
|
||||
extern crate rand;
|
||||
extern crate uuid;
|
||||
extern crate tungstenite;
|
||||
extern crate env_logger;
|
||||
extern crate bcrypt;
|
||||
|
||||
extern crate dotenv;
|
||||
extern crate petgraph;
|
||||
extern crate postgres;
|
||||
extern crate r2d2;
|
||||
extern crate r2d2_postgres;
|
||||
|
||||
extern crate serde;
|
||||
extern crate serde_cbor;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[macro_use] extern crate failure;
|
||||
// #[macro_use] extern crate failure_derive;
|
||||
|
||||
mod cryp;
|
||||
mod game;
|
||||
mod net;
|
||||
mod skill;
|
||||
mod passives;
|
||||
mod rpc;
|
||||
mod account;
|
||||
mod item;
|
||||
|
||||
use dotenv::dotenv;
|
||||
use net::{start};
|
||||
|
||||
fn main() {
|
||||
dotenv().ok();
|
||||
start()
|
||||
}
|
||||
|
||||
+4
-4
@@ -63,10 +63,10 @@ impl Rpc {
|
||||
"game_skill" => Rpc::game_skill(data, &mut tx, account.unwrap(), client),
|
||||
"game_target" => Rpc::game_target(data, &mut tx, account.unwrap(), client),
|
||||
"account_cryps" => Rpc::account_cryps(data, &mut tx, account.unwrap(), client),
|
||||
"item_list" => Rpc::item_list(data, &mut tx, account.unwrap(), client),
|
||||
"account_items" => Rpc::account_items(data, &mut tx, account.unwrap(), client),
|
||||
"item_use" => Rpc::item_use(data, &mut tx, account.unwrap(), client),
|
||||
|
||||
_ => Err(err_msg("unknown method")),
|
||||
_ => Err(format_err!("unknown method - {:?}", v.method)),
|
||||
};
|
||||
|
||||
tx.commit()?;
|
||||
@@ -258,9 +258,9 @@ impl Rpc {
|
||||
})
|
||||
}
|
||||
|
||||
fn item_list(_data: Vec<u8>, tx: &mut Transaction, account: Account, _client: &mut WebSocket<TcpStream>) -> Result<RpcResponse, Error> {
|
||||
fn account_items(_data: Vec<u8>, tx: &mut Transaction, account: Account, _client: &mut WebSocket<TcpStream>) -> Result<RpcResponse, Error> {
|
||||
Ok(RpcResponse {
|
||||
method: "item_list".to_string(),
|
||||
method: "account_items".to_string(),
|
||||
params: RpcResult::ItemList(items_list(tx, &account)?)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user