From 6cb15e8a01a528c4100ebf831df338e3f49b493f Mon Sep 17 00:00:00 2001 From: Valiant Date: Mon, 2 Dec 2024 14:26:54 +0400 Subject: [PATCH 1/2] Added special vision enchantment for Antennae mutation --- data/json/mutations/mutations.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/data/json/mutations/mutations.json b/data/json/mutations/mutations.json index ede2f6249c9ad..cf3b027872afd 100644 --- a/data/json/mutations/mutations.json +++ b/data/json/mutations/mutations.json @@ -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", From d18fbb56545f7ee4745d5e556136286ffc9d5808 Mon Sep 17 00:00:00 2001 From: Valiant Date: Mon, 2 Dec 2024 14:27:30 +0400 Subject: [PATCH 2/2] Removed check for Antennae mutation from `Character::sees` --- src/character.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/character.cpp b/src/character.cpp index 4200a308d5a2a..c6ffc29abec73 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -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" ); @@ -11308,9 +11307,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; }