Skip to content

Commit

Permalink
Connect Group for LIXA (CleverRaven#74474)
Browse files Browse the repository at this point in the history
* connect group for LIXA

separate parts of the pipe and laser casing need to connect

* Update mapdata.h

---------

Co-authored-by: Maleclypse <[email protected]>
  • Loading branch information
ShnitzelX2 and Maleclypse authored Jun 26, 2024
1 parent 81ff786 commit 06460ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions data/json/connect_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
"type": "connect_group",
"id": "COUNTER"
},
{
"type": "connect_group",
"id": "LIXATUBE"
},
{
"type": "connect_group",
"id": "CANVAS_WALL"
Expand Down
11 changes: 8 additions & 3 deletions data/json/furniture_and_terrain/LIXA_furniture_and_terrain.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"color": "light_gray",
"move_cost": 3,
"coverage": 50,
"connect_groups": "INDOORFLOOR",
"connect_groups": [ "INDOORFLOOR", "LIXATUBE" ],
"connects_to": "LIXATUBE",
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "THIN_OBSTACLE", "MINEABLE", "UNSTABLE", "INDOORS" ],
"bash": {
"str_min": 30,
Expand Down Expand Up @@ -106,7 +107,8 @@
"color": "light_gray",
"move_cost": 3,
"coverage": 50,
"connect_groups": "INDOORFLOOR",
"connect_groups": [ "INDOORFLOOR", "LIXATUBE" ],
"connects_to": "LIXATUBE",
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "INDOORS", "THIN_OBSTACLE", "UNSTABLE", "MINEABLE" ],
"bash": {
"str_min": 7,
Expand All @@ -128,7 +130,8 @@
"light_emitted": 120,
"move_cost": 2,
"coverage": 50,
"connect_groups": "INDOORFLOOR",
"connect_groups": [ "INDOORFLOOR", "LIXATUBE" ],
"connects_to": "LIXATUBE",
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "INDOORS", "THIN_OBSTACLE", "UNSTABLE", "MINEABLE" ],
"emissions": [ "emit_congealed_light" ]
},
Expand Down Expand Up @@ -304,6 +307,8 @@
"move_cost": 3,
"roof": "t_metal_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE", "FLAT" ],
"connect_groups": [ "INDOORFLOOR", "LIXATUBE" ],
"connects_to": "LIXATUBE",
"deconstruct": {
"ter_set": "t_metal_floor",
"items": [
Expand Down
2 changes: 1 addition & 1 deletion src/mapdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct itype;
struct tripoint;

// size of connect groups bitset; increase if needed
const int NUM_TERCONN = 32;
const int NUM_TERCONN = 256;
connect_group get_connect_group( const std::string &name );

template <typename E> struct enum_traits;
Expand Down

0 comments on commit 06460ed

Please sign in to comment.