Skip to content

Commit

Permalink
jmapgen itemgroup item default chance (#72458)
Browse files Browse the repository at this point in the history
* Make clutter explicitly 1%

* No Hope

* Change default

* Add an error when prob is used instead of chance

* Remove hopefully all existing prob misuses

* Astyle

* Update data/mods/Defense_Mode/mapgen/mansion.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/mods/Magiclysm/worldgen/mine_balrog.json

* Update data/mods/Magiclysm/worldgen/mine_balrog.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Lint

* Test Bump

* Update data/json/mapgen/mansion_boarded.json

* Update data/json/mapgen/mansion_boarded.json

* Revert balrog change bc I forgot you can only apply damage in groups

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <[email protected]>
  • Loading branch information
3 people authored Apr 25, 2024
1 parent 6002aba commit 1b87e4d
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 174 deletions.
110 changes: 57 additions & 53 deletions data/json/mapgen/mansion.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions data/json/mapgen/mansion_boarded.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"palettes": [ "standard_domestic_palette", "standard_domestic_landscaping_palette" ],
"terrain": { "?": "t_water_pool_shallow_outdoors", "o": "t_window_enhanced", "$": "t_door_metal_locked" },
"items": {
" ": { "item": "clutter_mansion" },
" ": { "item": "clutter_mansion", "chance": 1 },
"K": { "item": "crate_cleaning", "chance": 100 },
"I": { "item": "table_foyer", "chance": 40 }
},
Expand Down Expand Up @@ -136,7 +136,7 @@
},
"furniture": { "&": "f_table", "=": "f_machinery_old", "}": "f_generator_broken", "!": [ "f_crate_c", "f_cardboard_box" ] },
"items": {
".": { "item": "clutter_basement" },
".": { "item": "clutter_basement", "chance": 1 },
"!": { "item": "crate_stack", "chance": 100 },
"H": { "item": "mansion_ammo", "chance": 40 },
"x": { "item": "a_television", "chance": 100 },
Expand Down Expand Up @@ -226,7 +226,7 @@
{ "item": "tailorbooks", "chance": 60, "repeat": [ 0, 1 ] },
{ "item": "SUS_tailoring_fasteners", "chance": 30, "repeat": [ 2, 6 ] }
],
".": { "item": "clutter_basement" },
".": { "item": "clutter_basement", "chance": 1 },
"=": { "item": "sex_lair", "chance": 25, "repeat": [ 2, 4 ] },
"!": { "item": "crate_stack", "chance": 100 },
"D": { "item": "sex_lair", "chance": 55, "repeat": [ 2, 6 ] },
Expand Down Expand Up @@ -280,7 +280,7 @@
")": { "item": "bed", "chance": 40 },
"-": { "item": "clutter_bedroom", "chance": 2 },
" ": { "item": "clutter_bedroom", "chance": 2 },
".": { "item": "clutter_yard" },
".": { "item": "clutter_yard", "chance": 1 },
"~": { "item": "clutter_bathroom", "chance": 10 },
"I": { "item": "vanity", "chance": 40 },
"s": { "item": "nightstand", "chance": 40 },
Expand Down Expand Up @@ -330,7 +330,7 @@
"v": { "item": "mansion_safe", "chance": 100 },
",": { "item": "clutter_bedroom", "chance": 2 },
" ": { "item": "clutter_bedroom", "chance": 2 },
".": { "item": "clutter_yard" },
".": { "item": "clutter_yard", "chance": 1 },
"~": { "item": "clutter_bathroom", "chance": 10 },
")": { "item": "bed", "chance": 40 },
"R": { "item": "mansion_bookcase", "chance": 100 },
Expand Down Expand Up @@ -509,8 +509,8 @@
"furniture": { ")": "f_speaker_cabinet" },
"place_loot": [ { "item": "stereo", "x": 18, "y": 0, "chance": 100 } ],
"items": {
".": { "item": "clutter_yard" },
" ": { "item": "clutter_mansion" },
".": { "item": "clutter_yard", "chance": 1 },
" ": { "item": "clutter_mansion", "chance": 1 },
"J": { "item": "table_sideboard", "chance": 35 },
"x": { "item": "table_livingroom", "chance": 35 }
},
Expand Down Expand Up @@ -612,7 +612,7 @@
},
"furniture": { "&": "f_dive_block" },
"items": {
".": { "item": "clutter_yard" },
".": { "item": "clutter_yard", "chance": 1 },
"i": { "item": "pool_side", "chance": 30 },
",": { "item": "pool_side", "chance": 2 }
},
Expand Down Expand Up @@ -673,7 +673,7 @@
{ "item": "lawn_dart", "x": [ 11, 14 ], "y": [ 4, 6 ], "chance": 100, "repeat": [ 1, 2 ] }
],
"items": {
" ": { "item": "clutter_mansion" },
" ": { "item": "clutter_mansion", "chance": 1 },
"J": { "item": "wetbar_counter", "chance": 25 },
"m": { "item": "wetbar_fridge", "chance": 45 },
"1": { "item": "wetbar_stack", "chance": 100 },
Expand Down Expand Up @@ -732,8 +732,8 @@
},
"place_loot": [ { "item": "stereo", "x": 8, "y": 14, "chance": 100 }, { "item": "television", "x": 9, "y": 14, "chance": 100 } ],
"items": {
".": { "item": "clutter_yard" },
" ": { "item": "clutter_mansion" },
".": { "item": "clutter_yard", "chance": 1 },
" ": { "item": "clutter_mansion", "chance": 1 },
"x": { "item": "mansion_bookcase", "chance": 100 },
"&": { "item": "table_card", "chance": 35 },
"c": { "item": "suit_of_armor", "chance": 100 },
Expand Down Expand Up @@ -851,8 +851,8 @@
},
"furniture": { ")": "f_table" },
"items": {
".": { "item": "clutter_yard" },
" ": { "item": "clutter_mansion" },
".": { "item": "clutter_yard", "chance": 1 },
" ": { "item": "clutter_mansion", "chance": 1 },
"a": { "item": "fireplace_fill", "chance": 30 },
"R": { "item": "mansion_bookcase", "chance": 100 },
")": { "item": "table_livingroom", "chance": 30 }
Expand Down Expand Up @@ -913,7 +913,7 @@
"furniture": { "&": "f_speaker_cabinet" },
"place_loot": [ { "item": "stereo", "x": 22, "y": 15, "chance": 100 } ],
"items": {
" ": { "item": "clutter_mansion" },
" ": { "item": "clutter_mansion", "chance": 1 },
"M": { "item": "art", "chance": 100 },
"s": { "item": "snacks_fancy", "chance": 20 },
"∞": { "item": "mansion_guns", "chance": 100 }
Expand Down Expand Up @@ -959,8 +959,8 @@
"terrain": { "-": "t_carpet_purple", "E": "t_carpet_purple", ")": "t_carpet_purple", "o": "t_window_enhanced" },
"furniture": { ")": "f_bed" },
"items": {
".": { "item": "clutter_yard" },
" ": { "item": "clutter_bedroom" },
".": { "item": "clutter_yard", "chance": 1 },
" ": { "item": "clutter_bedroom", "chance": 1 },
"~": { "item": "clutter_bathroom", "chance": 10 },
"i": { "item": "table_foyer", "chance": 20 },
"R": { "item": "mansion_bookcase", "chance": 100 },
Expand Down Expand Up @@ -1013,7 +1013,7 @@
},
"furniture": { "?": "f_dresser" },
"items": {
" ": { "item": "clutter_mansion" },
" ": { "item": "clutter_mansion", "chance": 1 },
"s": { "item": "nightstand", "chance": 20 },
",": { "item": "softdrugs", "chance": 40 },
"?": { "item": "dresser_servant", "chance": 45 }
Expand Down
Loading

0 comments on commit 1b87e4d

Please sign in to comment.