Fixed creature not recomputing correctly when weight carried changes
This commit is contained in:
@@ -84,13 +84,13 @@ function getInventoryData(tree, containersToWrite){
|
||||
for (let key in data){
|
||||
data[key] += childData[key];
|
||||
}
|
||||
if (node.contentsWeightless){
|
||||
data.weightCarried = node.weight;
|
||||
}
|
||||
if (node.carried === false){
|
||||
data.weightCarried = 0;
|
||||
data.valueCarried = 0;
|
||||
}
|
||||
if (node.contentsWeightless){
|
||||
data.weightCarried = node.weight;
|
||||
}
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user