This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
forked from BeeStation/BeeStation-Hornet
-
Notifications
You must be signed in to change notification settings - Fork 47
Adds a few more crates! #981
Open
KoboldCommando
wants to merge
4
commits into
Monkestation:master
Choose a base branch
from
KoboldCommando:More-crates
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,103 @@ | ||
////////////////////////////////////////////////////////////////////////////// | ||
//////////////////////////// Armory ////////////////////////////////////////// | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
/datum/supply_pack/security/armory/revolver | ||
name = "Revolver Single-Pack" | ||
desc = "Contains one revolver, of the sort detectives are known to habitually smuggle on board." | ||
cost = 1500 | ||
contraband = TRUE | ||
small_item = TRUE | ||
contains = list(/obj/item/gun/ballistic/revolver/detective) | ||
crate_name = "single revolver crate" | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
/////////////////////// Canisters & Materials //////////////////////////////// | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
/datum/supply_pack/materials/random_materials | ||
name = "Contracted Materials" | ||
desc = "No miners? We'll contract the work and send you the materials! Contains random processed materials, good luck!" | ||
cost = 3000 | ||
contains = list() | ||
crate_name = "contracted materials crate" | ||
|
||
/datum/supply_pack/materials/random_materials/fill(obj/structure/closet/crate/C) | ||
for(var/i in 1 to 5) | ||
var/item = pick( | ||
prob(200); | ||
/obj/item/stack/sheet/iron/fifty, | ||
prob(100); | ||
/obj/item/stack/sheet/glass/fifty, | ||
prob(50); | ||
/obj/item/stack/sheet/plastic/fifty, | ||
prob(50); | ||
/obj/item/stack/sheet/mineral/copper/twenty, | ||
prob(50); | ||
/obj/item/stack/sheet/mineral/plasma/twenty, | ||
prob(20); | ||
/obj/item/stack/sheet/plasteel/twenty, | ||
prob(20); | ||
/obj/item/stack/sheet/mineral/titanium/twenty, | ||
prob(10); | ||
/obj/item/stack/sheet/mineral/silver/twenty, | ||
prob(10); | ||
/obj/item/stack/sheet/mineral/gold/five, | ||
prob(5); | ||
/obj/item/stack/sheet/mineral/diamond/five, | ||
prob(5); | ||
/obj/item/stack/sheet/mineral/uranium/five, | ||
prob(5); | ||
/obj/item/stack/sheet/bluespace_crystal/five | ||
) | ||
new item(C) | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
//////////////////////////// Medical ///////////////////////////////////////// | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
/datum/supply_pack/medical/cadaver | ||
name = "Cadaver Crate" | ||
desc = "We won't ask why you need it if you don't ask why it's contraband. Contents not guaranteed deceased." | ||
cost = 700 | ||
contraband = TRUE | ||
contains = list(/mob/living/carbon/human/) | ||
crate_name = "cadaver freezer" | ||
crate_type = /obj/structure/closet/crate/freezer | ||
|
||
/datum/supply_pack/medical/ass | ||
name = "Ass Crate" | ||
desc = "What's that smell? Why it's the ass crate of course! For when your coworkers have had prolific posterior pains. Contains abundant assorted asses." | ||
cost = 800 | ||
contraband = TRUE | ||
contains = list() | ||
crate_name = "ass crate" | ||
crate_type = /obj/structure/closet/crate/freezer | ||
|
||
/datum/supply_pack/medical/ass/fill(obj/structure/closet/crate/C) | ||
for(var/i in 1 to 6) | ||
var/item = pick( | ||
prob(200); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redundant prob(200), it's automatically true |
||
/obj/item/organ/butt, | ||
prob(20); | ||
/obj/item/organ/butt/cyber, | ||
prob(20); | ||
/obj/item/organ/butt/iron, | ||
prob(20); | ||
/obj/item/organ/butt/skeletal, | ||
prob(10); | ||
/obj/item/organ/butt/clown, | ||
prob(10); | ||
/obj/item/organ/butt/plasma, | ||
prob(5); | ||
/obj/item/organ/butt/bluespace, | ||
prob(5); | ||
/obj/item/organ/butt/xeno, | ||
prob(1); | ||
/obj/item/organ/butt/atomic | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh no. |
||
) | ||
new item(C) | ||
|
||
////////////////////////////////////////////////////////////////////////////// | ||
//////////////////////////// Miscellaneous /////////////////////////////////// | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
@@ -50,3 +150,14 @@ | |
crate_name = "Experimental Cloner Crate" | ||
crate_type = /obj/structure/closet/crate/medical | ||
dangerous = TRUE | ||
|
||
/datum/supply_pack/misc/cratecrate | ||
name = "Crate crate" | ||
desc = "A crate full of crates. Why? How?" | ||
cost = 2000 | ||
access = FALSE | ||
contains = list(/obj/structure/closet/crate, | ||
/obj/structure/closet/crate, | ||
/obj/structure/closet/crate) | ||
crate_name = "Crate Crate" | ||
crate_type = /obj/structure/closet/crate |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prob(200) and prob(100) would be redundant as that gives a 100% chance both times
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the DM documentation, in this case prob(200) should be twice as common as the baseline, i.e. anything flagged prob(100). All the probs in a pick are supposed to be relative. What I tested seemed to line up with that.