Skip to content

Commit

Permalink
Revert "feat: Escape to a random location (#199)" (#212)
Browse files Browse the repository at this point in the history
This reverts commit 889f09d.
  • Loading branch information
notV4l authored Oct 25, 2023
1 parent 507a619 commit fc0a970
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sozo migrate
torii --world {world_address}

# Setup default authorization
./scripts/default_auth.sh [local]
./scripts/default_auth.sh

# Start frontend, located at http://localhost:3000
cd web
Expand All @@ -41,26 +41,6 @@ Note: If the world address your game is deployed to is different, you'll need to
- script/default_auth.sh
- web/src/constants.ts

#### Any errors when doing `sozo build` ?

This might be because your version of sozo is not correct.

Check the `Scarb.toml` file and get the `rev` tag from the `dojo` dependency:
```toml
[dependencies]
dojo = { git = "https://github.com/dojoengine/dojo.git", rev = "ca2d2e6dd1ef0fe311310ba0728be8743b1d5cc8" }
```

In this example, this is how we would install the correct version:
```bash
git clone https://github.com/dojoengine/dojo.git
cd dojo
git checkout ca2d2e6dd1ef0fe311310ba0728be8743b1d5cc8
dojoup -p .
```

This will reinstall the binaries in your `~/.dojo/bin` folder.

### With Madara

TBD
Expand Down
4 changes: 2 additions & 2 deletions src/systems/decide.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ mod decide {
use rollyourown::components::risks::{Risks, RisksTrait};
use rollyourown::components::player::{Player, PlayerTrait};
use rollyourown::components::drug::{Drug, DrugTrait};
use rollyourown::components::location::LocationTrait;
use rollyourown::utils::random;

#[derive(Copy, Drop, Serde, PartialEq)]
Expand Down Expand Up @@ -95,7 +94,7 @@ mod decide {
} else {
player.status = PlayerStatus::Normal;
player.turns_remaining -= 1;
player.location_id = LocationTrait::random();
player.location_id = next_location_id;
player.run_attempts = 0;
}

Expand All @@ -118,6 +117,7 @@ mod decide {
game_id, player_id, outcome, health_loss, drug_loss, cash_loss
};
emit!(ctx.world, consequence_event);

}

fn take_drugs(
Expand Down
2 changes: 0 additions & 2 deletions web/src/dojo/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export const outcomes: OutcomeInfo[] = [
imageSrc: "/images/sunset.png",
getResponse: (isInitial: boolean) =>
getCopResponses(Outcome.Escaped, isInitial),
description: "You fled to a random location",
color: "neon.200",
},
{
Expand All @@ -156,7 +155,6 @@ export const outcomes: OutcomeInfo[] = [
imageSrc: "/images/sunset.png",
getResponse: (isInitial: boolean) =>
getMuggerResponses(Outcome.Escaped, isInitial),
description: "You fled to a random location",
color: "neon.200",
},
{
Expand Down

1 comment on commit fc0a970

@vercel
Copy link

@vercel vercel bot commented on fc0a970 Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rollyourown – ./

rollyourown.preview.cartridge.gg
rollyourown-git-main.preview.cartridge.gg

Please sign in to comment.