Skip to content

Commit

Permalink
Cooking Fix - Certain produces now function properly for Cooking With…
Browse files Browse the repository at this point in the history
… Jane (#54)

<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
<details>
<summary>
	About The Pull Request
</summary>
<hr>

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->
	
<hr>
</details>

## Changelog
:cl:
<!--add: Added new things

fix: makes certain produce (the ones that have two different names-
it's, a long story) actually work in cooking steps. for Cooking With
Jane.
server: something server ops should know-->
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
Awesome4Real authored Aug 27, 2024
1 parent d95adc2 commit 5ab0709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/cooking_with_jane/step_types/add_produce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

var/datum/seed/produce_seed = plant_controller.seeds[added_produce.plantname]

if(produce_seed != null && (produce_seed.seed_name == required_produce_type || produce_seed.seed_name == "modified "+required_produce_type || produce_seed.seed_name == "mutant "+required_produce_type))
if(produce_seed != null && (produce_seed.seed_name == required_produce_type || produce_seed.seed_name == "modified "+required_produce_type || produce_seed.seed_name == "mutant "+required_produce_type || produce_seed.name == required_produce_type || produce_seed.name == "modified "+required_produce_type || produce_seed.name == "mutant "+required_produce_type))
return CWJ_CHECK_VALID

return CWJ_CHECK_INVALID
Expand Down

0 comments on commit 5ab0709

Please sign in to comment.