mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-08-16 01:21:37 +01:00
Launcher not garanteed to exist
This commit is contained in:
parent
e8eb5b9812
commit
8cce0d026d
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ int thrown;
|
|||
case P_EXPERT: multishot += 2; break;
|
||||
}
|
||||
/*Increase skill related rof for heavy machine gun*/
|
||||
if(launcher->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
|
||||
if(launcher && launcher->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
|
||||
|
||||
/* ...or is using the legendary Longbow... */
|
||||
if(ammo_and_launcher(obj, launcher)
|
||||
|
|
|
@ -1005,7 +1005,7 @@ struct monst *mtmp;
|
|||
else if (is_lord(mtmp->data)) multishot++;
|
||||
|
||||
/*Increase skill related rof for heavy machine gun*/
|
||||
if(mwep->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
|
||||
if(mwep && mwep->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
|
||||
|
||||
switch (monsndx(mtmp->data)) {
|
||||
case PM_RANGER:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue