1
0
Fork 0
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:
NeroOneTrueKing 2017-09-27 22:45:41 -05:00 committed by GitHub
parent f4e6f56427
commit e106885838

View file

@ -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;