Frying Pan Warrior
Still Going Strong
- Reaction score
- 578
As it currently stands, a wall can be boosted from level 0 to 20 in seconds with the use of PP.
With this setup, there are two downfalls.
1) The player without PP is at a much larger disadvantage as a defender.
2) When facing PP players the number of tactics possible is suddenly reduced. (It forces to time all attacks within a second of each other.)
To tackle both problems with one solution, I propose Walls have slightly different PP time reductions than other buildings.
That is, only allowing halving the construction time of the wall until it reaches or surpasses a certain % of the total time.
This solution will make it so that a wall can still be constructed much faster using PP, but prevent a wall from being upgraded from 0 to 20 in mere seconds.
Thus some variety of tactics will be restored to attackers no matter who is defending.
Example with limit of 75%:
Level 20 Wall that takes 11:17:15 to complete can be halved in construction time until 08:27:56 has been reduced by the use of PP making the wall take a minimum of 02:49:18 to complete.
Math:
11:17:15 * 75% = 08:27:56 (maximum theoretical reduction)
11:17:15 - 08:27:56 = 02:49:18 (minimum theoretical duration)
Let's try a code example to calculate the reduction.
(totalDuration calculated using time to seconds convertor: https://www.calculateme.com/time/seconds/to-hours-minutes-seconds/ )
Run it online: https://jsfiddle.net/hv02swuy/
Results for the lvl 20 wall taking 11:17:15 with...
A reduction limit of up to 75% :
With this setup, there are two downfalls.
1) The player without PP is at a much larger disadvantage as a defender.
2) When facing PP players the number of tactics possible is suddenly reduced. (It forces to time all attacks within a second of each other.)
To tackle both problems with one solution, I propose Walls have slightly different PP time reductions than other buildings.
That is, only allowing halving the construction time of the wall until it reaches or surpasses a certain % of the total time.
This solution will make it so that a wall can still be constructed much faster using PP, but prevent a wall from being upgraded from 0 to 20 in mere seconds.
Thus some variety of tactics will be restored to attackers no matter who is defending.
Example with limit of 75%:
Level 20 Wall that takes 11:17:15 to complete can be halved in construction time until 08:27:56 has been reduced by the use of PP making the wall take a minimum of 02:49:18 to complete.
Math:
11:17:15 * 75% = 08:27:56 (maximum theoretical reduction)
11:17:15 - 08:27:56 = 02:49:18 (minimum theoretical duration)
Let's try a code example to calculate the reduction.
(totalDuration calculated using time to seconds convertor: https://www.calculateme.com/time/seconds/to-hours-minutes-seconds/ )
JavaScript:
const reductionLimit = 0.75; //Percent as decimal
const totalDuration = 40635; //Seconds
var maximumReduction = totalDuration * reductionLimit;
var totalReduced = 0;
var timeLeft = totalDuration;
function canReduceTime() {
return totalReduced < maximumReduction;
}
function reduceTime() {
var reductionAmount = timeLeft / 2;
totalReduced += reductionAmount;
timeLeft -= reductionAmount;
}
function secondsToHMS(seconds) {
var date = new Date(0);
date.setSeconds(seconds);
return date.toISOString().substr(11, 8);
}
while(canReduceTime()) {
reduceTime();
}
console.log("Theoretial reduction: " + secondsToHMS(maximumReduction));
console.log("Actual reduction: " + secondsToHMS(totalReduced));
console.log("Time left after reducing: " + secondsToHMS(timeLeft));
Run it online: https://jsfiddle.net/hv02swuy/
Results for the lvl 20 wall taking 11:17:15 with...
A reduction limit of up to 75% :
- "Theoretical reduction: 08:27:56"
- "Actual reduction: 08:27:56"
- "Time left after reducing: 02:49:18"
- "Theoretical reduction: 10:09:31"
- "Actual reduction: 10:34:55"
- "Time left after reducing: 00:42:19"