summaryrefslogtreecommitdiff
path: root/src/elements/stkm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/stkm.c')
-rw-r--r--src/elements/stkm.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/elements/stkm.c b/src/elements/stkm.c
index e8a1241..be3506d 100644
--- a/src/elements/stkm.c
+++ b/src/elements/stkm.c
@@ -426,14 +426,18 @@ void STKM_interact(playerst* playerp, int i, int x, int y)
parts[i].life -= 2;
playerp->accs[3] -= 1;
}
-
- if ((r&0xFF)==PT_ACID) //If on acid
- parts[i].life -= 5;
-
- if ((r&0xFF)==PT_PLUT) //If on plut
- parts[i].life -= 1;
if (ptypes[r&0xFF].properties&PROP_DEADLY)
+ switch (r&0xFF)
+ {
+ case PT_ACID:
+ parts[i].life -= 5;
+ break;
+ default:
+ parts[i].life -= 1;
+ }
+
+ if (ptypes[r&0xFF].properties&PROP_RADIOACTIVE)
parts[i].life -= 1;
if ((r&0xFF)==PT_PRTI && parts[i].type)