-
-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontiersman Distillery Ruin #2907
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -512,7 +512,7 @@ | |||
matching_container = 1 | |||
|
|||
else | |||
if(cached_my_atom.type == C.required_container) | |||
if(typesof(C.required_container)) |
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.
This currently just returns a list of types but has the (unwanted?) side effect of allowing sub types. buttt since your not comparing it against your cached item it returns true if anything is in required_container. Change this to (cached_my_atom.type in C.required_container) This compares the type against the types in your list
but also required_container is not yet a list
var/obj/item/reagent_containers/required_container = null // the exact container path required for the reaction to happen
ORRRR if you want to be lazy
just do
(cached_my_atom.type in typesof(C.required_container))
this means that any subtypes of an item works (this is currently fine but strict types are probally better here
and your moonshine react goes from
required_container = list(/obj/structure/fermenting_barrel,
/obj/structure/fermenting_barrel/distiller)
to
required_container = /obj/structure/fermenting_barrel
since distiller is a subtype of barrel and typesof grabs the "main" type and any subtypes it works
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.
Sorry if i got something wrong when i first explained this to you
@@ -512,7 +512,7 @@ | |||
matching_container = 1 | |||
|
|||
else | |||
if(cached_my_atom.type == C.required_container) | |||
if(typesof(C.required_container)) |
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.
is this how you do this?
if(typesof(C.required_container)) | |
if(cached_my_atom.type in typesof(C.required_container)) |
results = list(/datum/reagent/consumable/ethanol/moonshine = 10) | ||
required_reagents = list(/datum/reagent/consumable/nutriment = 5, /datum/reagent/consumable/sugar = 5) | ||
required_catalysts = list(/datum/reagent/consumable/enzyme = 5) | ||
required_container = list(/obj/structure/fermenting_barrel, |
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.
I dont know how to grab multiple lines here but. this is all you need
required_container = list(/obj/structure/fermenting_barrel, | |
required_container = /obj/structure/fermenting_barrel |
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.
Perfect
I should remove window spawners. Please don't use them in your maps =). Also update your mines to the new ones if you haven't already (the image shows the old ones( |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Co-authored-by: Theos <[email protected]> Signed-off-by: goober3 <[email protected]>
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.
_maps/RandomRuins/RockRuins/rockplanet_distillery.dmm:2210:error: undefined type: /obj/structure/guncase
_maps/RandomRuins/RockRuins/rockplanet_distillery.dmm:2213:error: unknown type
This is why it won't merge
Bump |
Co-authored-by: Theos <[email protected]> Signed-off-by: goober3 <[email protected]>
hi, this PR is fixed now. sorry for the delay. could someone like and hit the merge button please. |
## hey look it's a new ruin <details><summary>The Ruin</summary> ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/e9b43902-945a-4090-9be9-a0da753ebcff) ![2c5f52abe42891f0bfc41d57205f0e86](https://github.com/shiptest-ss13/Shiptest/assets/118859017/4697ec2b-a78b-46ad-930e-d1ce491295dc) ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/d05d6996-47da-46ea-8f35-ef35ac5578ca) </details> ## and another <s>pill</s> subshuttle ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/39eb60d5-1244-4cc1-9524-96f31438d689) ## About The Pull Request This PR adds a new ruin to rockplanets featuring a group of New Frontiersman bootleggers based out of a pre-ICW era Nanotrasen research facility. A new type of bottle crate for moonshine bottles has been added, as well as a new subtype of Frontiersmen, without need for air. Moonshine now requires a fermenting barrel or distillery to be produced. Thank you to @FalloutFalcon for providing the code that makes this work, as well as refactoring bottle crates to make them work with variables. <details><summary>Threats</summary> ``` - Melee Frontiersman (x3) - Revolver Frontiersman (x4) - Rifle Frontiersman Trooper (x4) - Rifle Frontiersman - Frontiersman Officer - Mi-go (Dog) - Explosive Mines (x5) ``` </details> <details><summary>Major Loot</summary> ``` - Moonshine Jugs (x31) - Moonshine Keg - Moonshine Vat - Regular Medkit - Bicaridine Bottles (x2) - Common Machine Boards (x2) - Common Computer Board - Drink Dispenser - Booze Dispenser - SRM Distiller - Autolathe - Uranium PACMAN Generator - ~4000 credits - Hydroponics Trays (x2) - .357 Revolver (x2) - HP Shadow - .45 Speedloader - .357 Speedloader (x2) - Commander - Stetchkin Pistol - Empty Commander Magazine (x2) - AP 9mm Ammo Box - Stetchkin Magazine (x2) - Mosin Rifle (x3) - Mosin Clip (x2) - Armor Vest (x3) - SWAT helmet (x2) ``` </details> ## Changelog 🆑 goober3, FalloutFalcon add: A new Frontiersman-themed rockplanet ruin. add: Frontiersmen now have subtypes with oxygen masks. tweak: Moonshine can now only be brewed via fermenting barrels & distillers. code: Drinks recipes can now have multiple required containers. /🆑 --------- Signed-off-by: goober3 <[email protected]> Co-authored-by: Theos <[email protected]>
## hey look it's a new ruin <details><summary>The Ruin</summary> ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/e9b43902-945a-4090-9be9-a0da753ebcff) ![2c5f52abe42891f0bfc41d57205f0e86](https://github.com/shiptest-ss13/Shiptest/assets/118859017/4697ec2b-a78b-46ad-930e-d1ce491295dc) ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/d05d6996-47da-46ea-8f35-ef35ac5578ca) </details> ## and another <s>pill</s> subshuttle ![image](https://github.com/shiptest-ss13/Shiptest/assets/118859017/39eb60d5-1244-4cc1-9524-96f31438d689) ## About The Pull Request This PR adds a new ruin to rockplanets featuring a group of New Frontiersman bootleggers based out of a pre-ICW era Nanotrasen research facility. A new type of bottle crate for moonshine bottles has been added, as well as a new subtype of Frontiersmen, without need for air. Moonshine now requires a fermenting barrel or distillery to be produced. Thank you to @FalloutFalcon for providing the code that makes this work, as well as refactoring bottle crates to make them work with variables. <details><summary>Threats</summary> ``` - Melee Frontiersman (x3) - Revolver Frontiersman (x4) - Rifle Frontiersman Trooper (x4) - Rifle Frontiersman - Frontiersman Officer - Mi-go (Dog) - Explosive Mines (x5) ``` </details> <details><summary>Major Loot</summary> ``` - Moonshine Jugs (x31) - Moonshine Keg - Moonshine Vat - Regular Medkit - Bicaridine Bottles (x2) - Common Machine Boards (x2) - Common Computer Board - Drink Dispenser - Booze Dispenser - SRM Distiller - Autolathe - Uranium PACMAN Generator - ~4000 credits - Hydroponics Trays (x2) - .357 Revolver (x2) - HP Shadow - .45 Speedloader - .357 Speedloader (x2) - Commander - Stetchkin Pistol - Empty Commander Magazine (x2) - AP 9mm Ammo Box - Stetchkin Magazine (x2) - Mosin Rifle (x3) - Mosin Clip (x2) - Armor Vest (x3) - SWAT helmet (x2) ``` </details> ## Changelog 🆑 goober3, FalloutFalcon add: A new Frontiersman-themed rockplanet ruin. add: Frontiersmen now have subtypes with oxygen masks. tweak: Moonshine can now only be brewed via fermenting barrels & distillers. code: Drinks recipes can now have multiple required containers. /🆑 --------- Signed-off-by: goober3 <[email protected]> Co-authored-by: Theos <[email protected]>
hey look it's a new ruin
The Ruin
and another
pillsubshuttleAbout The Pull Request
This PR adds a new ruin to rockplanets featuring a group of New Frontiersman bootleggers based out of a pre-ICW era Nanotrasen research facility.
A new type of bottle crate for moonshine bottles has been added, as well as a new subtype of Frontiersmen, without need for air.
Moonshine now requires a fermenting barrel or distillery to be produced. Thank you to @FalloutFalcon for providing the code that makes this work, as well as refactoring bottle crates to make them work with variables.
Threats
Major Loot
Changelog
🆑 goober3, FalloutFalcon
add: A new Frontiersman-themed rockplanet ruin.
add: Frontiersmen now have subtypes with oxygen masks.
tweak: Moonshine can now only be brewed via fermenting barrels & distillers.
code: Drinks recipes can now have multiple required containers.
/🆑