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
41 stars 28 forks source link

timed effects #822

Closed sadbear- closed 9 years ago

sadbear- commented 9 years ago

infrastructure and generic effects

seiyria commented 9 years ago

I think this looks fine. Given that we don't use node 0.12 anyway, I don't mind if it fails.

@Oipo?

Oipo commented 9 years ago

Considering that we're going to move to iojs rather than node 0.12, I can see your point. However, I'm going to put some effort into finding out what the cause is, in case something in our code is more fragile than we assume.

sadbear- commented 9 years ago

The @duration?(player) ? @duration line is there to allow passing a function as the duration in case a buff's duration should depend on player stats. Not necessary atm but it's there if we want to use it later.