File tree 4 files changed +27
-1
lines changed
modules/reagents/chemistry
monkestation/code/modules/reagents/chemistry/recipes
4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 111
111
#define REACTION_REAL_TIME_SPLIT (1 << 7 )
112
112
// /Should this reaction use purity
113
113
#define REACTION_USES_PURITY (1 << 8 )
114
+ // / This reaction should never occur in grown plants (monkestation addition)
115
+ #define REACTION_NOT_IN_PLANTS (1 << 9 )
114
116
115
117
// /Used for overheat_temp - This sets the overheat so high it effectively has no overheat temperature.
116
118
#define NO_OVERHEAT 99999
Original file line number Diff line number Diff line change 913
913
if ((reaction. reaction_flags & REACTION_NON_INSTANT ))
914
914
granularity = CHEMICAL_VOLUME_MINIMUM
915
915
916
+ // monkestation start
917
+ var /banned_due_to_plant = FALSE
918
+ if ((reaction. reaction_flags & REACTION_NOT_IN_PLANTS ) && istype(cached_my_atom, / obj / item/ food/ grown))
919
+ banned_due_to_plant = TRUE
920
+ // monkestation end
921
+
916
922
for (var /req_reagent in cached_required_reagents)
917
923
if (! has_reagent(req_reagent, (cached_required_reagents[req_reagent]* granularity)))
918
924
break
947
953
else
948
954
meets_ph_requirement = TRUE
949
955
950
- if (total_matching_reagents == total_required_reagents && total_matching_catalysts == total_required_catalysts && matching_container && matching_other)
956
+ if (total_matching_reagents == total_required_reagents && total_matching_catalysts == total_required_catalysts && matching_container && matching_other && ! banned_due_to_plant )
951
957
if (meets_temp_requirement && meets_ph_requirement)
952
958
possible_reactions += reaction
953
959
else
Original file line number Diff line number Diff line change
1
+ / datum / chemical_reaction/ life
2
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
3
+
4
+ / datum / chemical_reaction/ life_friendly
5
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
6
+
7
+ / datum / chemical_reaction/ corgium
8
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
9
+
10
+ / datum / chemical_reaction/ monkey
11
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
12
+
13
+ / datum / chemical_reaction/ butterflium
14
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
15
+
16
+ / datum / chemical_reaction/ ant_slurry
17
+ reaction_flags = parent_type:: reaction_flags | REACTION_NOT_IN_PLANTS
Original file line number Diff line number Diff line change 7927
7927
#include "monkestation\code\modules\reagents\chemistry\reagents\drug_reagents.dm"
7928
7928
#include "monkestation\code\modules\reagents\chemistry\reagents\other_reagents.dm"
7929
7929
#include "monkestation\code\modules\reagents\chemistry\reagents\drinks\glass_styles\mixed_drinks.dm"
7930
+ #include "monkestation\code\modules\reagents\chemistry\recipes\others.dm"
7930
7931
#include "monkestation\code\modules\reagents\fun\austrialium.dm"
7931
7932
#include "monkestation\code\modules\reagents\fun\liquid_justice.dm"
7932
7933
#include "monkestation\code\modules\reagents\fun\shakeium.dm"
You can’t perform that action at this time.
0 commit comments