public override void ObjectEnteredCell(LiquidVolume Liquid, XRL.World.GameObject GO) { if (Liquid.MaxVolume == -1 && GO.PhaseAndFlightMatches(Liquid.ParentObject) && GO.GetIntProperty("Slimewalking") <= 0 && GO.HasPart("Body")) { int difficulty = 10 + (int)((double)(Liquid.ComponentLiquids[2] * 5) / 1000.0); if (!GO.MakeSave("Strength,Agility", difficulty, null, null, "Furling Agent Restraint")) { GO.ApplyEffect(new cloneStuck(12, Liquid.ComponentLiquids[2] / 100, null)); } } }
public override void ObjectEnteredCell(LiquidVolume Liquid, XRL.World.GameObject GO) { if (Liquid.MaxVolume != -1 || !GO.HasPart("Body") || !GO.PhaseAndFlightMatches(Liquid.ParentObject) || Liquid.Volume > 1000) { return; } int num = 10 + (int)((double)(Liquid.ComponentLiquids[this.ID] * 5) / 1000.0); if (!GO.MakeSave("Agility", num, null, null, "Dye")) { if (GO.IsPlayer()) { MessageQueue.AddPlayerMessage("&CYou get covered in " + ColorNames[this.Color] + " dye!"); } GO.pRender.TileColor = "&" + this.Color; GO.pRender.ColorString = "&" + this.Color; GO.pRender.DetailColor = ToggleCase(this.Color); } }