You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe you should check function trapfunc::landmine() at src/trapfunc.cpp:L605
It clearly uses same explosion() function but uses preset values so I think that landmine probably does not use JSON set values at all.
Confirmed. Landmine triggers:
bool trapfunc::landmine( const tripoint &p, Creature *c, item * )
{
// tiny animals are too light to trigger land mines
if( c != nullptr && c->get_size() == MS_TINY ) {
return false;
}
if( c != nullptr ) {
c->add_msg_player_or_npc( m_bad, _( "You trigger a land mine!" ),
_( "<npcname> triggers a land mine!" ) );
}
explosion_handler::explosion( p, 18, 0.5, false, 8 );
g->m.remove_trap( p );
return true;
}
Explosive triggers with hardcoded values
Screenshots
Versions and configuration
Additional context
The text was updated successfully, but these errors were encountered:
Firestorm01X2
changed the title
Landmine does almos no damage
Landmine does almost no damage
Sep 17, 2020
Yeah.
Don't make it too insta-killy though. Shouldn't be stronger than a grenade.
Use the explosion_data variant of the explosion_handler::explosion function, it's much easier to control.
Describe the bug
Landmines does almost no damage
Steps To Reproduce
Connected issue:
CleverRaven/Cataclysm-DDA#37724
Confirmed. Landmine triggers:
Explosive triggers with hardcoded values
Screenshots
Versions and configuration
Additional context
The text was updated successfully, but these errors were encountered: