-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
I put nodachi in my fish #71530
Comments
Wasn't that fixed by #61575 ? |
I am playing on relatively fresh build.
Nevermind that. Here are my twelve 100 L tanks in my salmon. When put in any other container, fish pocket settings can be changed in parent container pocket manager. So just put fish in 200 L barrel, set its priority to high value and then grab bunch of anything and it will fit. It seems like every fish has capacity of 1650 L. |
Not sure if this is related. Yesterday I was trying something with corpse (item) and noticed they have an extremely large pocket size with the |
Working link to corpses |
Flag Cataclysm-DDA/doc/JSON_FLAGS.md Line 867 in bcd1145
Maybe it is put on things that look like TARDIS, instead of things that should have infinite internal volume. |
Other occurrences of
the following one probably cannot occur and is only for testing
|
I think to fix this, just remove the I guess I will make a PR, since I don't even need to compile to fix this :) |
To my understanding, corpses have the TARDIS tag so that, regardless of what loot spawns on them it all stays inside the corpse "container", rather than them bursting like a loot piñata upon death. I'd think of Chesterton's Fence and consider why the flag was applied in the first place. |
I am changing the mentioned wallet to be rigid: false, like others, instead of TARDIS. I will try to look what can corpses contain and set normal rigid: false pocket. But current behaviour is unacceptable. I don't think that setting TARDIS flag on any pocket in base game is acceptable. I am changing the error suggesting doing that too. |
Removing flag would break ci checks and would not resolve the issue. Because the only purpose of it is to bypass this sanity check: Cataclysm-DDA/src/item_factory.cpp Lines 1921 to 1931 in bcd1145
|
@Cenness |
IMHO we need a flag that works like TARDIS but only for spawned items (so that corpses work like before but you CAN'T put huge stuff in them) |
I think this would necessitate a cpp change differentiating between player inserting things and the code inserting things. I will try to see if my idea works. Didn't spawn corpses yet. If there is a particularly big corpse, refer me to it. But my change would probably necessitate specifying container size for each corpse... I will see. |
I don't think the flag is the problem, because it (corpses not having +1000 L of storage) was working before. |
TARDIS flag was added to corpses with "Zombies keep their loot with them when reviving" #50987 It specifically says:
So I guess that is the part that is broken. It doesn't justify using the TARDIS flag, however. |
I lost interest in this, at least for now. I was fiddling with the stylish wallet item. It is too late for me to think. I did this: diff --git a/data/json/items/generic.json b/data/json/items/generic.json
index 016a6587f1..d01c40e4c9 100644
--- a/data/json/items/generic.json
+++ b/data/json/items/generic.json
@@ -3883,7 +3883,7 @@
"price": 15000,
"price_postapoc": 250,
"material": [ "plastic", "leather" ],
- "flags": [ "OVERSIZE", "BELTED", "ALLOWS_NATURAL_ATTACKS", "TARDIS", "COLLAPSE_CONTENTS", "POWERARMOR_COMPATIBLE" ],
+ "flags": [ "OVERSIZE", "BELTED", "ALLOWS_NATURAL_ATTACKS", "COLLAPSE_CONTENTS", "POWERARMOR_COMPATIBLE" ],
"weight": "708 g",
"volume": "500 ml",
"to_hit": -1,
@@ -3891,7 +3891,7 @@
"pocket_data": [
{
"pocket_type": "CONTAINER",
- "rigid": true,
+ "rigid": false,
"max_contains_weight": "600 g",
"max_contains_volume": "500 ml",
"moves": 400,
diff --git a/src/item_factory.cpp b/src/item_factory.cpp
index 809457da0e..c5ecce2105 100644
--- a/src/item_factory.cpp
+++ b/src/item_factory.cpp
@@ -1925,7 +1925,7 @@ void Item_factory::check_definitions() const
volume /= type->charges_default();
}
if( item_contents( type->pockets ).bigger_on_the_inside( volume ) ) {
- msg += "is bigger on the inside. consider using TARDIS flag.\n";
+ msg += "is bigger on the inside. Consider setting rigid to false or using TARDIS flag.\n";
}
}
}
|
Describe the bug
If you have a fish corpse in your inventory, you can put different items in it by 'w'ielding and then un'w'ielding them. Works with fishing rods and nodachi and seemingly anything below certain volume. Disregards items length: I can put whole glaive in my fish and than that fish in makeshift sling. I tried to put 60 liter tank in my kokanee salmon and it didn't work.
Attach save file
Essex.zip
I am holding my American pickerel scabbard.
Steps to reproduce
Expected behavior
You can't put Mossberg 500 security shotgun in you yellow perch.
Screenshots
Versions and configuration
Version: 4aee1f3
OS: Windows 11
Additional context
No response
The text was updated successfully, but these errors were encountered: