Skip to content
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

jsonifny water_from #76366

Merged
merged 3 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion data/json/furniture_and_terrain/furniture-plumbing.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"move_cost_mod": 2,
"coverage": 30,
"required_str": -1,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "MOUNTABLE", "LIQUIDCONT", "TOILET_WATER" ],
"liquid_source": { "id": "water", "count": 24 },
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "MOUNTABLE", "LIQUIDCONT" ],
"examine_action": "finite_water_source",
"bash": {
"str_min": 8,
Expand Down
1 change: 1 addition & 0 deletions data/json/furniture_and_terrain/terrain-bridges-docks.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"move_cost": 8,
"flags": [ "TRANSPARENT", "LIQUID", "SWIMMABLE", "DEEP_WATER", "FISHABLE" ],
"connect_groups": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source",
"deconstruct": { "ter_set": "t_water_moving_dp", "items": [ { "item": "spike", "count": 4 }, { "item": "wood_beam", "count": 1 } ] },
"looks_like": "t_column",
Expand Down
61 changes: 41 additions & 20 deletions data/json/furniture_and_terrain/terrain-liquids.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -26,6 +27,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -40,6 +42,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "NO_FLOOR_WATER", "EMPTY_SPACE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -56,6 +59,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "INDOORS", "EMPTY_SPACE" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -67,9 +71,10 @@
"color": "light_blue",
"looks_like": "t_water_sh",
"move_cost": 5,
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER", "MURKY" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water_murky" },
"examine_action": "water_source"
},
{
Expand All @@ -83,9 +88,10 @@
"looks_like": "t_water_sh",
"move_cost": 5,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "INDOORS", "SHALLOW_WATER", "MURKY" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water_murky" },
"examine_action": "water_source"
},
{
Expand All @@ -100,6 +106,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "CURRENT", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -116,6 +123,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "CURRENT", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -130,6 +138,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "CURRENT", "EMPTY_SPACE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -146,6 +155,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "CURRENT", "INDOORS", "EMPTY_SPACE" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -157,7 +167,8 @@
"looks_like": "t_water_sh",
"color": "light_blue",
"move_cost": 5,
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SALT_WATER", "FISHABLE", "SHALLOW_WATER" ],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -173,7 +184,8 @@
"looks_like": "t_swater_sh",
"move_cost": 5,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SALT_WATER", "FISHABLE", "INDOORS", "SHALLOW_WATER" ],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -187,7 +199,8 @@
"looks_like": "t_water_dp",
"color": "blue",
"move_cost": 8,
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SALT_WATER", "DEEP_WATER", "FISHABLE", "EMPTY_SPACE" ],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "EMPTY_SPACE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -203,7 +216,8 @@
"looks_like": "t_swater_dp",
"move_cost": 8,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SALT_WATER", "DEEP_WATER", "FISHABLE", "INDOORS", "EMPTY_SPACE" ],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "FISHABLE", "INDOORS", "EMPTY_SPACE" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -217,9 +231,10 @@
"color": "cyan",
"looks_like": "t_swater_sh",
"move_cost": 4,
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"connect_groups": [ "SAND", "WATER" ],
"connects_to": [ "SAND", "SANDMOUND", "SANDGLASS", "WATER" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SALT_WATER", "DIGGABLE", "FLAT" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DIGGABLE", "FLAT" ],
"examine_action": "water_source"
},
{
Expand All @@ -234,6 +249,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "INDOORS", "DEEP_WATER", "EMPTY_SPACE" ],
"connect_groups": [ "INDOORFLOOR", "POOLWATER" ],
"connects_to": "POOLWATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -248,6 +264,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "POOLWATER" ],
"connects_to": "POOLWATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -262,6 +279,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "EMPTY_SPACE" ],
"connect_groups": "POOLWATER",
"connects_to": "POOLWATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -276,6 +294,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SHALLOW_WATER" ],
"connect_groups": "POOLWATER",
"connects_to": "POOLWATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -287,6 +306,7 @@
"looks_like": "t_water_murky",
"color": "light_green",
"move_cost": 6,
"liquid_source": { "id": "water_sewage" },
"flags": [ "TRANSPARENT", "SWIMMABLE", "SHALLOW_WATER" ],
"examine_action": "water_source"
},
Expand Down Expand Up @@ -316,6 +336,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "WATER_CUBE", "NO_FLOOR_WATER", "EMPTY_SPACE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -326,17 +347,8 @@
"symbol": "~",
"color": "blue",
"move_cost": 8,
"flags": [
"TRANSPARENT",
"LIQUID",
"NO_SCENT",
"SWIMMABLE",
"DEEP_WATER",
"SALT_WATER",
"WATER_CUBE",
"NO_FLOOR_WATER",
"EMPTY_SPACE"
],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "WATER_CUBE", "NO_FLOOR_WATER", "EMPTY_SPACE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -354,6 +366,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "WATER_CUBE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -369,6 +382,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "GOES_UP" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -384,6 +398,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "GOES_UP", "MINEABLE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand Down Expand Up @@ -431,6 +446,7 @@
},
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -453,6 +469,7 @@
},
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -467,6 +484,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"liquid_source": { "id": "water_murky" },
"examine_action": "water_source"
},
{
Expand All @@ -478,7 +496,8 @@
"symbol": "~",
"color": "light_blue",
"move_cost": 3,
"flags": [ "TRANSPARENT", "LIQUIDCONT", "SPAWN_WITH_WATER", "MURKY" ],
"liquid_source": { "id": "water_murky", "count": [ 40, 240 ] },
"flags": [ "TRANSPARENT", "LIQUIDCONT" ],
"examine_action": "finite_water_source"
},
{
Expand All @@ -491,7 +510,8 @@
"color": "light_blue",
"move_cost": 3,
"connect_groups": "INDOORFLOOR",
"flags": [ "TRANSPARENT", "LIQUIDCONT", "SPAWN_WITH_WATER", "MURKY", "INDOORS" ],
"liquid_source": { "id": "water_murky", "count": [ 40, 240 ] },
"flags": [ "TRANSPARENT", "LIQUIDCONT", "INDOORS" ],
"examine_action": "finite_water_source"
},
{
Expand All @@ -508,6 +528,7 @@
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "INDOORS", "SHALLOW_WATER" ],
"connect_groups": [ "INDOORFLOOR", "WATER" ],
"connects_to": "WATER",
"liquid_source": { "id": "water" },
"examine_action": "water_source"
}
]
6 changes: 5 additions & 1 deletion data/json/furniture_and_terrain/terrain-manufactured.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@
{ "item": "pipe", "count": [ 0, 2 ] }
]
},
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -795,6 +796,7 @@
"ter_set": "t_covered_well",
"items": [ { "item": "string_6", "count": [ 0, 18 ] }, { "item": "splinter", "count": [ 0, 24 ] } ]
},
"liquid_source": { "id": "water" },
"examine_action": "water_source"
},
{
Expand All @@ -807,7 +809,8 @@
"color": "light_gray",
"move_cost": 6,
"coverage": 40,
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "SALT_WATER" ],
"liquid_source": { "id": "salt_water", "min_temp": 2.2 },
"flags": [ "TRANSPARENT", "THIN_OBSTACLE" ],
"deconstruct": { "ter_set": "t_covered_well", "items": [ { "item": "well_pump", "count": 1 }, { "item": "pipe", "count": [ 1, 6 ] } ] },
"bash": {
"str_min": 15,
Expand Down Expand Up @@ -835,6 +838,7 @@
"move_cost": 0,
"coverage": 40,
"flags": [ "TRANSPARENT", "LIQUIDCONT" ],
"liquid_source": { "id": "water_clean", "count": [ 40, 240 ] },
"bash": {
"str_min": 15,
"str_max": 80,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"color": "black",
"move_cost": 6,
"emissions": [ "emit_cold_nether_water" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "MURKY" ],
"//liquid_source": { "id": "water_murky" },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE" ],
"connect_groups": "WATER",
"connects_to": "WATER"
},
Expand All @@ -34,7 +35,8 @@
"color": "black",
"move_cost": 10,
"emissions": [ "emit_cold_deep_nether_water" ],
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER", "MURKY" ],
"//liquid_source": { "id": "water_murky" },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "DEEP_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER"
},
Expand Down
6 changes: 4 additions & 2 deletions data/mods/My_Sweet_Cataclysm/sweet_mapgen/sweet_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"symbol": "~",
"color": "light_blue",
"move_cost": 5,
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER", "CHOCOLATE" ],
"liquid_source": { "id": "liquid_cacao", "min_temp": 4.4 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "SHALLOW_WATER" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"examine_action": "water_source"
Expand All @@ -20,7 +21,8 @@
"symbol": "~",
"color": "light_blue",
"move_cost": 5,
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE", "CHOCOLATE" ],
"liquid_source": { "id": "liquid_cacao", "min_temp": 4.4 },
"flags": [ "TRANSPARENT", "LIQUID", "NO_SCENT", "SWIMMABLE", "FISHABLE" ],
"connect_groups": "WATER",
"connects_to": "WATER",
"examine_action": "water_source"
Expand Down
5 changes: 2 additions & 3 deletions doc/EXAMINE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The examine actors are specified as JSON objects with a `type` corresponding to
- ```controls_gate``` Controls the attached gate.
- ```dirtmound``` Plant seeds and plants.
- ```elevator``` Use the elevator to change floors.
- ```finite_water_source``` Drink or get water from a water source. Unlike ordinary `water_source`, terrain with this examine action will get liquid from a finite source (liquid is placed on that tile as an item during the mapgen) and will stop functioning if said liquid if exhausted on that tile.
- ```finite_water_source``` Drink or get liquid from this terrain/furniture. Unlike ordinary `water_source`, terrain with this examine action will get liquid from a finite source (liquid is placed on that tile as an item during the mapgen) and will stop functioning if said liquid if exhausted on that tile. Should be used in pair with `liquid_source`
- ```flower_poppy``` Pick the mutated poppy.
- ```fswitch``` Flip the switch and the rocks will shift.
- ```fungus``` Release spores as the terrain crumbles away.
Expand All @@ -37,8 +37,7 @@ The examine actors are specified as JSON objects with a `type` corresponding to
- ```shrub_marloss``` Pick a Marloss bush.
- ```shrub_wildveggies``` Pick a wild veggies shrub.
- ```slot_machine``` Gamble.
- ```toilet``` Either drink or get water out of the toilet.
- ```water_source``` Drink or get water from a water source.
- ```water_source``` Drink or get liquid from a furniture/terrain. Should be used in pair with `liquid_source`

## Examine Actors

Expand Down
Loading
Loading