This commit is contained in:
kevinz000
2020-04-09 02:52:32 -07:00
parent a071a5f2f6
commit a888c7c29a
4 changed files with 22 additions and 16 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
/// Weight class for how much storage capacity it uses and how big it physically is meaning storages can't hold it if their maximum weight class isn't as high as it.
var/w_class = WEIGHT_CLASS_NORMAL
/// Volume override for the item, otherwise automatically calculated from w_class.
var/volume
var/w_volume
/// The amount of stamina it takes to swing an item in a normal melee attack do not lie to me and say it's for realism because it ain't. If null it will autocalculate from w_class.
var/total_mass //Total mass in arbitrary pound-like values. If there's no balance reasons for an item to have otherwise, this var should be the item's weight in pounds.
@@ -862,8 +862,8 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
return ..()
/// Get an item's volume that it uses when being stored.
/obj/item/proc/get_volume()
return isnull(volume)? AUTOSCALE_VOLUME(w_class) : volume
/obj/item/proc/get_w_volume()
return isnull(volume)? AUTOSCALE_VOLUME(w_class) : w_volume
/obj/item/proc/embedded(mob/living/carbon/human/embedded_mob)
return