forked from Mirrors/openclonk
snow is not a liquid
We can make it a liquid if we want it to be used in the foundry, or adapt the foundry. But that should be done properly.ipv6
parent
203e8b8d1d
commit
d03ac67807
|
@ -3,32 +3,30 @@
|
|||
protected func Construction()
|
||||
{
|
||||
var graphic = Random(5);
|
||||
if(graphic)
|
||||
SetGraphics(Format("%d",graphic));
|
||||
if (graphic)
|
||||
SetGraphics(Format("%d", graphic));
|
||||
AddTimer("Check", 30);
|
||||
}
|
||||
|
||||
protected func Check()
|
||||
{
|
||||
if(GetTemperature() > 0) Melt();
|
||||
if (GetTemperature() > 0)
|
||||
Melt();
|
||||
}
|
||||
|
||||
private func Melt()
|
||||
{
|
||||
CastPXS("Water",2,0);
|
||||
CastPXS("Water", 2, 0);
|
||||
DoCon(-2);
|
||||
}
|
||||
|
||||
private func Hit()
|
||||
{
|
||||
CastPXS("Snow", GetCon()*4,18);
|
||||
CastPXS("Snow", GetCon() * 4, 18);
|
||||
RemoveObject();
|
||||
}
|
||||
|
||||
func IsLiquid() { return "Water"; }
|
||||
func GetLiquidAmount() { return GetCon(); }
|
||||
|
||||
local Collectible = 1;
|
||||
local Collectible = true;
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
||||
local Plane = 450;
|
Loading…
Reference in New Issue