Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CM1101 Team Project
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Wyatt
CM1101 Team Project
Commits
26bab3c5
Commit
26bab3c5
authored
2 years ago
by
Ryan Tresman
Browse files
Options
Downloads
Patches
Plain Diff
added a bunch of items to the dict
parent
fb39078d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
item_dist.py
+110
-5
110 additions, 5 deletions
item_dist.py
with
110 additions
and
5 deletions
item_dist.py
+
110
−
5
View file @
26bab3c5
...
...
@@ -29,7 +29,8 @@ spawnable_items = {
dura
=
25
,
wobble
=
0.3
,
spawnable
=
{
"
ALL_ROOMS
"
:
0.25
"
ALL_ROOMS
"
:
0.25
,
kitchen
:
0.5
}
),
...
...
@@ -44,6 +45,44 @@ spawnable_items = {
"
ALL_ROOMS
"
:
0.3
,
spawn_room
:
1.0
}
),
Weapon
(
id
=
"
golfclub
"
,
name
=
"
a golf club
"
,
description
=
"
Turns out the people who lived here were avid golf players.
"
,
attack
=
10
,
dura
=
50
,
wobble
=
0.2
,
spawnable
=
{
garage
:
1.0
}
),
Weapon
(
id
=
"
handgun
"
,
name
=
"
old handgun
"
,
description
=
"
Does this thing even work?
"
,
attack
=
30
,
dura
=
10
,
wobble
=
0.9
,
spawnable
=
{
dusty_bedroom
:
0.3
}
),
Weapon
(
id
=
"
whip
"
,
name
=
"
a creaky whip
"
,
description
=
"
I don
'
t want to know what this was used for... horses?
"
,
attack
=
5
,
dura
=
20
,
wobble
=
0.1
,
spawnable
=
{
"
ALL_ROOMS
"
:
0.1
,
dusty_bedroom
:
0.3
,
garage
:
0.3
}
)
],
...
...
@@ -74,6 +113,33 @@ spawnable_items = {
first_hallway
:
0.3
,
observatory
:
0.25
}
),
Defense
(
id
=
"
apron
"
,
name
=
"
a well used apron
"
,
description
=
"
Covered in cooking stains. Clearly not cleaned all too well.
"
,
defense
=
0.1
,
dura
=
30
,
wobble
=
0.2
,
spawnable
=
{
kitchen
:
0.8
,
wine_cellar
:
0.2
}
),
Defense
(
id
=
"
suit_of_armour
"
,
name
=
"
A pristine suit of armour
"
,
description
=
"
Whoever owned this before took great care of it. It is still shiny!
"
,
defense
=
0.6
,
dura
=
150
,
wobble
=
0.05
,
spawnable
=
{
high_tower
:
0.1
,
basement
:
0.1
,
garage
:
0.1
}
)
],
...
...
@@ -85,22 +151,61 @@ spawnable_items = {
health
=
40
,
spawnable
=
{
first_hallway
:
0.5
,
dusty_bedroom
:
0.5
dusty_bedroom
:
0.5
,
kitchen
:
1.0
}
),
HealthItem
(
id
=
'
firstaid
'
,
name
=
'
a first aid kit
'
,
description
=
"
t
his can heal any ailment at a whim!
"
,
description
=
"
T
his can heal any ailment at a whim!
"
,
health
=
100
,
spawnable
=
{
dusty_bedroom
:
0.1
dusty_bedroom
:
0.1
,
conservatory
:
0.1
,
high_tower
:
0.3
}
),
HealthItem
(
id
=
"
apple
"
,
name
=
"
an apple
"
,
description
=
"
An apple a day keeps the doctors away.
"
,
health
=
20
,
spawnable
=
{
"
ALL_ROOMS
"
:
0.3
,
kitchen
:
0.8
}
)
],
"
other
"
:
[]
"
magic
"
:
[
Magic
(
id
=
"
strange_potion
"
,
name
=
"
a strange potion
"
,
description
=
"
A vile of unknown contents. Doesn
'
t smell of anything.
"
,
magic
=
0.3
,
spawnable
=
{
high_tower
:
0.5
,
garden
:
0.3
,
garage
:
0.2
,
observatory
:
0.2
,
}
),
Magic
(
id
=
"
wine
"
,
name
=
"
a bottle of wine
"
,
description
=
"
Bourgogne Pinot Noir 2003. Exquisite.
"
,
magic
=
0.5
,
spawnable
=
{
conservatory
:
0.2
,
wine_cellar
:
0.9
,
kitchen
:
0.2
,
}
)
]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment