Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Oct 7, 2023
1 parent ddd63d2 commit 2c826a0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions code/__DEFINES/inventory/carry_weight.dm
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2023 Citadel Station developers. *//

#warn value tune everything

//? Despite this being carry_weight.dm, this contains defines for:
//? carry strength - how much someone can carry or move
//? weight - how much stuff weighs, recursive
Expand Down
2 changes: 0 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
var/economic_category_item = ECONOMIC_CATEGORY_ITEM_DEFAULT

//? Carry Weight
// todo: rename carry_weight to weight by getting rid of other var/weight variables.

/// encumberance.
/// calculated as max() of all encumbrance
/// result is calculated into slowdown value
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/inventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
for(var/obj/item/I as anything in get_equipped_items())
tally_weight += (I.weight_registered = I.get_weight())
if(I.is_held())
if(!(I.item_flags & ITEM_ENCUMBER_IN_HAND))
if(!(I.item_flags & ITEM_ENCUMBERS_WHILE_HELD))
I.encumbrance_registered = null
continue
else
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/living_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
var/cached_carry_weight = 0
/// cached encumbrance of all items
var/cached_carry_encumbrance = 0
/// highest flat encumbrance of all items
var/cached_carry_flat_encumbrance = 0

//? movement
/// are we currently pushing (or trying to push) (or otherwise inside Bump() handling that deals with this crap) another atom?
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/protean/protean.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/datum/physiology_modifier/intrinsic/species/protean
carry_strength_add = CARRY_STRENGTH_ADD_PROTEAN
carry_factor_mult = CARRY_FACTOR_MOD_PROTEAN
carry_strength_factor = CARRY_FACTOR_MOD_PROTEAN

/datum/species/protean
uid = SPECIES_ID_PROTEAN
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/station/standard/human.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/human
carry_strength_add = CARRY_STRENGTH_ADD_HUMAN
carry_factor_mult = CARRY_FACTOR_MOD_HUMAN
carry_strength_factor = CARRY_FACTOR_MOD_HUMAN

/datum/species/human
id = SPECIES_ID_HUMAN
Expand Down
4 changes: 2 additions & 2 deletions code/modules/species/station/standard/moth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ GLOBAL_LIST_INIT(moth_lore_data, init_moth_lore())

/datum/physiology_modifier/intrinsic/species/nepid/dark
carry_strength_add = CARRY_STRENGTH_ADD_MOTH_DARK
carry_factor_mult = CARRY_FACTOR_MOD_MOTH_DARK
carry_strength_factor = CARRY_FACTOR_MOD_MOTH_DARK

/datum/species/moth/dark
name = SPECIES_MOTH_DARK
Expand All @@ -176,7 +176,7 @@ GLOBAL_LIST_INIT(moth_lore_data, init_moth_lore())

/datum/physiology_modifier/intrinsic/species/nepid/light
carry_strength_add = CARRY_STRENGTH_ADD_MOTH_LIGHT
carry_factor_mult = CARRY_FACTOR_MOD_MOTH_LIGHT
carry_strength_factor = CARRY_FACTOR_MOD_MOTH_LIGHT

/datum/species/moth/light
name = SPECIES_MOTH_LIGHT
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/station/standard/tajaran.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/tajaran
carry_strength_add = CARRY_STRENGTH_ADD_TAJARAN
carry_factor_mult = CARRY_FACTOR_MOD_TAJARAN
carry_strength_factor = CARRY_FACTOR_MOD_TAJARAN

/datum/species/tajaran
uid = SPECIES_ID_TAJARAN
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/station/standard/teshari.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/teshari
carry_strength_add = CARRY_STRENGTH_ADD_TESHARI
carry_factor_mult = CARRY_FACTOR_MOD_TESHARI
carry_strength_factor = CARRY_FACTOR_MOD_TESHARI

/datum/species/teshari
uid = SPECIES_ID_TESHARI
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/station/standard/unathi.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/unathi
carry_strength_add = CARRY_STRENGTH_ADD_UNATHI
carry_factor_mult = CARRY_FACTOR_MOD_UNATHI
carry_strength_factor = CARRY_FACTOR_MOD_UNATHI

/datum/species/unathi
uid = SPECIES_ID_UNATHI
Expand Down
2 changes: 1 addition & 1 deletion code/modules/species/station/xenochimera.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/xenochimera
carry_strength_add = CARRY_STRENGTH_ADD_XENOCHIMERA
carry_factor_mult = CARRY_FACTOR_MOD_XENOCHIMERA
carry_strength_factor = CARRY_FACTOR_MOD_XENOCHIMERA

/datum/species/shapeshifter/xenochimera //Scree's race.
uid = SPECIES_ID_XENOCHIMERA
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/datum/physiology_modifier/intrinsic/species/xenohybrid
carry_strength_add = CARRY_STRENGTH_ADD_XENOHYBRID
carry_factor_mult = CARRY_FACTOR_MOD_XENOHYBRID
carry_strength_factor = CARRY_FACTOR_MOD_XENOHYBRID

/datum/species/xenohybrid
name = SPECIES_XENOHYBRID
Expand Down

0 comments on commit 2c826a0

Please sign in to comment.