Skip to content

Commit

Permalink
Merge pull request CleverRaven#78296 from Night-Pryanik/antennae
Browse files Browse the repository at this point in the history
Special vision enchantment for Antennae mutation
  • Loading branch information
Maleclypse authored Dec 14, 2024
2 parents abe2d84 + d18fbb5 commit e1f4b19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 12 additions & 1 deletion data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -4920,7 +4920,18 @@
"active": true,
"starts_active": true,
"restricts_gear": [ "head_crown" ],
"allow_soft_gear": true
"allow_soft_gear": true,
"enchantments": [
{
"condition": "ACTIVE",
"special_vision": [
{
"distance": 3,
"descriptions": [ { "id": "antennae_sense", "symbol": "?", "color": "c_white", "text": "You sense something here." } ]
}
]
}
]
},
{
"type": "mutation",
Expand Down
4 changes: 0 additions & 4 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ static const species_id species_HUMAN( "HUMAN" );
static const start_location_id start_location_sloc_shelter_a( "sloc_shelter_a" );

static const trait_id trait_ADRENALINE( "ADRENALINE" );
static const trait_id trait_ANTENNAE( "ANTENNAE" );
static const trait_id trait_BADBACK( "BADBACK" );
static const trait_id trait_BIRD_EYE( "BIRD_EYE" );
static const trait_id trait_CANNIBAL( "CANNIBAL" );
Expand Down Expand Up @@ -11297,9 +11296,6 @@ bool Character::sees( const Creature &critter ) const
if( std::abs( pos_bub().z() - critter.pos_bub().z() ) > fov_3d_z_range ) {
return false;
}
if( dist <= 3 && has_active_mutation( trait_ANTENNAE ) ) {
return true;
}
if( dist < MAX_CLAIRVOYANCE && dist < clairvoyance() ) {
return true;
}
Expand Down

0 comments on commit e1f4b19

Please sign in to comment.