Commit Graph

9 Commits

Author SHA1 Message Date
Auke Kok
0cdcb34d6b Fix calculation of pos2.
This needs to always be done, even if passed a pos.
2016-03-10 15:27:22 -08:00
Auke Kok
e79965e3e8 Export our API handle "lightning" 2016-03-10 15:03:35 -08:00
Auke Kok
b8724822b6 Make the flame with a nodetimer instead.
This is more robust, and won't remove other nodes placed
at the same pos accidentally.
2016-03-10 15:03:35 -08:00
Auke Kok
9bdcdafae2 Allow mods to strike with our code, optionally at a certain pos. 2016-03-10 15:03:35 -08:00
Auke Kok
3c4c9d0e75 Allow random striking to be disabled run-time 2016-03-10 12:02:11 -08:00
Auke Kok
75ad945534 Change flame effect to a temporary flame.
- reduce chance of actual fire by 10.
- reduce chance of nodes getting modified
- adds a "dying flame" node that does not ignite
- lightning by default places the "dying flame"
- "dying flame" node destroys itself within a short period
2016-02-21 15:13:42 -08:00
Auke Kok
a18847751a Light up the sky when lightning strikes.
This may delay or not be seen - expected jitter.
2016-01-16 11:55:51 -08:00
Auke Kok
6eb4914dd1 Tweak some stuff, now it's somewhat behaving. 2016-01-13 20:43:28 -08:00
Auke Kok
0c3ebb99bd Initial checkin. 2016-01-13 09:47:32 -08:00