Skip to content
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

Merged
merged 29 commits into from
Jul 23, 2024
Merged

Conversation

goober3
Copy link
Member

@goober3 goober3 commented Apr 16, 2024

hey look it's a new ruin

The Ruin

image

2c5f52abe42891f0bfc41d57205f0e86

image

and another pill subshuttle

image

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.

Threats
- Melee Frontiersman (x3)
- Revolver Frontiersman (x4)
- Rifle Frontiersman Trooper (x4)
- Rifle Frontiersman
- Frontiersman Officer
- Mi-go (Dog)
- Explosive Mines (x5)
Major Loot
- 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)

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.
/🆑

@goober3 goober3 requested review from a team as code owners April 16, 2024 17:03
@github-actions github-actions bot added Map Change Tile placing is hard. Thank you for your service. Sprites A bikeshed full of soulless bikes. Code change Watch something violently break. labels Apr 16, 2024
@goober3
Copy link
Member Author

goober3 commented Apr 16, 2024

3e315ec0253ef2041bbf559a939571d1
7d3bdc581cb7faef78beea2a9f5be7e9
whar

@github-actions github-actions bot added the Merge Conflict Use Git Hooks, you're welcome. label Apr 20, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the Merge Conflict Use Git Hooks, you're welcome. label Apr 22, 2024
@@ -512,7 +512,7 @@
matching_container = 1

else
if(cached_my_atom.type == C.required_container)
if(typesof(C.required_container))
Copy link
Member

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

Copy link
Member

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))
Copy link
Member

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?

Suggested change
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,
Copy link
Member

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

Suggested change
required_container = list(/obj/structure/fermenting_barrel,
required_container = /obj/structure/fermenting_barrel

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

@Latentish
Copy link
Member

Latentish commented May 4, 2024

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(

@github-actions github-actions bot added the Merge Conflict Use Git Hooks, you're welcome. label May 20, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@Imaginos16 Imaginos16 added the Test Merge Candidate You do it for free. label Jun 12, 2024
@goober3 goober3 removed the TGUI label Jun 22, 2024
Co-authored-by: Theos <[email protected]>
Signed-off-by: goober3 <[email protected]>
@rye-rice rye-rice added this pull request to the merge queue Jul 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 8, 2024
@SomeguyManperson SomeguyManperson added this pull request to the merge queue Jul 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 10, 2024
@rye-rice rye-rice added this pull request to the merge queue Jul 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2024
@rye-rice rye-rice added this pull request to the merge queue Jul 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2024
Copy link
Member

@rye-rice rye-rice left a 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

@FalloutFalcon FalloutFalcon added the Ruin Ruin successfully tested. label Jul 14, 2024
@rye-rice
Copy link
Member

Bump

@SomeguyManperson SomeguyManperson added the Test Merged They've done it for free. label Jul 17, 2024
@goober3
Copy link
Member Author

goober3 commented Jul 20, 2024

hi, this PR is fixed now. sorry for the delay. could someone like and hit the merge button please.

@rye-rice rye-rice added this pull request to the merge queue Jul 23, 2024
Merged via the queue into shiptest-ss13:master with commit bd67534 Jul 23, 2024
13 checks passed
MysticalFaceLesS pushed a commit to CeladonSS13/Shiptest that referenced this pull request Jul 27, 2024
## 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]>
FalloutFalcon pushed a commit to FalloutFalcon/ShiptestF that referenced this pull request Aug 30, 2024
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break. Map Change Tile placing is hard. Thank you for your service. Ruin Ruin successfully tested. Sprites A bikeshed full of soulless bikes. Test Merged They've done it for free.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants