IdleLands / IdleLandsOld

[DEPRECATED] A full-blown idling RPG. It has a modular backend that can be added to any existing frontend via a REST API.
http://idlelands.github.io/IdleLandsOld
MIT License
42 stars 28 forks source link

Add bouncing to thunder #924

Closed calthax closed 9 years ago

calthax commented 9 years ago

Added 2 new spells too

calthax commented 9 years ago

So now how do i get it to really bounce?

seiyria commented 9 years ago

You would have to, in the uncast function, where it does damage, immediately cast the spell on another target.

calthax commented 9 years ago

How do i limit the number of bounces?

seiyria commented 9 years ago

You would have to pass in a number when instantiating the spell to limit how many times it can re-cast itself. probably.

calthax commented 9 years ago

That sounds similar to square one, but it's not equivalent.

calthax commented 9 years ago

Maybe like defining a local variable equivalent to spellPower and decrement it each time the spell bounces and stop bouncing if the variable reaches 0

seiyria commented 9 years ago

That's possible. There are plenty of ways to implement it.

calthax commented 9 years ago

How do i declare local variables in Coffeescript

seiyria commented 9 years ago

x = 10

calthax commented 9 years ago

Should i declare in cast or uncast

seiyria commented 9 years ago

Are you even testing your code? If not, there's no way I can accept this.

calthax commented 9 years ago

Truth is Github terminal is my Achilles Heel it's hard to use

seiyria commented 9 years ago

Sorry, but I'm going to close this then. I've simplified the install process as best as I can, so please feel free to submit again later when you've tested your code.