From 9a661e1481ab3b3eb18372192bd39ba4d1f97559 Mon Sep 17 00:00:00 2001 From: scamtank Date: Sun, 22 Mar 2015 14:24:51 +0200 Subject: [PATCH] Extend fix/blood-del to include tears and sweat This version of blood-del.lua will catch the new bodily emissions too, mostly from gremlins or gnomes. --- scripts/fix/blood-del.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/fix/blood-del.lua b/scripts/fix/blood-del.lua index 14a68071a..907135eb4 100644 --- a/scripts/fix/blood-del.lua +++ b/scripts/fix/blood-del.lua @@ -1,7 +1,7 @@ --blood-del.lua --makes it so that civs won't come with barrels full of blood, ichor, or goo --author Urist Da Vinci ---edited by expwnent +--edited by expwnent, scamtank local my_entity=df.historical_entity.find(df.global.ui.civ_id) local sText=" " @@ -35,6 +35,16 @@ for x,y in pairs(df.global.world.entities.all) do my_entity.resources.misc_mat.extracts.mat_index:erase(k) k=k-1 end + if(sText.material.id=="SWEAT") then + my_entity.resources.misc_mat.extracts.mat_type:erase(k) + my_entity.resources.misc_mat.extracts.mat_index:erase(k) + k=k-1 + end + if(sText.material.id=="TEARS") then + my_entity.resources.misc_mat.extracts.mat_type:erase(k) + my_entity.resources.misc_mat.extracts.mat_index:erase(k) + k=k-1 + end --VENOM --POISON --FLUID