Skip to content

Commit

Permalink
Fix rollerblade movement penalty on flat roofs (CleverRaven#54197)
Browse files Browse the repository at this point in the history
* Add ROAD flag to some roof terrain

* Write ROAD flag code documentation
  • Loading branch information
matshou authored Jan 10, 2022
1 parent ad3a0bd commit 7345eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/json/furniture_and_terrain/terrain-roofs.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"looks_like": "t_concrete",
"color": "dark_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
"bash": {
"str_min": 30,
"str_max": 210,
Expand Down Expand Up @@ -266,7 +266,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
"bash": {
"str_min": 30,
"str_max": 210,
Expand Down
1 change: 1 addition & 0 deletions src/mapdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ struct plant_data {
* HIDE_PLACE - Creature on this tile can't be seen by other creature not standing on adjacent tiles
* BLOCK_WIND - This tile will partially block wind
* FLAT_SURF - Furniture or terrain or vehicle part with flat hard surface (ex. table, but not chair; tree stump, etc.).
* ROAD - Mainly affects the speed of rollerblades
*
* Currently only used for Fungal conversions
* WALL - This terrain is an upright obstacle
Expand Down

0 comments on commit 7345eff

Please sign in to comment.