mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-28 00:12:23 +01:00
Fix daggers & spears weighing 1 unit
Lack of fall-through was making their obj_material be unset and defaulting to FENCEPOST.
This commit is contained in:
parent
f4e6f56427
commit
e106885838
1 changed files with 3 additions and 3 deletions
|
@ -406,9 +406,9 @@ boolean artif;
|
|||
else if(otyp == BAR) otmp->obj_material = IRON;
|
||||
else if(otyp == VIPERWHIP) otmp->obj_material = SILVER;
|
||||
else if(otyp == find_gcirclet()) otmp->obj_material = GOLD;
|
||||
else if(otyp == SPEAR){if(!rn2(25)) otmp->obj_material = SILVER;}
|
||||
else if(otyp == DAGGER){if(!rn2(12)) otmp->obj_material = SILVER;}
|
||||
else if(otyp == STILETTOS){if(!rn2(12)) otmp->obj_material = SILVER;}
|
||||
else if(otyp == SPEAR && !rn2(25)) otmp->obj_material = SILVER;
|
||||
else if(otyp == DAGGER && !rn2(12)) otmp->obj_material = SILVER;
|
||||
else if(otyp == STILETTOS && !rn2(12)) otmp->obj_material = SILVER;
|
||||
else if(otyp == ARMORED_BOOTS) otmp->obj_material = COPPER;
|
||||
else if(otyp == ROUNDSHIELD) otmp->obj_material = COPPER;
|
||||
else otmp->obj_material = objects[otyp].oc_material;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue