Jump to content

Dirty Water for Custom Containers?


Hydromancerx

Recommended Posts

I cannot tell if the dirty water I am putting in my custom water container is Clean or Dirty. How do I make it show that its Dirty? Do I need a new icon or is it something more (such as lua)?

 

dxjQ7v.png Large Tupperware Container

PnIiDI.png Large Tupperware Container With Water

6a3KHr.png Large Tupperware Container With Tainted Water

item HCLargetup    {        Weight                = 0.8,    CanStoreWater            = TRUE,        Type                = Normal,        DisplayName                 = Large Tupperware Container,    ReplaceOnUseOn            = WaterSource-HCLargetupwater,        icon                 = HCLargetup,    }item HCLargetupwater    {    IsWaterSource            =    TRUE,    Weight                =    1.6,    CanStoreWater            =    TRUE,    Type                =    Drainable,    UseWhileEquipped        =    FALSE,    UseDelta            =    0.02,    DisplayName            =    Large Tupperware Container with Water,    ReplaceOnDeplete        =    HCLargetup,    ReplaceOnUseOn            =    WaterSource-HCLargetupwater,    Icon                =    HCLargetupwater,    }
Link to comment
Share on other sites

As far as I know. The "skull" icon will appear on the sprite as an overlay if the water is taken from a tainted source (Water barrels for example) no additional scripting is needed for items.

Edit: Did a quick check using one of my mods that add water containers and yea, as long as CanStoreWater   =   TRUE, then whether or not water will be tainted depends solely on the water source. Green skull is an overlay that appears if it's tainted and it requires no additional code or sprites.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...