diff --git a/README.md b/README.md index a00274a6d..38d6e3d50 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/src/systems/decide.cairo b/src/systems/decide.cairo index 02a8165c8..ba8a7d0b7 100644 --- a/src/systems/decide.cairo +++ b/src/systems/decide.cairo @@ -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)] @@ -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; } @@ -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( diff --git a/web/src/dojo/helpers.ts b/web/src/dojo/helpers.ts index 4bd4d6d79..e9eb0c4a8 100644 --- a/web/src/dojo/helpers.ts +++ b/web/src/dojo/helpers.ts @@ -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", }, { @@ -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", }, {