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

Neb dev update #80

Merged
merged 53 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
87a025b
Cleans up Swiss Army knife tool quality reporting.
MistakeNot4892 Oct 9, 2024
c97692a
Merge pull request #4514 from MistakeNot4892/fix/scavs
out-of-phaze Oct 11, 2024
53716c9
Fix insufficient fuel warning not working
out-of-phaze Jan 16, 2023
f152ff8
Make random_multi spawners work on map templates
out-of-phaze Jan 20, 2023
5186f4c
Remove black bar from NanoUI style
out-of-phaze Feb 21, 2023
6a74eda
Make several mob stat sets use the helper
out-of-phaze Jun 20, 2023
2b377eb
Fix food replicator circuit and add unit test
out-of-phaze Feb 15, 2023
ee0184d
Fix signs runtiming from no material
out-of-phaze Jan 15, 2024
facd0c3
Fix action buttons missing backgrounds
out-of-phaze Jan 28, 2024
b8bc76c
Remove psionics' target zone requirement
out-of-phaze Oct 25, 2023
6884245
Fix ethanol inhalation being hyperlethal
out-of-phaze Jul 9, 2024
25da106
Tweaks xenoarch brushes to not have wire made of wood.
MistakeNot4892 Oct 17, 2024
3349450
Premium drinks and ration water bottles will no longer freeze en masse.
MistakeNot4892 Oct 17, 2024
22f1d60
Fix runtime from map with no spawnpoints
out-of-phaze Jul 9, 2024
dbd79c3
Fix var setter and proc caller landmarks for turfs
out-of-phaze Jul 9, 2024
041317b
Fix the replicator needing ceramic to make fries
out-of-phaze Jul 9, 2024
ecee295
Remove blank theme from exoplanets
out-of-phaze Jul 9, 2024
a6634f9
Fix modpack maps when using separate GITDIR in server.sh
out-of-phaze Jul 9, 2024
016e1a9
Fix server.sh being stuck in inconsistent state when closing early
out-of-phaze Jul 9, 2024
e693cef
Add heat exchange pipe color to pipe color whitelist
out-of-phaze Jul 9, 2024
6364d60
Fix robotic brains overwriting bodytype
out-of-phaze Jul 10, 2024
7596fb8
Fix long-range relay having a normal relay circuitboard
out-of-phaze Oct 16, 2024
04adf1c
Merge pull request #4535 from MistakeNot4892/fix/booze
out-of-phaze Oct 19, 2024
7df3b54
Merge pull request #4534 from MistakeNot4892/fix/brushes
out-of-phaze Oct 20, 2024
c69d3d0
Merge pull request #4530 from out-of-phaze/fix/spacefarers-fixes-10-1…
MistakeNot4892 Oct 20, 2024
00f0b8f
Merge branch 'stable' of https://github.com/NebulaSS13/Nebula into st…
out-of-phaze Oct 22, 2024
7c18d3a
Merge pull request #4539 from out-of-phaze/stagingupdate
MistakeNot4892 Oct 22, 2024
13159d7
add snail
MistakeNot4892 Oct 22, 2024
617f83f
Reworks baking recipes to use yeast and butter.
MistakeNot4892 Oct 13, 2024
47155f3
Splitting up food.dmi.
MistakeNot4892 Oct 17, 2024
46695b6
removes france
MistakeNot4892 Oct 21, 2024
53d14d2
Automatic changelog generation for PR #4525 [ci skip]
NebulaSS13Bot Oct 22, 2024
c8b7f1f
Merge branch 'staging' of https://github.com/NebulaSS13/Nebula into d…
out-of-phaze Oct 22, 2024
70009df
Fix floor breaker proc call
out-of-phaze Oct 22, 2024
6158b73
Merge pull request #4540 from out-of-phaze/devupdate
out-of-phaze Oct 22, 2024
167c8e4
Converting a bunch of existing soup items into bowls with soup in them.
MistakeNot4892 Aug 14, 2024
b90ae91
Converting dairy and blood data flags to the new decl format.
MistakeNot4892 Sep 24, 2024
45c4701
Testing/debugging soup recipes and evaporation.
MistakeNot4892 Sep 25, 2024
f7d34fa
Automatic changelog generation [ci skip]
NebulaSS13Bot Oct 23, 2024
ece2a73
Automatic changelog generation [ci skip]
NebulaSS13Bot Oct 26, 2024
aa6c50f
Automatic changelog generation [ci skip]
NebulaSS13Bot Oct 27, 2024
dd3b163
Automatic changelog generation [ci skip]
NebulaSS13Bot Oct 28, 2024
ed9f446
Apply fixes for TypeMaker issues
out-of-phaze Oct 29, 2024
c2bace3
Automatic changelog generation [ci skip]
NebulaSS13Bot Oct 30, 2024
df8f344
Removing unneeded soup icons post-rebase.
MistakeNot4892 Oct 17, 2024
8c80350
Merge pull request #4543 from out-of-phaze/codequality/typemaker-redux
MistakeNot4892 Oct 30, 2024
9aecebe
Merge pull request #4344 from MistakeNot4892/feature/moresoup
out-of-phaze Oct 31, 2024
1de9f22
Automatic changelog generation for PR #4344 [ci skip]
NebulaSS13Bot Oct 31, 2024
2842698
Automatic changelog generation [ci skip]
NebulaSS13Bot Nov 1, 2024
e160049
Fix placing books at the edges of bookshelves
out-of-phaze Sep 28, 2024
1711134
Automatic changelog generation [ci skip]
NebulaSS13Bot Nov 2, 2024
83f67ca
Fixes exoplanets not having any atmosphere
Neerti Nov 2, 2024
9ac6a58
donuts moved
Atermonera Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 11 additions & 10 deletions code/__defines/cooking.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
#define ALLERGEN_FISH BITFLAG(1)
#define ALLERGEN_VEGETABLE BITFLAG(2)
#define ALLERGEN_DAIRY BITFLAG(3)
#define ALLERGEN_EGG BITFLAG(4)
#define ALLERGEN_FRUIT BITFLAG(5)
#define ALLERGEN_GLUTEN BITFLAG(6)
#define ALLERGEN_SOY BITFLAG(7)
#define ALLERGEN_CAFFEINE BITFLAG(8)
#define ALLERGEN_FUNGI BITFLAG(9)
#define ALLERGEN_NUTS BITFLAG(10)
#define ALLERGEN_ALLIUM BITFLAG(11)
#define ALLERGEN_STIMULANT BITFLAG(12)
#define ALLERGEN_CHEESE BITFLAG(4)
#define ALLERGEN_EGG BITFLAG(5)
#define ALLERGEN_FRUIT BITFLAG(6)
#define ALLERGEN_GLUTEN BITFLAG(7)
#define ALLERGEN_SOY BITFLAG(8)
#define ALLERGEN_CAFFEINE BITFLAG(9)
#define ALLERGEN_FUNGI BITFLAG(10)
#define ALLERGEN_NUTS BITFLAG(11)
#define ALLERGEN_ALLIUM BITFLAG(12)
#define ALLERGEN_STIMULANT BITFLAG(13)

#define INGREDIENT_FLAGS_ALL (ALLERGEN_MEAT|ALLERGEN_FISH|ALLERGEN_VEGETABLE|ALLERGEN_DAIRY|ALLERGEN_EGG|ALLERGEN_FRUIT|ALLERGEN_GLUTEN|ALLERGEN_SOY|ALLERGEN_CAFFEINE|ALLERGEN_NUTS|ALLERGEN_ALLIUM|ALLERGEN_STIMULANT)
#define ALLERGENS_ALL (ALLERGEN_MEAT|ALLERGEN_FISH|ALLERGEN_VEGETABLE|ALLERGEN_DAIRY|ALLERGEN_CHEESE|ALLERGEN_EGG|ALLERGEN_FRUIT|ALLERGEN_GLUTEN|ALLERGEN_SOY|ALLERGEN_CAFFEINE|ALLERGEN_NUTS|ALLERGEN_ALLIUM|ALLERGEN_STIMULANT)
24 changes: 24 additions & 0 deletions code/__defines/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,30 @@
// One 'unit' of taste sensitivity probability, used in mob/living/proc/ingest
#define TASTE_DEGREE_PROB 15

// General food data flags
#define DATA_TASTE /decl/reagent_data_field/taste
#define DATA_INGREDIENT_LIST /decl/reagent_data_field/ingredient_list
#define DATA_INGREDIENT_FLAGS /decl/reagent_data_field/ingredient_flags
#define DATA_MASK_COLOR /decl/reagent_data_field/mask_color
#define DATA_MASK_NAME /decl/reagent_data_field/mask_name

// Milk and chees data flags
#define DATA_MILK_DONOR /decl/reagent_data_field/milk_donor
#define DATA_MILK_NAME /decl/reagent_data_field/milk_name
#define DATA_MILK_COLOR /decl/reagent_data_field/milk_color
#define DATA_CHEESE_NAME /decl/reagent_data_field/cheese_name
#define DATA_CHEESE_COLOR /decl/reagent_data_field/cheese_color

// Blood data flags
#define DATA_BLOOD_DNA /decl/reagent_data_field/blood_dna
#define DATA_BLOOD_DONOR /decl/reagent_data_field/blood_donor
#define DATA_BLOOD_SPECIES /decl/reagent_data_field/blood_species
#define DATA_BLOOD_COLOR /decl/reagent_data_field/blood_color
#define DATA_BLOOD_TYPE /decl/reagent_data_field/blood_type
#define DATA_BLOOD_TRACE_CHEM /decl/reagent_data_field/blood_trace_chem
#define DATA_BLOOD_DOSE_CHEM /decl/reagent_data_field/blood_dose_chem
#define DATA_BLOOD_HAS_OXY /decl/reagent_data_field/blood_has_oxy

//Used by show_message() and emotes
#define VISIBLE_MESSAGE 1
#define AUDIBLE_MESSAGE 2
Expand Down
60 changes: 60 additions & 0 deletions code/__defines/reagent_data_fields.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Currently just used for indexing reagent data without
// having to use strings. UID is provided for serde.

/decl/reagent_data_field
abstract_type = /decl/reagent_data_field
decl_flags = DECL_FLAG_MANDATORY_UID

/decl/reagent_data_field/taste
uid = "rdf_taste"

/decl/reagent_data_field/ingredient_list
uid = "rdf_ingredient_list"

/decl/reagent_data_field/ingredient_flags
uid = "rdf_ingredient_flags"

/decl/reagent_data_field/mask_color
uid = "rdf_mask_color"

/decl/reagent_data_field/mask_name
uid = "rdf_mask_name"

/decl/reagent_data_field/milk_donor
uid = "rdf_milk_donor"

/decl/reagent_data_field/milk_name
uid = "rdf_milk_name"

/decl/reagent_data_field/milk_color
uid = "rdf_milk_color"

/decl/reagent_data_field/cheese_name
uid = "rdf_cheese_name"

/decl/reagent_data_field/cheese_color
uid = "rdf_cheese_color"

/decl/reagent_data_field/blood_dna
uid = "rdf_blood_dna"

/decl/reagent_data_field/blood_donor
uid = "rdf_blood_donor"

/decl/reagent_data_field/blood_species
uid = "rdf_blood_species"

/decl/reagent_data_field/blood_color
uid = "rdf_blood_color"

/decl/reagent_data_field/blood_type
uid = "rdf_blood_type"

/decl/reagent_data_field/blood_trace_chem
uid = "rdf_blood_trace_chem"

/decl/reagent_data_field/blood_dose_chem
uid = "rdf_blood_dose_chem"

/decl/reagent_data_field/blood_has_oxy
uid = "rdf_blood_has_oxy"
4 changes: 2 additions & 2 deletions code/_helpers/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/datum/atom_creator/simple
var/path
var/probability
var/prob_method = /proc/prob_call
var/prob_method = GLOBAL_PROC_REF(prob_call)

/datum/atom_creator/simple/New(var/path, var/probability)
if(args.len != 2)
Expand All @@ -36,7 +36,7 @@

/datum/atom_creator/weighted
var/list/paths
var/selection_method = /proc/pickweight
var/selection_method = GLOBAL_PROC_REF(pickweight)

/datum/atom_creator/weighted/New(var/list/paths)
if(args.len != 1)
Expand Down
26 changes: 8 additions & 18 deletions code/_helpers/type2type.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@
/proc/file2list(filename, seperator = "\n")
return splittext(safe_file2text(filename), seperator)

// Turns a direction into text
/proc/num2dir(direction)
switch (direction)
if (1.0) return NORTH
if (2.0) return SOUTH
if (4.0) return EAST
if (8.0) return WEST
else
to_world_log("UNKNOWN DIRECTION: [direction]")

// Turns a direction into text
/proc/dir2text(direction)
switch (direction)
Expand All @@ -40,14 +30,14 @@
// Turns text into proper directions
/proc/text2dir(direction)
switch (uppertext(direction))
if ("NORTH") return 1
if ("SOUTH") return 2
if ("EAST") return 4
if ("WEST") return 8
if ("NORTHEAST") return 5
if ("NORTHWEST") return 9
if ("SOUTHEAST") return 6
if ("SOUTHWEST") return 10
if ("NORTH") return NORTH
if ("SOUTH") return SOUTH
if ("EAST") return EAST
if ("WEST") return WEST
if ("NORTHEAST") return NORTHEAST
if ("NORTHWEST") return NORTHWEST
if ("SOUTHEAST") return SOUTHEAST
if ("SOUTHWEST") return SOUTHWEST

// Converts an angle (degrees) into an ss13 direction
/proc/angle2dir(var/degree)
Expand Down
3 changes: 3 additions & 0 deletions code/_onclick/hud/action.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
var/obj/screen/action_button/button = null
var/button_icon = 'icons/obj/action_buttons/actions.dmi'
var/button_icon_state = "default"
/// The icon to use for the background icon state. Defaults to button_icon if unset.
var/background_icon = 'icons/obj/action_buttons/actions.dmi'
var/background_icon_state = "bg_default"
var/mob/living/owner

/datum/action/New(var/Target)
target = Target
background_icon ||= button_icon

/datum/action/Destroy()
if(owner)
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/hud/screen/screen_action_button.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/obj/screen/action_button/on_update_icon()
if(!action)
return
icon = action.button_icon
icon = action.background_icon
icon_state = action.background_icon_state

cut_overlays()
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/hud/screen/screen_maneuver.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
var/mob/living/user_living = user
user_living.prepare_maneuver()

/obj/screen/maneuver/examine(mob/user)
/obj/screen/maneuver/examine(mob/user, distance)
. = ..()
if(!isliving(user))
return
Expand Down
4 changes: 2 additions & 2 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ avoid code duplication. This includes items that may sometimes act as a standard
/atom/proc/attackby(obj/item/used_item, mob/user, var/click_params)
if(storage)
if(isrobot(user) && (used_item == user.get_active_held_item()))
return //Robots can't store their modules.
return FALSE //Robots can't store their modules.
if(!storage.can_be_inserted(used_item, user))
return
return FALSE
used_item.add_fingerprint(user)
return storage.handle_item_insertion(user, used_item, click_params = click_params)
return FALSE
Expand Down
6 changes: 3 additions & 3 deletions code/controllers/subsystems/atoms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ SUBSYSTEM_DEF(atoms)
BadInitializeCalls[the_type] |= BAD_INIT_QDEL_BEFORE
return TRUE

// This is handled and battle tested by dreamchecker. Limit to UNIT_TESTS just in case that ever fails.
#ifdef UNIT_TESTS
// This is handled and battle tested by dreamchecker. Limit to UNIT_TEST just in case that ever fails.
#ifdef UNIT_TEST
var/start_tick = world.time
#endif

var/result = A.Initialize(arglist(arguments))

#ifdef UNIT_TESTS
#ifdef UNIT_TEST
if(start_tick != world.time)
BadInitializeCalls[the_type] |= BAD_INIT_SLEPT
#endif
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystems/initialization/modpacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SUBSYSTEM_DEF(modpacks)

// Update compiled infolists and apply.
default_submap_whitelisted_species |= global.using_map.default_species
for(var/decl/submap_archetype/submap in decls_repository.get_decls_unassociated(/decl/submap_archetype))
for(var/decl/submap_archetype/submap in decls_repository.get_decls_of_type_unassociated(/decl/submap_archetype))
if(islist(submap.whitelisted_species) && !length(submap.whitelisted_species))
submap.whitelisted_species |= SSmodpacks.default_submap_whitelisted_species
if(islist(submap.blacklisted_species) && !length(submap.blacklisted_species))
Expand Down
12 changes: 6 additions & 6 deletions code/datums/extensions/milkable/milkable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

/datum/extension/milkable/proc/get_milk_data()
var/static/list/milk_data = list(
"milk_donor" = "cow"
DATA_MILK_DONOR = "cow"
)
return milk_data.Copy()

Expand Down Expand Up @@ -130,10 +130,10 @@

/datum/extension/milkable/goat/get_milk_data()
var/static/list/milk_data = list(
"milk_donor" = "goat",
"milk_name" = "goat",
"cheese_name" = "feta",
"cheese_color" = "#f3f2be",
"mask_name" = "goat's milk",
DATA_MILK_DONOR = "goat",
DATA_MILK_NAME = "goat",
DATA_CHEESE_NAME = "feta",
DATA_CHEESE_COLOR = "#f3f2be",
DATA_MASK_NAME = "goat's milk",
)
return milk_data.Copy()
8 changes: 4 additions & 4 deletions code/datums/extensions/storage/_storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ var/global/list/_test_storage_items = list()
//such as when picking up all the items on a tile with one click.
/datum/storage/proc/handle_item_insertion(mob/user, obj/item/W, prevent_warning, skip_update, click_params)
if(!istype(W))
return 0
return FALSE
if(ismob(W.loc))
var/mob/M = W.loc
if(!M.try_unequip(W))
return
return FALSE

if(holder.reagents?.total_volume)
W.fluid_act(holder.reagents)
if(QDELETED(W))
return
return FALSE

W.forceMove(holder)
W.on_enter_storage(src)
Expand All @@ -225,7 +225,7 @@ var/global/list/_test_storage_items = list()
holder.storage_inserted()
if(!skip_update)
holder.update_icon()
return 1
return TRUE

/datum/storage/proc/consolidate_stacks()

Expand Down
27 changes: 24 additions & 3 deletions code/datums/supplypacks/galley.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
/decl/hierarchy/supply_pack/galley/food
name = "General - Kitchen supplies"
contains = list(/obj/item/chems/condiment/flour = 6,
/obj/item/chems/condiment/yeast = 1,
/obj/item/chems/drinks/milk = 4,
/obj/item/chems/drinks/soymilk = 2,
/obj/item/food/dairy/butter/stick = 2,
/obj/item/food/dairy/butter/stick/margarine = 2,
/obj/item/box/fancy/egg_box = 2,
/obj/item/food/tofu = 4,
/obj/item/food/butchery/meat = 4,
Expand Down Expand Up @@ -50,8 +53,11 @@
containername = "egg crate"

/decl/hierarchy/supply_pack/galley/milk
name = "Perishables - Milk"
contains = list(/obj/item/chems/drinks/milk = 3)
name = "Perishables - Dairy"
contains = list(
/obj/item/chems/drinks/milk = 3,
/obj/item/food/dairy/butter/stick = 2
)
containertype = /obj/structure/closet/crate/freezer
containername = "milk crate"

Expand Down Expand Up @@ -108,7 +114,7 @@
/obj/item/chems/drinks/bottle/premiumvodka = 3,
/obj/item/chems/drinks/bottle/whiskey = 3
)
containertype = /obj/structure/closet/crate/freezer
containertype = /obj/structure/closet/crate/plastic
containername = "premium drinks crate"

/decl/hierarchy/supply_pack/galley/barsupplies
Expand Down Expand Up @@ -143,3 +149,18 @@
)
containertype = /obj/structure/largecrate
containername = "soda dispenser crate"


/decl/hierarchy/supply_pack/galley/flour
name = "Non-perishables - Flour"
contains = list(
/obj/item/chems/condiment/flour = 3
)
containername = "yeast crate"

/decl/hierarchy/supply_pack/galley/yeast
name = "Non-perishables - Yeast"
contains = list(
/obj/item/chems/condiment/yeast = 3
)
containername = "yeast crate"
Loading
Loading