Skip to content

Commit

Permalink
worm-toucher medal part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Oct 17, 2023
1 parent efe3b2e commit 986875b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/game/shared/swarm/rd_inventory_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3621,7 +3621,23 @@ namespace ReactiveDropInventory
}

if ( !pAttacker || !pAttacker->IsInhabitableNPC() )
{
if ( pTarget && pTarget->IsInhabitableNPC() && !V_stricmp( IGameSystem::MapName(), "rd-reduction2" ) && !V_strcmp( pAttacker->GetClassname(), "trigger_hurt" ) && !V_strcmp( STRING( pAttacker->GetEntityName() ), "trigger_pitworm_hitbox" ) )
{
#ifdef CLIENT_DLL
static bool s_bRequestedWormToucherMedal = false;
if ( !s_bRequestedWormToucherMedal )
{
AddPromoItem( 42 );
s_bRequestedWormToucherMedal = true;
}
#endif

s_RD_Inventory_Manager.IncrementStrangePropertyOnEquippedItems( assert_cast< CASW_Inhabitable_NPC * >( pTarget ), 42, 1 );
}

return;
}

CASW_Inhabitable_NPC *pInhabitableAttacker = assert_cast< CASW_Inhabitable_NPC * >( pAttacker );
if ( pTarget && pTarget->IsAlien() && bKilled )
Expand Down

0 comments on commit 986875b

Please sign in to comment.