Skip to content

Commit

Permalink
No role starts knowing about bombs via knows_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Jul 27, 2023
1 parent 7bc2dd2 commit 8568554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions hackem_changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

Version 1.2.0 (unreleased)

No role starts knowing about bombs via knows_class.
Only convicts start out knowing about all firearms.
Suppress discovery message for firearms after they are known.
Indestructible items can't be destroyed in BoH explosions.
Expand Down
3 changes: 3 additions & 0 deletions src/u_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,9 @@ register char sym;
if (objects[o->otyp].oc_skill == P_FIREARM
&& !Role_if(PM_CONVICT))
continue;
/* Nobody knows about bombs*/
if (is_bomb(o))
continue;
}

if (objects[ct].oc_class == sym && !objects[ct].oc_magic)
Expand Down

0 comments on commit 8568554

Please sign in to comment.