Skip to content

Commit

Permalink
major refactor
Browse files Browse the repository at this point in the history
- increase max adventurer level to 181
- max value for all stats is now 31
- max adventurer health is now 1023
- max beast health is now 1023
- better seperation of lib functions
- Adventurer struct now provides Equipment struct that allows more efficient passing of Equipment data into functions instead of passing entire Adventurer
  • Loading branch information
= committed May 26, 2024
1 parent d3410e6 commit faee19a
Show file tree
Hide file tree
Showing 26 changed files with 2,993 additions and 3,129 deletions.
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 faee19a

Please sign in to comment.