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

Liquid attacks can do damage, apply flags, apply effects #71584

Closed
wants to merge 96 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
043890b
Emerald splash!
worm-girl Feb 7, 2024
95c354b
testing stuff
worm-girl Feb 7, 2024
7af851e
More testing
worm-girl Feb 7, 2024
dd1001f
make it a spell
worm-girl Feb 11, 2024
cbc8a71
Update monattack.cpp
worm-girl Feb 11, 2024
e071b3d
Stuff
worm-girl Feb 12, 2024
2f58eb6
Update settings.json
worm-girl Feb 12, 2024
1742ab9
no talker stuff
worm-girl Feb 12, 2024
146317c
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 12, 2024
065dd9d
Update talker_character.h
worm-girl Feb 12, 2024
95b32a2
wash acid off
worm-girl Feb 12, 2024
8eb4f0f
wee
worm-girl Feb 12, 2024
853db22
acid!
worm-girl Feb 13, 2024
6a932bc
more stuff
worm-girl Feb 14, 2024
5a9acd4
better code!
worm-girl Feb 14, 2024
2f21832
even better code...perhaps the ultimate...
worm-girl Feb 14, 2024
842c291
balance
worm-girl Feb 14, 2024
d9c71dd
more balance
worm-girl Feb 14, 2024
67ad5f0
cleanup
worm-girl Feb 15, 2024
3cccf7c
Update settings.json
worm-girl Feb 15, 2024
b798deb
fat trimmin
worm-girl Feb 15, 2024
5edee8f
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 15, 2024
8e5bf33
get outta here sewage
worm-girl Feb 15, 2024
c5d3a70
eye targeting
worm-girl Feb 15, 2024
625c72e
Update item.cpp
worm-girl Feb 15, 2024
419987c
Update settings.json
worm-girl Feb 15, 2024
fc20f24
trim more
worm-girl Feb 15, 2024
a805402
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 15, 2024
bcdbb88
math
worm-girl Feb 15, 2024
a4b18a4
bile stink, effect balance
worm-girl Feb 16, 2024
bb8b475
finishing up
worm-girl Feb 16, 2024
24e17e9
astyle
worm-girl Feb 16, 2024
fe2d91d
there we go
worm-girl Feb 16, 2024
4f3fb0b
acid balance
worm-girl Feb 16, 2024
0b9e705
Update data/json/monsters/zed_explosive.json
worm-girl Feb 16, 2024
f7632bf
Update data/json/monsters/zed_explosive.json
worm-girl Feb 16, 2024
b75f224
Update magic_spell_effect.cpp
worm-girl Feb 16, 2024
4353774
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 16, 2024
293503a
Update effects.json
worm-girl Feb 16, 2024
e6823d7
Update zed_acid.json
worm-girl Feb 16, 2024
fcf0a81
squash error
worm-girl Feb 16, 2024
e4b6076
Update data/json/monsters/zed_acid.json
worm-girl Feb 16, 2024
4611cae
Update materials.json
worm-girl Feb 16, 2024
5ef5465
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 16, 2024
bcb2dd9
Update magic.h
worm-girl Feb 17, 2024
560693b
Update monattack.cpp
worm-girl Feb 17, 2024
aa0b873
Update iteminfo_test.cpp
worm-girl Feb 18, 2024
4e106fa
Update iteminfo_test.cpp
worm-girl Feb 18, 2024
3181c6f
Update iteminfo_test.cpp
worm-girl Feb 19, 2024
f62d9a3
Update materials_test.cpp
worm-girl Feb 19, 2024
b1361b5
Update iteminfo_test.cpp
worm-girl Feb 19, 2024
7c4d397
tessts
worm-girl Feb 19, 2024
c1a347c
tests hhh
worm-girl Feb 19, 2024
80b120c
Update iteminfo_test.cpp
worm-girl Feb 19, 2024
337af45
materials
worm-girl Feb 19, 2024
37d5e1e
verbs
worm-girl Feb 19, 2024
62c9d67
Update materials.json
worm-girl Feb 19, 2024
d691068
Update iteminfo_test.cpp
worm-girl Feb 19, 2024
f34b564
Update iteminfo_test.cpp
worm-girl Feb 20, 2024
f7a03ae
Update character_armor.cpp
worm-girl Feb 20, 2024
5d3e92b
Update character_attire.cpp
worm-girl Feb 20, 2024
59d9b67
Update src/field.h
worm-girl Feb 20, 2024
246abbc
Update item.h
worm-girl Feb 20, 2024
802181b
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 20, 2024
33f110d
Update src/character_armor.cpp
worm-girl Feb 20, 2024
b357a58
fixes
worm-girl Feb 20, 2024
d178007
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 20, 2024
2c63787
Update src/field.h
worm-girl Feb 20, 2024
ad1363f
Merge branch 'master' into boomerbuff4
worm-girl Feb 20, 2024
1d96397
fixes
worm-girl Feb 20, 2024
5eae4c9
Merge branch 'boomerbuff4' of https://github.com/fairyarmadillo/Catac…
worm-girl Feb 20, 2024
b07d0d2
Update flags.json
worm-girl Feb 20, 2024
37c101f
Update monster_deaths.json
worm-girl Feb 20, 2024
97457aa
remove magic number, reduce acid barf volume
worm-girl Feb 21, 2024
cc9e2b4
Simplify check and balance acid amount
worm-girl Feb 21, 2024
2762f8d
Rebalance boomer bile
worm-girl Feb 21, 2024
711264c
Update src/character_attire.cpp
worm-girl Feb 21, 2024
c670fb7
Update field.h
worm-girl Feb 21, 2024
286182b
Update character_armor.cpp
worm-girl Feb 21, 2024
14b1733
Update src/character_armor.cpp
worm-girl Feb 21, 2024
b44ca65
Update src/character_armor.cpp
worm-girl Feb 21, 2024
616a408
undo variable rename
worm-girl Feb 21, 2024
9a6dfc8
Merge branch 'master' into boomerbuff4
worm-girl Feb 23, 2024
3d8720a
Update effects.json
worm-girl Feb 23, 2024
430cc3c
Update effects_eocs.json
worm-girl Feb 23, 2024
4fdf07e
Update materials_test.cpp
worm-girl Feb 23, 2024
47f3f0c
why test why
worm-girl Feb 24, 2024
74a41bd
Update character_attire.cpp
worm-girl Feb 24, 2024
49c42fa
Update character_attire.cpp
worm-girl Feb 24, 2024
4267793
Update src/character_attire.cpp
worm-girl Feb 24, 2024
81e28bd
Update materials_test.cpp
worm-girl Feb 24, 2024
c62a933
initialize material cover int
worm-girl Feb 24, 2024
884bc25
Update materials_test.cpp
worm-girl Feb 24, 2024
b837eba
fixes
worm-girl Feb 25, 2024
c97fb82
Update materials_test.cpp
worm-girl Feb 25, 2024
7f8d700
Update item.cpp
worm-girl Feb 25, 2024
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
8 changes: 4 additions & 4 deletions data/json/damage_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
"//": "corrosive damage, e.g. acid",
"id": "acid",
"type": "damage_type",
"physical": false,
"environmental": true,
"physical": true,
"env": true,

Check failure on line 104 in data/json/damage_types.json

View workflow job for this annotation

GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)

(~[slow] ~[.],starting_items)=> Invalid or misplaced field name "env" in JSON data "type": "damage_type", "physical": true, "env": true, ▲▲▲ "magic_color": "light_green", "name": "acid",
"magic_color": "light_green",
"name": "acid",
"//2": "derived from cut only for monster defs",
Expand All @@ -112,7 +112,7 @@
{
"id": "acid",
"type": "damage_info_order",
"info_display": "basic",
"info_display": "detailed",
"verb": "corroding",
"bionic_info": { "order": 500, "show_type": true },
"protection_info": { "order": 800, "show_type": true },
Expand Down Expand Up @@ -145,7 +145,7 @@
"id": "heat",
"type": "damage_type",
"physical": false,
"environmental": true,
"env": true,

Check failure on line 148 in data/json/damage_types.json

View workflow job for this annotation

GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)

(~[slow] ~[.],starting_items)=> Invalid or misplaced field name "env" in JSON data "type": "damage_type", "physical": false, "env": true, ▲▲▲ "magic_color": "red", "name": "fire",
"magic_color": "red",
"name": "fire",
"material_required": true,
Expand Down
56 changes: 48 additions & 8 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2034,16 +2034,35 @@
"id": "boomered",
"name": [ "Boomered" ],
"desc": [ "Your vision is obscured by a disgusting splatter of bile." ],
"apply_message": "You're covered in bile!",
"apply_message": "Bile gets in your eyes!",
"rating": "bad",
"base_mods": { "per_mod": [ -3 ], "vomit_chance": [ 500 ] },
"resist_traits": [ "SAPROVORE", "SAPROPHAGE", "EATDEAD" ],
worm-girl marked this conversation as resolved.
Show resolved Hide resolved
"base_mods": {
"per_mod": [ -3, -3 ],
"vomit_chance": [ 500, 0 ],
"health_chance": [ 1 ],
"health_min": [ -1 ],
"health_chance_bot": [ 300, 0 ]
},
"max_duration": "30 s",
"limb_score_mods": [
{ "limb_score": "vision", "modifier": 0.1 },
{ "limb_score": "night_vis", "modifier": 0.0 },
{ "limb_score": "reaction", "modifier": 0.2 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
"flags": [ "EFFECT_LIMB_SCORE_MOD", "BILE_AFFLICTED" ]
},
{
"type": "effect_type",
"id": "bile",
"name": [ "Bile Splashed" ],
"desc": [ "You're splattered with a greasy layer of liquified putrescence." ],
"apply_message": "You're covered in bile!",
"rating": "bad",
"resist_traits": [ "SAPROVORE", "SAPROPHAGE", "EATDEAD" ],
"base_mods": { "vomit_chance": [ 500, 0 ], "health_chance": [ 1 ], "health_min": [ -1 ], "health_chance_bot": [ 300, 0 ] },
"max_duration": "30 s",
"flags": [ "BILE_AFFLICTED" ]
},
{
"type": "effect_type",
Expand Down Expand Up @@ -3715,16 +3734,37 @@
{
"type": "effect_type",
"id": "corroding",
"name": [ "Corroding" ],
"desc": [ "You're covered in acid!" ],
"name": [ "Acid Splattered", "Acid Splashed", "Acid Showered", "Acid Soaked", "Acid Drenched" ],
"desc": [
"You've got a little bit of acid on you.",
"You've got a small amount of acid on you.",
"There's a fair amount of acid on you.",
"You're covered in an alarming amount of acid!",
"You're bathed in acid!"
],
"apply_message": "You're covered in acid!",
"rating": "bad",
"resist_traits": [ "SLIMY" ],
"immune_flags": [ "ACID_IMMUNE" ],
"max_duration": "30 s",
"max_intensity": 5,
"int_dur_factor": "5 s",
"base_mods": { "hurt_min": [ 1 ], "hurt_chance": [ 1 ], "hurt_chance_bot": [ 10 ] },
"scaling_mods": { "hurt_chance": [ 1 ] },
"show_in_info": true
"//": "Decreases lifestyle score via acidosis. Don't get strange chemicals on you!",
"base_mods": {
"hurt_min": [ 1 ],
"hurt_chance": [ 1 ],
"hurt_max": [ 2 ],
"pain_min": [ 1 ],
"pain_chance": [ 1 ],
"pain_chance_bot": [ 2, 8 ],
"health_chance": [ 1 ],
"health_min": [ -1 ],
"hurt_chance_bot": [ 2, 8 ],
"health_chance_bot": [ 900, 3600 ]
},
"scaling_mods": { "hurt_amount": [ 0.3 ], "health_chance": [ 1 ] },
"show_in_info": true,
"flags": [ "ACID_AFFLICTED" ]
},
{
"type": "effect_type",
Expand Down
72 changes: 72 additions & 0 deletions data/json/effects_on_condition/effects_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,78 @@
],
"false_effect": [ { "u_lose_morale": "morale_bad_protein_bar" } ]
},
{
"type": "effect_on_condition",
"id": "bile_in_eyes",
"recurrence": [ "1 seconds", "1 seconds" ],
"condition": {
"and": [
{ "u_has_effect": "bile", "bodypart": "eyes" },
{
"and": [
{ "not": { "u_has_trait": "COMPOUND_EYES" } },
{ "not": { "u_has_trait": "PER_SLIME_OK" } },
{ "not": { "u_has_bionics": "bio_armor_eyes" } }
]
}
]
},
"effect": [
{ "u_add_effect": "boomered", "target_part": "eyes", "duration": "6 seconds" },
{ "u_lose_effect": "bile", "target_part": "eyes" }
]
},
{
"type": "effect_on_condition",
"id": "acid_in_eyes",
"recurrence": [ "1 seconds", "1 seconds" ],
"condition": {
"and": [
{ "u_has_effect": "corroding", "bodypart": "eyes" },
{
"and": [
{ "not": { "u_has_flag": "ACIDPROOF" } },
{ "not": { "u_has_trait": "PER_SLIME_OK" } },
{ "not": { "u_has_bionics": "bio_armor_eyes" } }
]
}
]
},
"effect": [ { "u_add_effect": "blind", "target_part": "eyes", "duration": "5 seconds" } ]
},
{
"type": "effect_on_condition",
"id": "bile_stink",
"recurrence": [ "1 seconds", "1 seconds" ],
"condition": { "and": [ { "u_has_flag": "BILE_AFFLICTED" }, { "not": { "u_has_trait": "BILE_STINK" } } ] },
"effect": [ { "u_add_trait": "BILE_STINK" } ]
},
{
"type": "effect_on_condition",
"id": "bile_unstink",
"recurrence": [ "3 minutes", "10 minutes" ],
"condition": { "not": { "u_has_flag": "BILE_AFFLICTED" } },
"effect": [ { "u_lose_trait": "BILE_STINK" } ]
},
{
"type": "effect_on_condition",
"id": "acid_wash_off_check",
"recurrence": [ "2 seconds", "4 seconds" ],
"condition": { "and": [ "u_is_underwater", { "or": [ { "u_has_flag": "ACID_AFFLICTED" }, { "u_has_flag": "BILE_AFFLICTED" } ] } ] },
"effect": [
{
"foreach": "ids",
"var": { "context_val": "id" },
"target": "bodypart",
"effect": [
{ "u_message": "The noxious substances are washed from your body.", "type": "good" },
{ "u_lose_effect": "corroding", "target_part": { "context_val": "id" } },
{ "u_lose_effect": "bile", "target_part": { "context_val": "id" } },
{ "u_lose_effect": "boomered", "target_part": { "context_val": "id" } }
]
}
]
},
{
"type": "effect_on_condition",
"id": "eoc_social_satisfied",
Expand Down
Loading
Loading