Skip to content

Commit 8547f64

Browse files
authored
Merge pull request #84361 from maniak1349/fix_loose_mods
Fix loose gunmods appearing as installed
2 parents 44ff1db + a3db8f6 commit 8547f64

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/iuse.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9307,13 +9307,6 @@ ret_val<void> use_function::can_call( const Character &p, const item &it,
93079307
} else if( it.is_broken() ) {
93089308
return ret_val<void>::make_failure( _( "Your %s is broken and won't activate." ),
93099309
it.tname() );
9310-
} else if( actor->type == "GUNMOD_ATTACH" &&
9311-
it.is_gunmod() && !p.has_item( it ) ) {
9312-
// this should just check if gunmod is in MOD pocket already
9313-
// but it requires item_location
9314-
// so check if character do not have item in CONTAINER pockets
9315-
return ret_val<void>::make_failure(
9316-
_( "Your %s is already installed and needs to be detached first." ), it.tname() );
93179310
}
93189311
return actor->can_use( p, it, here, pos );
93199312
}

0 commit comments

Comments
 (0)