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 Treetops #70643

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from 73 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
a8ba59b
prof_psionic
Standing-Storm Dec 31, 2023
37716be
Cataclysm DDA - Plushies! (#70554)
The-Anjelo-Guy Jan 1, 2024
1b4b435
Remove bridgehead_ramp vehicle nests
Procyonae Dec 31, 2023
5016760
Remove Murrsuits, Adjust HWP EXODIC Conversion, Add Filk (#70563)
Holli-Git Jan 1, 2024
dc56ca9
Routine tileset updates on 01 January 2024
casswedson Jan 1, 2024
918f761
Finalise vanilla gutter unification (#67720)
Procyonae Jan 1, 2024
fa92dde
Prevent segfault on unload_activity_actor
inogenous Jan 1, 2024
760fe85
fix performance of the map view after reading a map
db48x Jan 1, 2024
81c206c
Fix: Count charges in all nearby smoking racks to crafting inventory
inogenous Dec 31, 2023
15dfc3c
The anjelo guy holybooks again (#70521)
The-Anjelo-Guy Jan 2, 2024
a1359b9
Fix impassable broken vehicle parts (#70560)
worm-girl Jan 2, 2024
aa76355
Fixed hub 14 computer giving infinite schematics (#70587)
gkarfakis19 Jan 2, 2024
4439961
Amphibian Additions - Treefrogs (#70535)
TheSaddestGoomba Jan 2, 2024
5bc5d30
remove now about common nuclear energy from the design docs (#70605)
kevingranade Jan 2, 2024
97f4bfb
Obsolete rural biome mod (#70609)
I-am-Erk Jan 2, 2024
1ce16f2
Add `int_id_set`.
prharvey Jan 1, 2024
f5654e2
Replace all global `mon_flag_str_id` with `mon_flag_id` located in `m…
prharvey Jan 1, 2024
d539adc
Document, format, clang-tidy.
prharvey Jan 1, 2024
f0f1611
Set documentation, and explaining the size.
prharvey Jan 1, 2024
643863d
Add missing headers, fix incorrect documentation.
prharvey Jan 1, 2024
d94d88c
Cast to correct integer type.
prharvey Jan 1, 2024
8374f7d
Fix my clang-tidy errors.
prharvey Jan 2, 2024
a23bcf7
[MoM] Feral psion attack updates (#70590)
Standing-Storm Jan 3, 2024
38fbcc6
more and better zed miner drops
casswedson Jan 1, 2024
11d645d
Obsolete for lack of maintainer (#70612)
I-am-Erk Jan 3, 2024
b975cc3
Fix minor cramped space errors (#70607)
worm-girl Jan 3, 2024
fe815b2
Fix #70543 (#70545)
Maleclypse Jan 3, 2024
2403e18
[MoM] Power learning revamp: Electrokinesis (#70539)
Standing-Storm Jan 3, 2024
6845322
More pharmacological expansion infrastructure work + a few new drugs …
gkarfakis19 Jan 3, 2024
4b0485b
initial commit
gkarfakis19 Jan 2, 2024
1cae99c
astyle
gkarfakis19 Jan 2, 2024
6f0b77b
fixed dormant zombies reviving over time
gkarfakis19 Jan 2, 2024
85583c5
added proximity triggering for traps
gkarfakis19 Jan 2, 2024
4f60158
fixed pseudo zombie killing itself on spawn
gkarfakis19 Jan 2, 2024
a8e06cc
json style
gkarfakis19 Jan 2, 2024
9ac02ab
small fix
gkarfakis19 Jan 2, 2024
4fda236
reinforced zombie revive logic. now should over most edge cases.
gkarfakis19 Jan 2, 2024
f243f8a
quiet death flag for zombies
gkarfakis19 Jan 2, 2024
d74f3d7
make trap despawn more robust. Should be 100% functional now.
gkarfakis19 Jan 2, 2024
226f6c7
zombie chains are now possible.
gkarfakis19 Jan 2, 2024
75b28df
small sound range bugfix
gkarfakis19 Jan 2, 2024
e17445a
clang tidy
gkarfakis19 Jan 2, 2024
7c1dc9c
hide json names from player
gkarfakis19 Jan 2, 2024
a518983
Just realized we can skip the reawakened zombie json. This simplifies…
gkarfakis19 Jan 2, 2024
2d83335
grammar fix
gkarfakis19 Jan 2, 2024
d9a4f94
Update data/json/monsters/zed_dormant.json
gkarfakis19 Jan 2, 2024
ddd7002
Update data/json/monsters/zed_dormant.json
gkarfakis19 Jan 2, 2024
f7d26aa
Update data/json/monsters/zed_dormant.json
gkarfakis19 Jan 2, 2024
57654c8
readd null
gkarfakis19 Jan 2, 2024
bfcd3bb
makes zombie necromancer remove dormant zombie traps they resurrect
gkarfakis19 Jan 2, 2024
4abaff9
Update doc/JSON_INFO.md
gkarfakis19 Jan 2, 2024
06e6ee0
Update doc/MAGIC.md
gkarfakis19 Jan 2, 2024
d8db44a
Update doc/MAGIC.md
gkarfakis19 Jan 2, 2024
afae1aa
removed monster flags to comply with #70588
gkarfakis19 Jan 2, 2024
bcdf8f4
merge conflict fix + introduced dormant zombies to mass grave mongroup
gkarfakis19 Jan 2, 2024
5fee6ac
Updated tileset configs to make corpse look identical to normal zombie.
gkarfakis19 Jan 2, 2024
539cae0
make zombie dormant corpse harder to detect.
gkarfakis19 Jan 2, 2024
d4071d1
small rebalance
gkarfakis19 Jan 2, 2024
5f6388d
reverted tileset change
gkarfakis19 Jan 3, 2024
9b0d17c
small looks_like fix. Now looks like the correct corpse before it die…
gkarfakis19 Jan 3, 2024
8dc5792
meaningless change to restimulate frozen github checks
gkarfakis19 Jan 3, 2024
7e130a3
Signal flares stay lit but not for 30 minutes (#70606)
waxcatape Jan 4, 2024
2df9fdf
Hub now offers armor set printing after the HWP is unlocked (#70614)
carlarctg Jan 4, 2024
c3425d9
Pocket mods now support inheritance (#70625)
GuardianDll Jan 4, 2024
852941a
climbin
worm-girl Jan 4, 2024
82a0479
chopping
worm-girl Jan 4, 2024
1a6bffd
Update terrain-flora.json
worm-girl Jan 4, 2024
bdc5ab2
climbing
worm-girl Jan 4, 2024
3cf2f5f
Merge remote-tracking branch 'upstream/master' into treetops
worm-girl Jan 4, 2024
662ba69
Update src/map.cpp
worm-girl Jan 4, 2024
67ff551
Update src/map.cpp
worm-girl Jan 4, 2024
b3025b4
Update src/game.cpp
worm-girl Jan 4, 2024
9d2b698
Update faction_camp.cpp
worm-girl Jan 4, 2024
d332a2c
Update src/faction_camp.cpp
worm-girl Jan 4, 2024
de334aa
Update mutations.json
worm-girl Jan 4, 2024
b8a53f7
Merge branch 'treetops' of https://github.com/fairyarmadillo/Cataclys…
worm-girl Jan 4, 2024
571d2dc
Update mutations.json
worm-girl Jan 4, 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
2 changes: 1 addition & 1 deletion data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
"name": [ "Unstable Footing" ],
"desc": [ "Your footing is unstable. It's more difficult to fight while standing here." ],
"apply_message": "You try to keep your balance.",
"resist_traits": [ "GASTROPOD_BALANCE" ],
"resist_traits": [ "GASTROPOD_BALANCE", "BIRD_LEGS" ],
"rating": "bad",
"limb_score_mods": [ { "limb_score": "balance", "modifier": 0.75 }, { "limb_score": "footing", "modifier": 0.4 } ],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
Expand Down
192 changes: 128 additions & 64 deletions data/json/furniture_and_terrain/terrain-flora.json

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions data/json/furniture_and_terrain/terrain-roofs.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,5 +329,45 @@
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
"bash": { "str_min": 48, "str_max": 80, "sound": "crash!", "sound_fail": "whump!", "ter_set": "t_hole", "bash_below": false }
},
{
"type": "terrain",
"id": "t_treetop",
"name": "treetop",
"description": "The upper branches of a tree. There's just enough room to perch here.",
"symbol": "#",
"color": [ "light_green", "green", "yellow_yellow", "brown" ],
"move_cost": 6,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "UNSTABLE", "CLIMBABLE", "SINGLE_SUPPORT" ]
},
{
"type": "terrain",
"id": "t_treetop_evergreen",
"name": "treetop",
"description": "The upper branches of a tree. There's just enough room to perch here.",
"symbol": "#",
"color": [ "green" ],
"move_cost": 6,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "UNSTABLE", "CLIMBABLE", "SINGLE_SUPPORT" ]
},
{
"type": "terrain",
"id": "t_treetop_dead",
"name": "dead treetop",
"description": "The bare upper branches of a dead tree. There's just enough room to perch here.",
"symbol": "#",
"color": "brown",
"move_cost": 6,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SINGLE_SUPPORT" ]
},
{
"type": "terrain",
"id": "t_treetop_giant_fern",
"name": "giant fern top",
"description": "The top of some unearthly gigantic fern. There is enough room to perch up here, but only just.",
"symbol": "#",
"color": "green",
"move_cost": 6,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SINGLE_SUPPORT" ]
}
]
2 changes: 1 addition & 1 deletion data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -4670,7 +4670,7 @@
"visibility": 4,
"ugliness": 2,
"mixed_effect": true,
"description": "Your legs and feet have become bird-like. Instead of toes you now have three long talons at the front and one at the back, ending in wicked claws and preventing you from wearing shoes. Fortunately they don't impede your movement.",
"description": "Your legs and feet have become bird-like, perfect for perching on precarious terrain. Instead of toes you now have three long talons at the front and one at the back, ending in wicked claws and preventing you from wearing shoes. Fortunately they don't impede your movement.",
"active": true,
"activated_is_setup": false,
"activated_eocs": [ "EOC_AVIAN_LEAP" ],
Expand Down
1 change: 1 addition & 0 deletions src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6170,6 +6170,7 @@ void chop_tree_activity_actor::finish( player_activity &act, Character &who )
here.ter_set( pos, t_stump );
who.add_msg_if_player( m_good, _( "You finish chopping down a tree." ) );
// sound of falling tree
here.collapse_at( pos, false, true, false );
sfx::play_variant_sound( "misc", "timber",
sfx::get_heard_volume( here.getlocal( act.placement ) ) );
get_event_bus().send<event_type::cuts_tree>( who.getID() );
Expand Down
6 changes: 5 additions & 1 deletion src/faction_camp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4584,7 +4584,7 @@ int om_cutdown_trees( const tripoint_abs_omt &omt_tgt, int chance, bool estimate
int harvested = 0;
int total = 0;
tripoint mapmin = tripoint( 0, 0, omt_tgt.z() );
tripoint mapmax = tripoint( 2 * SEEX - 1, 2 * SEEY - 1, omt_tgt.z() );
tripoint mapmax = tripoint( 2 * SEEX - 1, 2 * SEEY - 1, omt_tgt.z() + 1 );
for( const tripoint &p : target_bay.points_in_rectangle( mapmin, mapmax ) ) {
if( target_bay.ter( p ).obj().has_flag( ter_furn_flag::TFLAG_TREE ) && rng( 0, 100 ) < chance ) {
total++;
Expand All @@ -4596,6 +4596,10 @@ int om_cutdown_trees( const tripoint_abs_omt &omt_tgt, int chance, bool estimate
tripoint to = p + tripoint( dir, omt_tgt.z() );
std::vector<tripoint> tree = line_to( p, to, rng( 1, 8 ) );
for( tripoint &elem : tree ) {
const tripoint &treetop = tripoint( elem.xy(), elem.z + 1 );
if( target_bay.ter( treetop ).obj().has_flag( ter_furn_flag::TFLAG_SINGLE_SUPPORT ) ) {
target_bay.destroy( treetop );
}
worm-girl marked this conversation as resolved.
Show resolved Hide resolved
target_bay.destroy( elem );
target_bay.ter_set( elem, t_trunk );
}
Expand Down
8 changes: 7 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11774,9 +11774,15 @@ void game::vertical_move( int movez, bool force, bool peeking )
int move_cost = 100;
tripoint stairs( u.posx(), u.posy(), u.posz() + movez );
bool wall_cling = u.has_flag( json_flag_WALL_CLING );
bool adjacent_climb = false;
if( !force && movez == 1 && !here.has_flag( ter_furn_flag::TFLAG_GOES_UP, u.pos() ) &&
!u.is_underwater() ) {
// Climbing
for( const tripoint &p : here.points_in_radius( u.pos(), 2 ) ) {
if( here.has_flag( ter_furn_flag::TFLAG_CLIMB_ADJACENT, p ) ) {
adjacent_climb = true;
}
}
if( here.has_floor_or_support( stairs ) ) {
add_msg( m_info, _( "You can't climb here - there's a ceiling above your head." ) );
return;
Expand All @@ -11791,7 +11797,7 @@ void game::vertical_move( int movez, bool force, bool peeking )
add_msg_debug( debugmode::DF_GAME, "Climb cost %d", cost );
const bool can_climb_here = cost > 0 ||
u.has_flag( json_flag_CLIMB_NO_LADDER ) || wall_cling;
if( !can_climb_here ) {
if( !can_climb_here && !adjacent_climb ) {
add_msg( m_info, _( "You can't climb here - you need walls and/or furniture to brace against." ) );
return;
}
Expand Down
6 changes: 6 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3657,6 +3657,9 @@ int map::collapse_check( const tripoint &p ) const
if( tbelow == pbelow ) {
num_supports += 2;
}
if( has_flag( ter_furn_flag::TFLAG_SINGLE_SUPPORT, p ) ) {
num_supports = 0;
}
}
}
}
Expand All @@ -3681,6 +3684,9 @@ int map::collapse_check( const tripoint &p ) const
}
}
}
if( has_flag( ter_furn_flag::TFLAG_SINGLE_SUPPORT, p ) ) {
num_supports = 0;
}
}

return 1.7 * num_supports;
Expand Down
2 changes: 2 additions & 0 deletions src/mapdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ std::string enum_to_string<ter_furn_flag>( ter_furn_flag data )
case ter_furn_flag::TFLAG_GRAZER_INEDIBLE: return "GRAZER_INEDIBLE";
case ter_furn_flag::TFLAG_BROWSABLE: return "BROWSABLE";
case ter_furn_flag::TFLAG_MUTANT_TREE: return "MUTANT_TREE";
case ter_furn_flag::TFLAG_SINGLE_SUPPORT: return "SINGLE_SUPPORT";
case ter_furn_flag::TFLAG_CLIMB_ADJACENT: return "CLIMB_ADJACENT";

// *INDENT-ON*
case ter_furn_flag::NUM_TFLAG_FLAGS:
Expand Down
2 changes: 2 additions & 0 deletions src/mapdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ enum class ter_furn_flag : int {
TFLAG_SMALL_HIDE,
TFLAG_NO_FLOOR_WATER,
TFLAG_MUTANT_TREE,
TFLAG_SINGLE_SUPPORT,
TFLAG_CLIMB_ADJACENT,

NUM_TFLAG_FLAGS
};
Expand Down
Loading