Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. xxell
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    xxell

    @xxell

    2
    Posts
    887
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    xxell Follow

    Posts made by xxell

    • RE: Does Reserving Rooms add to GCL?

      Is this still true? (Since "Energy spent on control" is renamed to "Control points for .." and nothing is shown above reserved rooms anymore.) 

      posted in Help
      xxell
    • RE: Tower Damage

      The impact factor of a tower can be calculated by the function below. I post this here since I dont think this is any kind of magic.

      It took me while to figure out that the falloff is actually linear (by the post of dissi above)

      var towerRangeImpactFactor = function(distance) {
        if(distance <= TOWER_OPTIMAL_RANGE) {
         return 1
        }
        if(distance >= TOWER_FALLOFF_RANGE) {
          return 1 - TOWER_FALLOFF
        }
        var towerFalloffPerTile = TOWER_FALLOFF / (TOWER_FALLOFF_RANGE - TOWER_OPTIMAL_RANGE)
        return 1 - (distance - TOWER_OPTIMAL_RANGE) * towerFalloffPerTile
      }

      then the damage can be calculated with

      var damage = TOWER_POWER_ATTACK * towerRangeImpactFactor(distance)
      posted in Technical Issues and Bugs
      xxell