Document sharing + upgrades

This commit is contained in:
Condorra 2024-01-07 16:43:26 +11:00
parent bf3860dd11
commit 760598e3a1
8 changed files with 414 additions and 485 deletions

801
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,4 +5,4 @@ edition = "2021"
[dependencies] [dependencies]
ansi_macro = { path = "../ansi_macro" } ansi_macro = { path = "../ansi_macro" }
nom = "7.1.1" nom = "7.1.3"

View File

@ -7,7 +7,7 @@ edition = "2021"
proc-macro = true proc-macro = true
[dependencies] [dependencies]
nom = "7.1.1" nom = "7.1.3"
quote = "1.0.23" quote = "1.0.35"
syn = "2.0.38" syn = "2.0.48"
ansi_markup = { path = "../ansi_markup" } ansi_markup = { path = "../ansi_markup" }

View File

@ -4,4 +4,4 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
nom = "7.1.1" nom = "7.1.3"

View File

@ -6,45 +6,45 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
base64 = "0.21.4" base64 = "0.21.5"
blastmud_interfaces = { path = "../blastmud_interfaces" } blastmud_interfaces = { path = "../blastmud_interfaces" }
ansi = { path = "../ansi" } ansi = { path = "../ansi" }
ansi_markup = { path = "../ansi_markup" } ansi_markup = { path = "../ansi_markup" }
deadpool = "0.10.0" deadpool = "0.10.0"
deadpool-postgres = { version = "0.11.0", features = ["serde"] } deadpool-postgres = { version = "0.12.1", features = ["serde"] }
futures = "0.3.25" futures = "0.3.30"
log = "0.4.17" log = "0.4.20"
nix = { version = "0.27.1", features = ["process", "signal"] } nix = { version = "0.27.1", features = ["process", "signal"] }
ring = "0.17.2" ring = "0.17.7"
serde = { version = "1.0.150", features = ["derive", "serde_derive"] } serde = { version = "1.0.195", features = ["derive", "serde_derive"] }
serde_yaml = "0.9.14" serde_yaml = "0.9.30"
simple_logger = "4.0.0" simple_logger = "4.3.3"
tokio = { version = "1.23.0", features = ["signal", "net", "macros", "rt-multi-thread", "rt", "tokio-macros", "time", "sync", "io-util"] } tokio = { version = "1.35.1", features = ["signal", "net", "macros", "rt-multi-thread", "rt", "tokio-macros", "time", "sync", "io-util"] }
tokio-postgres = { version = "0.7.7", features = ["with-uuid-1", "with-serde_json-1"] } tokio-postgres = { version = "0.7.10", features = ["with-uuid-1", "with-serde_json-1"] }
tokio-serde = { version = "0.8.0", features = ["serde", "serde_cbor", "cbor"] } tokio-serde = { version = "0.8.0", features = ["serde", "serde_cbor", "cbor"] }
tokio-stream = "0.1.11" tokio-stream = "0.1.14"
tokio-util = { version = "0.7.4", features = ["codec"] } tokio-util = { version = "0.7.10", features = ["codec"] }
uuid = { version = "1.2.2", features = ["v4", "serde", "rng"] } uuid = { version = "1.6.1", features = ["v4", "serde", "rng"] }
serde_json = "1.0.91" serde_json = "1.0.111"
phf = { version = "0.11.1", features = ["macros"] } phf = { version = "0.11.2", features = ["macros"] }
async-trait = "0.1.60" async-trait = "0.1.77"
nom = "7.1.1" nom = "7.1.3"
ouroboros = "0.18.0" ouroboros = "0.18.2"
chrono = { version = "0.4.23", features = ["serde"] } chrono = { version = "0.4.31", features = ["serde"] }
bcrypt = "0.15.0" bcrypt = "0.15.0"
validator = "0.16.0" validator = "0.16.1"
itertools = "0.11.0" itertools = "0.12.0"
once_cell = "1.16.0" once_cell = "1.19.0"
rand = "0.8.5" rand = "0.8.5"
async-recursion = "1.0.0" async-recursion = "1.0.5"
rand_distr = "0.4.3" rand_distr = "0.4.3"
humantime = "2.1.0" humantime = "2.1.0"
rust_decimal = "1.28.0" rust_decimal = "1.33.1"
mockall_double = "0.3.0" mockall_double = "0.3.1"
[dev-dependencies] [dev-dependencies]
tokio-test = "0.4.2" tokio-test = "0.4.3"
mockall = "0.11.3" mockall = "0.12.1"
[features] [features]
default = [] default = []

View File

@ -210,3 +210,11 @@ put: |-
You can put something in a container using a command like <bold>put<reset> thing <bold>in<reset> container. See also <bold>help get<reset> to learn how to get them back out. You can put something in a container using a command like <bold>put<reset> thing <bold>in<reset> container. See also <bold>help get<reset> to learn how to get them back out.
get: |- get: |-
You can get something out of a container using a command like <bold>get<reset> thing <bold>from<reset> container. You can get something out of a container using a command like <bold>get<reset> thing <bold>from<reset> container.
sharing: |-
Sharing lets you share knowledge with another player. Because knowledge is power, sharing will increase the stats of both players for a little while (10 minutes); the better a job you do at sharing, the greater the impact on your stats (up to a maximum of two points of increase to every stat). If you share twice, you will forget what you from the first sharing, and the more recent one will affect your stats. Sharing is therefore a great way to collaborate with another player to temporarily become more capable. However, sharing effectively takes great skill [both player skill, and share skill in the game].
Type <bold>share knowledge with<reset> player to start a sharing session. You will immediately begin sharing, and if you type <bold>share status<reset>, you'll start to see growth in certain interest types. Sharing stops when the pair sharing get to 100% on any interest level and get bored - so you'll want to change topics to avoid that. To get the best score, try to get all interest levels balanced to just below the maximum before you go over on any. However, there are a couple of catches: firstly, changing anything about the conversation is going to be awkward (might fail) if you try too soon after the last change - the higher your Share skill, the faster you can change with a high chance of success. Secondly, to discuss some topics, you need to switch to an appropriate conversation style (amicable, playful, or serious) for the topic first - which could take even longer if your skill level is low. It is a lot easier if yyou work with your conversational partner - they might be able to change earlier.
Throughout the conversation, the game will tell you what styles you can change to, and what topics you can change to under the current style. Just type the name of the topic or style to switch. Each topic has a different rate at which it increases or decreases different interest types.
If you find the pace of the conversation too fast or slow, you can also change the pace with <bold>share slowly<reset>, <bold>share normally<reset> or <bold>share quickly<reset>. Keep in mind changing the pace counts as a change, like changing topics - but once you have set the pace, it scales how fast conversational interest levels grow.

View File

@ -6,5 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
serde = { version = "1.0.149", features = ["derive", "serde_derive"] } serde = { version = "1.0.195", features = ["derive", "serde_derive"] }
uuid = { version = "1.2.2", features = ["serde"] } uuid = { version = "1.6.1", features = ["serde"] }

View File

@ -7,17 +7,17 @@ edition = "2021"
[dependencies] [dependencies]
blastmud_interfaces = { path = "../blastmud_interfaces" } blastmud_interfaces = { path = "../blastmud_interfaces" }
futures = "0.3.25" futures = "0.3.30"
log = "0.4.17" log = "0.4.20"
nix = "0.27.1" nix = "0.27.1"
once_cell = "1.17.0" once_cell = "1.19.0"
rand = "0.8.5" rand = "0.8.5"
serde = { version = "1.0.149", features = ["derive", "serde_derive"] } serde = { version = "1.0.195", features = ["derive", "serde_derive"] }
serde_yaml = "0.9.14" serde_yaml = "0.9.30"
simple_logger = "4.0.0" simple_logger = "4.3.3"
tokio = { version = "1.23.0", features = ["signal", "net", "macros", "rt-multi-thread", "rt", "tokio-macros", "time", "sync", "io-util"] } tokio = { version = "1.35.1", features = ["signal", "net", "macros", "rt-multi-thread", "rt", "tokio-macros", "time", "sync", "io-util"] }
tokio-serde = { version = "0.8.0", features = ["cbor", "serde", "serde_cbor"] } tokio-serde = { version = "0.8.0", features = ["cbor", "serde", "serde_cbor"] }
tokio-stream = "0.1.11" tokio-stream = "0.1.14"
tokio-util = { version = "0.7.4", features = ["codec"] } tokio-util = { version = "0.7.10", features = ["codec"] }
uuid = { version = "1.2.2", features = ["rng", "serde", "v4"] } uuid = { version = "1.6.1", features = ["rng", "serde", "v4"] }
warp = "0.3.3" warp = "0.3.6"