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
7c17df32
Commit
7c17df32
authored
2 years ago
by
Harry Wyatt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed variable name error
parent
76ece374
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
+2
-2
2 additions, 2 deletions
item_dist.py
with
2 additions
and
2 deletions
item_dist.py
+
2
−
2
View file @
7c17df32
...
...
@@ -309,7 +309,7 @@ def add_chest_reward(raffle, chest):
if
obj
is
not
None
:
to_add
=
copy
.
deepcopy
(
obj
)
chest
.
contains
=
to_add
def
evaluate_spawn
(
obj
,
room
,
probability
):
...
...
@@ -344,7 +344,7 @@ def populate_rooms():
possible_rewards
=
[]
# Add the nothing
possible_reward
+=
[
None
]
*
CHANCE_NOTHING
possible_reward
s
+=
[
None
]
*
CHANCE_NOTHING
for
category
in
spawnable_items
:
for
item
in
spawnable_items
[
category
]:
...
...
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