Skip to content

Commit

Permalink
Major refactor (#13)
Browse files Browse the repository at this point in the history
- increases max adventurer level from 127 to 181
- increases max value of all stats to 31
- increases max adventurer health from 511 to 1023
- increases max beast health from 511 to 1023
- Adventurer struct now provides Equipment struct that allows more efficient passing of Equipment data into functions instead of passing entire Adventurer
- better separation of functionality across lib functions
- upgrade project to use latest scarb 2.6.4
  • Loading branch information
loothero authored May 26, 2024
1 parent d3410e6 commit bc31b5d
Show file tree
Hide file tree
Showing 28 changed files with 3,087 additions and 3,137 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v 2.5.4
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh
RUN curl https://get.starkli.sh | bash
RUN /root/.starkli/bin/starkliup
# Specify the command to run on container start
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
SCARB_VERSION: 2.5.4
SCARB_VERSION: 2.6.4

jobs:
build:
Expand Down
30 changes: 15 additions & 15 deletions Scarb.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Code generated by scarb DO NOT EDIT.
version = 1

[[package]]
name = "adventurer"
version = "0.1.0"
dependencies = [
"beasts",
"combat",
"loot",
"market",
"obstacles",
]

[[package]]
name = "arcade_account"
version = "0.1.0"
Expand All @@ -24,14 +35,14 @@ version = "0.1.0"
name = "game"
version = "0.1.0"
dependencies = [
"adventurer",
"arcade_account",
"golden_token",
"lootitems",
"loot",
"market",
"obstacles",
"openzeppelin",
"pragma_lib",
"survivor",
]

[[package]]
Expand All @@ -44,7 +55,7 @@ dependencies = [
]

[[package]]
name = "lootitems"
name = "loot"
version = "0.1.0"
dependencies = [
"combat",
Expand All @@ -62,7 +73,7 @@ name = "market"
version = "0.1.0"
dependencies = [
"combat",
"lootitems",
"loot",
]

[[package]]
Expand All @@ -81,14 +92,3 @@ source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.9.0#364
name = "pragma_lib"
version = "1.0.0"
source = "git+https://github.com/astraly-labs/pragma-lib#2eca9b70dc505788423da1eedbf2d65563cc3102"

[[package]]
name = "survivor"
version = "0.1.0"
dependencies = [
"beasts",
"combat",
"lootitems",
"market",
"obstacles",
]
4 changes: 2 additions & 2 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ members = [
]
name = "loot_survivor"
version = "0.1.0"
description = "Loot Survivor collection of libraries and contracts for the BibliothecaDAO ecosystem and beyond."
homepage = "https://github.com/BibliothecaDAO/loot-survivor"
description = "A fully onchain arcade dungeon crawler built on Starknet in conjunction with Realms.world. Explore the dynamically generated dungeons while you fight for your life against beasts and obstacles in pursuit of a spot on the esteemed leaderboard."
homepage = "https://github.com/provable-games/loot-survivor"

[workspace.dependencies]
starknet = ">=2.5.3"
Expand Down
8 changes: 4 additions & 4 deletions contracts/adventurer/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "combat"
version = "0.1.0"

[[package]]
name = "lootitems"
name = "loot"
version = "0.1.0"
dependencies = [
"combat",
Expand All @@ -24,7 +24,7 @@ name = "market"
version = "0.1.0"
dependencies = [
"combat",
"lootitems",
"loot",
]

[[package]]
Expand All @@ -35,12 +35,12 @@ dependencies = [
]

[[package]]
name = "survivor"
name = "adventurer"
version = "0.1.0"
dependencies = [
"beasts",
"combat",
"lootitems",
"loot",
"market",
"obstacles",
]
8 changes: 3 additions & 5 deletions contracts/adventurer/Scarb.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
[package]
name = "survivor"
name = "adventurer"
version = "0.1.0"
description = "Adventurer Library"
homepage = "https://github.com/BibliothecaDAO/loot-survivor"

# See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest
homepage = "https://github.com/provable-games/loot-survivor"

[dependencies]
lootitems = { path = "../loot" }
loot = { path = "../loot" }
obstacles = { path = "../obstacles" }
combat = { path = "../combat" }
market = { path = "../market" }
Expand Down
Loading

0 comments on commit bc31b5d

Please sign in to comment.