Skip to content

Commit

Permalink
Mantis and ladybug rebalance
Browse files Browse the repository at this point in the history
Implement Venera's comments
  • Loading branch information
SuddenEyePuncture authored Jun 15, 2021
2 parents 2af2bd9 + 8e7ddc9 commit e21179f
Show file tree
Hide file tree
Showing 29 changed files with 121 additions and 69 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ jobs:
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
env:
USE_HOME_DIR: 1
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
Expand Down Expand Up @@ -237,3 +239,13 @@ jobs:
asset_path: cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
asset_name: cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
asset_content_type: ${{ matrix.content }}
- name: Trigger GitHub pages rebuild
run: |
curl --fail --request POST \
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \
--header "Authorization: Bearer $USER_TOKEN" \
--header "Accept: application/vnd.github.v3+json"
env:
# You must create a personal token with repo access as GitHub does
# not yet support server-to-server page builds.
USER_TOKEN: ${{ secrets.USER_TOKEN }}
2 changes: 2 additions & 0 deletions data/json/itemgroups/Food/food.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,8 @@
{ "item": "hamburger", "count": [ 0, 3 ] },
{ "item": "sloppyjoe", "count": [ 0, 3 ] },
{ "item": "fries", "count": [ 0, 3 ] },
{ "item": "hotdogs_cooked", "count": [ 0, 3 ] },
{ "item": "corndogs_cooked", "count": [ 0, 3 ] },
{ "item": "bacon", "count": [ 0, 3 ] }
]
},
Expand Down
2 changes: 1 addition & 1 deletion data/json/mapgen/basement/basement_game.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "mapgen",
"method": "json",
"om_terrain": [ "basement" ],
"//": "used by house_31 and house_32 and house_32",
"//": "used by house_31 and house_32",
"weight": 250,
"object": {
"rotation": [ 0, 3 ],
Expand Down
6 changes: 3 additions & 3 deletions data/json/mapgen/basement/basement_lab_stairs.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"|.ccccccc.|..|xh..h..hx|",
"|.........|7.|d..dxd..d|",
"|---------|..|---------|",
"########--|LL6--########",
"########--|LL!--########",
"########=,,,,,,=########",
"########=,,,,,,=########",
"########=,,,,,,=########",
Expand All @@ -38,8 +38,8 @@
"terrain": {
"=": "t_wall",
",": "t_rock_floor",
"6": "t_card_science",
"7": "t_rock_floor",
"!": "t_card_science",
"7": "t_thconc_floor",
"<": "t_stairs_up",
">": "t_stairs_down"
},
Expand Down
11 changes: 10 additions & 1 deletion data/json/mapgen/church.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@
" ^^ ss ^^ s ",
" ^^ ss ^^ s "
],
"terrain": { "p": "t_floor", "W": "t_floor", "<": "t_stairs_up", "y": "t_floor", "r": "t_carpet_red" },
"terrain": {
"p": "t_floor",
"6": "t_floor",
"W": "t_floor",
"<": "t_stairs_up",
"y": "t_floor",
"t": "t_carpet_red",
"r": "t_carpet_red"
},
"furniture": { "p": "f_piano", "W": "f_wardrobe" },
"palettes": [ "church" ],
"mapping": { "b": { "furniture": "f_brazier" } },
Expand Down Expand Up @@ -265,6 +273,7 @@
"<": "t_stairs_up",
",": "t_floor",
"t": "t_floor",
"6": "t_floor",
"y": "t_floor"
},
"items": {
Expand Down
4 changes: 2 additions & 2 deletions data/json/mapgen/house/house31.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"method": "json",
"om_terrain": "house_31",
"//": "used by legacy basements including lab basements, no dedicated stairs added.",
"//": "used by lab basements.",
"type": "mapgen",
"weight": 100,
"object": {
Expand All @@ -20,7 +20,7 @@
") hhhh #~~~~~~~#",
") ffff +~~~~~~~#",
") hhhh #U~NN~~q#",
"# RRT #########",
"# >RRT #########",
"#6 Y|||||||| | I@@I #",
"#6 J|RIII + + @@ o",
"o7 J| h ||+|| b#",
Expand Down
4 changes: 2 additions & 2 deletions data/json/mapgen/house/house32.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"method": "json",
"om_terrain": "house_32",
"//": "used by lab basements, no dedicated stairs added.",
"//": "used by lab basements.",
"type": "mapgen",
"weight": 100,
"object": {
Expand All @@ -14,7 +14,7 @@
"#~~~~~~~~+ *````.....",
"#~~~~~~~~# o.......^.",
"#~~~~~~~U#L ###]]]]###",
"#~~~~~~~U# HHHH T#",
"#~~~~~~~U#> HHHH T#",
"#~~~~~~~q#R ll x#",
"#~~NN~~qq#R o",
"##########c HHHH #",
Expand Down
4 changes: 2 additions & 2 deletions data/json/monsters/cyborgs.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"SEES",
"HEARS",
"BASHES",
"ATTACKMON",
"PUSH_MON",
"ELECTRONIC",
"NO_BREATHE",
"REVIVES",
Expand Down Expand Up @@ -78,7 +78,7 @@
"SEES",
"HEARS",
"BASHES",
"ATTACKMON",
"PUSH_MON",
"ELECTRONIC",
"WARM",
"STUMBLES",
Expand Down
1 change: 0 additions & 1 deletion data/json/monsters/fungus.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@
"BASHES",
"DESTROYS",
"POISON",
"ATTACKMON",
"NO_BREATHE",
"PUSH_MON",
"PUSH_VEH",
Expand Down
36 changes: 20 additions & 16 deletions data/json/monsters/insect_spider.json
Original file line number Diff line number Diff line change
Expand Up @@ -1938,8 +1938,8 @@
"material": [ "iflesh" ],
"symbol": "M",
"color": "light_green",
"aggression": 50,
"morale": 80,
"aggression": 20,
"morale": 30,
"melee_skill": 8,
"melee_dice": 1,
"melee_dice_sides": 6,
Expand All @@ -1948,8 +1948,8 @@
"armor_bash": 10,
"armor_cut": 16,
"armor_bullet": 13,
"vision_day": 15,
"vision_night": 5,
"vision_day": 8,
"vision_night": 4,
"harvest": "arachnid",
"anger_triggers": [ "PLAYER_WEAK", "PLAYER_CLOSE" ],
"fear_triggers": [ "FIRE", "HURT" ],
Expand All @@ -1975,13 +1975,16 @@
"melee_dice": 2,
"melee_cut": 20,
"dodge": 2,
"attack_cost":25,
"special_attacks": [
{
"type": "bite",
"cooldown": 4,
"accuracy": 5,
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_multiplier": 0.6 } ]
}
"no_infection_chance": 25,
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_penetration": 0.6 } ]
},
[ "RANGED_PULL", 30 ], [ "GRAB_DRAG", 10 ], { "type": "leap", "cooldown": 8, "max_range": 5, "allow_no_target": false }
],
"extend": { "flags": [ "DESTROYS", "PUSH_MON", "PUSH_VEH" ] },
"delete": { "type": "leap", "cooldown": 8, "max_range": 5, "allow_no_target": false }
Expand Down Expand Up @@ -2030,21 +2033,21 @@
"species": [ "INSECT" ],
"volume": "400 L",
"weight": "533 kg",
"hp": 160,
"hp": 350,
"speed": 110,
"material": [ "iflesh" ],
"symbol": "B",
"color": "red",
"morale": 80,
"aggression": 40,
"morale": 40,
"aggression": 20,
"melee_skill": 6,
"melee_dice": 2,
"melee_dice_sides": 6,
"melee_cut": 8,
"dodge": 1,
"armor_bash": 7,
"armor_cut": 12,
"armor_bullet": 10,
"armor_cut": 20,
"armor_bullet": 30,
"vision_day": 20,
"vision_night": 5,
"harvest": "arachnid",
Expand All @@ -2056,10 +2059,10 @@
"type": "bite",
"cooldown": 4,
"accuracy": 6,
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_multiplier": 0.6 } ]
}
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_penetration": 0.6 } ]
}
],
"flags": [ "POISON", "SEES", "HEARS", "SMELLS", "FLIES", "PATH_AVOID_FIRE", "PATH_AVOID_FALL" ]
"flags": ["POISON", "SEES", "HEARS", "SMELLS", "FLIES" , "PATH_AVOID_FIRE" ]
},
{
"id": "mon_grasshopper_small",
Expand Down Expand Up @@ -2143,8 +2146,9 @@
"type": "bite",
"cooldown": 4,
"accuracy": 8,
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_multiplier": 0.6 } ]
}
"no_infection_chance": 25,
"damage_max_instance": [ { "damage_type": "stab", "amount": 15, "armor_penetration": 0.6 } ]
}
],
"flags": [ "POISON", "SEES", "SMELLS", "IMMOBILE", "DIGS", "RANGED_ATTACKER" ]
},
Expand Down
6 changes: 3 additions & 3 deletions data/json/monsters/mammal.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"//": "220 days gestation period, the mother and cubs remain together for 16-17 months.",
"baby_flags": [ "SPRING" ],
"special_attacks": [ [ "EAT_FOOD", 20 ] ],
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM", "BASHES", "ATTACKMON" ]
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM", "BASHES", "PUSH_MON" ]
},
{
"id": "mon_beaver",
Expand Down Expand Up @@ -1854,7 +1854,7 @@
"harvest": "mammal_large_leather",
"biosignature": { "biosig_item": "feces_manure", "biosig_timer": 8 },
"special_attacks": [ [ "EAT_CROP", 60 ] ],
"flags": [ "SEES", "HEARS", "SMELLS", "PET_MOUNTABLE", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM", "ATTACKMON" ]
"flags": [ "SEES", "HEARS", "SMELLS", "PET_MOUNTABLE", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM" ]
},
{
"id": "mon_muskrat",
Expand Down Expand Up @@ -1920,7 +1920,7 @@
"death_function": [ "NORMAL" ],
"regenerates": 10,
"regen_morale": true,
"flags": [ "ATTACKMON", "BORES", "CAN_DIG", "HEARS", "KEENNOSE", "PATH_AVOID_DANGER_1", "SMELLS", "WARM" ],
"flags": [ "PUSH_MON", "BORES", "CAN_DIG", "HEARS", "KEENNOSE", "PATH_AVOID_DANGER_1", "SMELLS", "WARM" ],
"//": "Reinsert GOODHEARING when z-level tunneling is possible."
},
{
Expand Down
2 changes: 1 addition & 1 deletion data/json/monsters/mutant_mammal.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"placate_triggers": [ "MEAT" ],
"death_function": [ "NORMAL" ],
"harvest": "mutant_mammal_large_fur",
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM", "BASHES", "ATTACKMON", "STUMBLES", "KEENNOSE" ]
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "PATH_AVOID_DANGER_1", "WARM", "BASHES", "PUSH_MON", "STUMBLES", "KEENNOSE" ]
},
{
"id": "mon_beaver_mutant_huge",
Expand Down
3 changes: 2 additions & 1 deletion data/json/monsters/nether.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@
"NOHEAD",
"BASHES",
"FLIES",
"ATTACKMON",
"PUSH_MON",
"PUSH_VEH",
"PLASTIC",
"NO_BREATHE",
"HIT_AND_RUN",
Expand Down
2 changes: 1 addition & 1 deletion data/json/monsters/reptile_amphibian.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"fear_triggers": [ "FIRE", "HURT" ],
"placate_triggers": [ "MEAT" ],
"death_function": [ "NORMAL" ],
"flags": [ "SEES", "HEARS", "GOODHEARING", "SMELLS", "KEENNOSE", "PATH_AVOID_DANGER_1", "ANIMAL", "ATTACKMON", "SWIMS" ]
"flags": [ "SEES", "HEARS", "GOODHEARING", "SMELLS", "KEENNOSE", "PATH_AVOID_DANGER_1", "ANIMAL", "PUSH_MON", "SWIMS" ]
},
{
"id": "mon_rattlesnake",
Expand Down
3 changes: 1 addition & 2 deletions data/json/monsters/zed-animal.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@
"REVIVES",
"FILTHY",
"PUSH_MON",
"PUSH_VEH",
"ATTACKMON"
"PUSH_VEH"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion data/json/monsters/zed_misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@
"BASHES",
"DESTROYS",
"POISON",
"ATTACKMON",
"NO_BREATHE",
"REVIVES",
"PUSH_MON",
Expand Down
1 change: 0 additions & 1 deletion data/json/monsters/zed_skeletal.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
"BASHES",
"DESTROYS",
"POISON",
"ATTACKMON",
"NO_BREATHE",
"REVIVES",
"PUSH_MON",
Expand Down
2 changes: 2 additions & 0 deletions data/json/overmap/multitile_city_buildings.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@
"type": "city_building",
"id": "house_31",
"locations": [ "land" ],
"//": "The generic basement of this house is a target for the hidden lab map special",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "house_31_north" },
{ "point": [ 0, 0, 1 ], "overmap": "house_31_roof_north" },
Expand All @@ -665,6 +666,7 @@
"type": "city_building",
"id": "house_32",
"locations": [ "land" ],
"//": "The generic basement of this house is a target for the hidden lab map special",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "house_32_north" },
{ "point": [ 0, 0, 1 ], "overmap": "house_32_roof_north" },
Expand Down
5 changes: 5 additions & 0 deletions data/json/overmap/overmap_connections.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@
{ "terrain": "railroad_level_crossing", "locations": [ "railroad_level_crossing_allowed" ], "basic_cost": 1 },
{ "terrain": "railroad_bridge", "locations": [ "water" ], "basic_cost": 1, "flags": [ "ORTHOGONAL" ] }
]
},
{
"type": "overmap_connection",
"id": "hidden_lab_basement",
"subtypes": [ { "terrain": "basement", "locations": [ "potential_basement_lab_entrance" ], "basic_cost": 0 } ]
}
]
11 changes: 11 additions & 0 deletions data/json/overmap/overmap_special/specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -7323,5 +7323,16 @@
"city_sizes": [ 0, 12 ],
"occurrences": [ 10, 100 ],
"flags": [ "CLASSIC", "UNIQUE" ]
},
{
"type": "overmap_special",
"id": "basement_hidden_lab_entrance",
"overmaps": [ { "point": [ 0, 0, -1 ], "overmap": "basement_hidden_lab_stairs" } ],
"connections": [ { "point": [ 0, 0, -1 ], "connection": "hidden_lab_basement", "terrain": "basement", "existing": true } ],
"rotate": false,
"locations": [ "potential_basement_lab_entrance" ],
"//": "Low chance to find a matching location, so always try to place it",
"occurrences": [ 100, 100 ],
"flags": [ "LAB", "UNIQUE" ]
}
]
5 changes: 5 additions & 0 deletions data/json/overmap/special_locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,10 @@
"type": "overmap_location",
"id": "lake_shore",
"terrains": [ "lake_shore" ]
},
{
"type": "overmap_location",
"id": "potential_basement_lab_entrance",
"terrains": [ "basement" ]
}
]
Loading

0 comments on commit e21179f

Please sign in to comment.