Skip to content

Commit

Permalink
Extend fix/blood-del to include tears and sweat
Browse files Browse the repository at this point in the history
This version of blood-del.lua will catch the new bodily emissions too, mostly from gremlins or gnomes.
  • Loading branch information
scamtank committed Mar 22, 2015
1 parent 625be31 commit 9a661e1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/fix/blood-del.lua
Original file line number Diff line number Diff line change
@@ -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=" "
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a661e1

Please sign in to comment.