Skip to content

Commit

Permalink
bottle
Browse files Browse the repository at this point in the history
  • Loading branch information
geremachek committed Nov 6, 2021
1 parent e3e7bc2 commit 935e6d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "merlin"
version = "2.1.1"
version = "2.2.0"
authors = ["geremachek <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 3 additions & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub enum Command {
Scribe,
Adieu,
Nomen,
Bottle,
Disenchant,
Smash,
Merlin,
Expand Down Expand Up @@ -92,6 +93,7 @@ impl FromStr for Command {
"scribe" => Ok(Command::Scribe),
"adieu" => Ok(Command::Adieu),
"nomen" => Ok(Command::Nomen),
"bottle" => Ok(Command::Bottle),
"disenchant" => Ok(Command::Disenchant),
"smash" => Ok(Command::Smash),
"merlin" => Ok(Command::Merlin),
Expand Down Expand Up @@ -135,7 +137,7 @@ impl Command {
Command::Focus | Command::Traverse | Command::Appear | Command::Shave | Command::Shelve | Command::Inscribe | Command::Trample | Command::Incant |
Command::Summon | Command::Dub | Command::Spellbook | Command::Shift | Command::Infix | Command::Spine | Command::Merlin | Command::Disenchant |
Command::Smash | Command::Decant => 1,
Command::Infuse | Command::Peer | Command::Fray | Command::Defuse => 2,
Command::Infuse | Command::Peer | Command::Fray | Command::Defuse | Command::Bottle => 2,
Command::Genesis => choose_mm(1, 0),
};

Expand Down
2 changes: 1 addition & 1 deletion src/plane/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Plane {
Command::Atom => self.vision = Vision::Atom,
Command::Scribe => self.vision = Vision::Scribe,
Command::Adieu => self.running = false,
Command::Nomen => {
Command::Nomen | Command::Bottle => {
// create a new nomen, popping the name from the data vector

let n = data.pop().unwrap();
Expand Down

0 comments on commit 935e6d1

Please sign in to comment.