Permalink
Browse files

Make arrows burn (#1983)

  • Loading branch information...
jcaesar committed Jan 28, 2018
1 parent 4dd97d2 commit f39ce4f25c11bb13c84406b26a8859a9997cf41e
@@ -10,6 +10,7 @@
*/
#include Library_Stackable
#include Library_Flammable
protected func Construction()
@@ -167,3 +168,5 @@ local Name = "$Name$";
local Description = "$Description$";
local Collectible = 1;
local Components = {Wood = 3};
local BlastIncinerate = 5;
local ContactIncinerate = 1;
@@ -35,6 +35,14 @@ public func HasExplosionOnImpact() { return !!GetEffect("InFlight", this); }
public func IsExplosive() { return true; }
private func OnBurnDown()
{
// Got burned? Explode based on stack size.
Explode(10 + Random(3) + 23 * GetStackCount() / MaxStackCount());
_inherited(...);
return true; // Do not create burned object
}
/*-- Properties --*/

0 comments on commit f39ce4f

Please sign in to comment.