|
|
|
@@ -627,8 +627,10 @@ function updateInfo() { |
|
|
|
|
|
|
|
text += prevSelectedEntity.name + " looks " + math.format(apparentHeight, { precision: 3}) + " tall to " + selectedEntity.name + "\n"; |
|
|
|
|
|
|
|
if (selectedEntity.currentView.preyCapacity && prevSelectedEntity.currentView.weight) { |
|
|
|
const containCount = math.divide(selectedEntity.currentView.preyCapacity, math.divide(prevSelectedEntity.currentView.weight, math.unit("80kg/people"))); |
|
|
|
const capacity = selectedEntity.currentView.preyCapacity ?? selectedEntity.currentView.capacity ?? selectedEntity.currentView.volume |
|
|
|
|
|
|
|
if (capacity && prevSelectedEntity.currentView.weight) { |
|
|
|
const containCount = math.divide(capacity, math.divide(prevSelectedEntity.currentView.weight, math.unit("80kg/people"))); |
|
|
|
console.log(containCount); |
|
|
|
if (containCount > 0.1) { |
|
|
|
text += selectedEntity.name + " can fit " + math.format(containCount, { precision: 1 }) + " of " + prevSelectedEntity.name + " inside them" + "\n" |
|
|
|
|