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

Add Skunks! #73537

Merged
merged 9 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
21 changes: 21 additions & 0 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2073,6 +2073,27 @@
"rating": "bad",
"base_mods": { "vomit_chance": [ 500 ] }
},
{
"type": "effect_type",
"id": "skunk_spray",
"name": [ "Skunk Spray" ],
"desc": [ "You were sprayed by a skunk!" ],
"apply_message": "You're covered in a foul smelling fluid!",
"rating": "bad",
"max_duration": "5 hours",
"base_mods": { "per_mod": [ -1 ], "int_mod": [ -1 ], "vomit_chance": [ 2000 ] },
"enchantments": [
{
"values": [
{ "value": "SOCIAL_PERSUADE", "add": -10 },
{ "value": "SOCIAL_LIE", "add": -4 },
{ "value": "SOCIAL_INTIMIDATE", "add": 2 },
{ "value": "UGLINESS", "add": 5 },
{ "value": "SCENT_MASK", "add": 300 }
]
}
]
},
{
"type": "effect_type",
"id": "invisibility",
Expand Down
17 changes: 17 additions & 0 deletions data/json/harvest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2715,6 +2715,23 @@
{ "drop": "fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "skunk_with_skull",
"type": "harvest",
"entries": [
{ "drop": "skull_skunk", "type": "bone", "scale_num": [ 1, 1 ], "max": 1 },
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.28 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
{ "drop": "raw_fur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "fat", "type": "flesh", "mass_ratio": 0.07 }
]
},
{
"id": "beaver_with_skull",
"type": "harvest",
Expand Down
10 changes: 10 additions & 0 deletions data/json/items/generic/skulls.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@
"volume": "275 ml",
"longest_side": "11 cm"
},
{
"type": "GENERIC",
"id": "skull_skunk",
"name": { "str": "skunk skull" },
"description": "The skull of a skunk.",
"copy-from": "skull_abstract",
"weight": "56 g",
"volume": "300 ml",
"longest_side": "8 cm"
},
{
"type": "GENERIC",
"id": "skull_rodent",
Expand Down
15 changes: 15 additions & 0 deletions data/json/monster_special_attacks/spells.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,21 @@
"id": "portal_cage_revert_transform",
"furniture": [ { "result": [ "f_null" ], "valid_furniture": [ "f_absence" ] } ]
},
{
"id": "skunk_squirt",
"type": "SPELL",
"name": { "str": "Skunk Spray" },
"description": "Skunk spray defense mechanism.",
"valid_targets": [ "hostile" ],
"effect": "attack",
"shape": "cone",
"min_range": 4,
"max_range": 4,
"//": "Duration is 3-5 hours, can't seem to write it in hours, had to write it in moves which is terrible",
"min_duration": 1080000,
"max_duration": 1800000,
TheMurderUnicorn marked this conversation as resolved.
Show resolved Hide resolved
"effect_str": "skunk_spray"
},
{
"id": "boomer_claymore_initial",
"type": "SPELL",
Expand Down
2 changes: 2 additions & 0 deletions data/json/monstergroups/wilderness.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
{ "monster": "mon_weasel", "weight": 5, "cost_multiplier": 5 },
{ "monster": "mon_raccoon", "weight": 8, "cost_multiplier": 0, "pack_size": [ 1, 3 ] },
{ "monster": "mon_opossum", "weight": 8, "cost_multiplier": 0, "pack_size": [ 1, 3 ] },
{ "monster": "mon_skunk", "weight": 6, "cost_multiplier": 0, "pack_size": [ 1, 2 ] },
{ "monster": "mon_black_rat", "weight": 10, "cost_multiplier": 0, "pack_size": [ 1, 5 ] },
{ "group": "GROUP_WILDERNESS_FOREST_MAMMAL_WINTER", "weight": 22 },
{ "group": "GROUP_WILDERNESS_FOREST_MAMMAL_MUTANT", "weight": 1, "starts": "14 days" },
Expand Down Expand Up @@ -505,6 +506,7 @@
{ "group": "GROUP_RABBIT_WILD", "weight": 50, "cost_multiplier": 0 },
{ "monster": "mon_squirrel", "weight": 50, "cost_multiplier": 0 },
{ "monster": "mon_squirrel_red", "weight": 50, "cost_multiplier": 0 },
{ "monster": "mon_skunk", "weight": 2, "cost_multiplier": 0 },
{ "monster": "mon_mantis_small", "weight": 5, "cost_multiplier": 10 },
{ "monster": "mon_lady_bug", "weight": 8, "cost_multiplier": 10 },
{ "monster": "mon_aphid", "weight": 20, "cost_multiplier": 0 },
Expand Down
54 changes: 54 additions & 0 deletions data/json/monsters/mammal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2652,6 +2652,60 @@
"fear_triggers": [ "PLAYER_CLOSE" ],
"flags": [ "SEES", "HEARS", "SMELLS", "ANIMAL", "CLIMBS", "PATH_AVOID_DANGER_1", "WARM", "KEENNOSE", "EATS", "SMALL_HIDER" ]
},
{
"id": "mon_skunk",
"type": "MONSTER",
"name": { "str": "skunk" },
"description": "The common striped skunk, similar in size to opossum or domestic cats, these mammals can often be smelled before they are seen.",
"default_faction": "small_animal",
"bodytype": "pig",
"categories": [ "WILDLIFE" ],
"species": [ "MAMMAL" ],
"volume": "4000 ml",
"weight": "5 kg",
"hp": 12,
"speed": 110,
"material": [ "flesh" ],
"symbol": "s",
"color": "black_white",
"//": "Aggression note - No matter what anger triggers I gave the skunk they would never spray, HAD to raise aggression. Its not a perfect solution but don't lower their aggression or they won't spray anymore",
"aggression": 15,
"morale": 10,
"melee_dice": 1,
"melee_dice_sides": 4,
"melee_damage": [ { "damage_type": "cut", "amount": 1 } ],
"special_attacks": [
{
"type": "spell",
"spell_data": { "id": "skunk_squirt", "min_level": 0 },
"monster_message": "A skunk raises its tail and squirts!",
"cooldown": 10
},
[ "BROWSE", 150 ]
],
"dodge": 2,
"vision_day": 9,
"vision_night": 9,
"stomach_size": 50,
"harvest": "skunk_with_skull",
"families": [ "prof_intro_biology", "prof_physiology" ],
"anger_triggers": [ "FRIEND_ATTACKED", "HURT" ],
"fear_triggers": [ "PLAYER_CLOSE" ],
"flags": [
"SEES",
"HEARS",
"SMELLS",
"ANIMAL",
"CLIMBS",
"PATH_AVOID_DANGER_1",
"WARM",
"KEENNOSE",
"GOODHEARING",
"EATS",
"CORNERED_FIGHTER",
"SMALL_HIDER"
]
},
{
"id": "mon_otter",
"type": "MONSTER",
Expand Down
Loading