![]() |
#1 |
Veteran
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,102
![]() |
How does attack energy for shield bash work & is it broken?
My paladin at speed 0 & 1 blow just bashed something to death without anything moving. I've seen a similar effect with "stumble". So how does this actually work? If I never make a blow, do I actually use any energy?
|
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: $60
![]() |
Shield bashes don't exactly cost energy. With every round of player melee
Shield bashes can stun or confuse the monster. Did that happen?
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 | |
Veteran
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,102
![]() |
Quote:
A shield bash against a 1 star monster killing it. No blows happened. No time appeared to pass. A shield bash with stumble, no stun or confusion. No blows happened. No time appeared to pass. A shield bash with stumble, confusing the monster. No blows happened. No time appeared to pass. Edit:Ok it appears to be passing for stun or confuse but not for stumble with no stun/confuse Last edited by wobbly; January 2, 2019 at 22:50. |
|
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Dec 2009
Posts: 8,938
![]() |
I decided to look up the relevant code, attempt_shield_bash in player-attack.c. Some interesting tidbits:
* Bash chance depends on melee skill and DEX * Bash chance increases 4x if you don't have a weapon equipped * ...or 2x if your weapon's dice * sides * (your blows per round) is less than your shield's dice * sides * 3. * Bash chance is lower against higher-level monsters * Bash damage scales with level (level 50 characters do about 3.5x more damage with their bashes than level 1 characters do) * ...but damage is capped at 125 per bash. ![]() * The "WHAMM!" message is completely cosmetic. * Stunning and confusion are more likely as the player's level increases (and as bash damage goes up) * Chance of stumbling scales solely with DEX. Stumbling increases the effective number of blows you have taken this round by 1d(blows per round you normally get), which should reduce the total blows you get to take after the bash. * There's a level comparison check in py_attack on whether to attempt the shield bash that really should be in attempt_shield_bash. ![]() Code:
if (player can shield bash && monster is visible && attempt_shield_bash) { return; // because the shield bash killed the monster } More generally, while a stumble in attempt_shield_bash does prevent the player from attempting additional blows in that attack, it doesn't charge energy for the blows it deducts. So basically every shield bash is free -- either you don't stumble and you get a full set of follow-on attacks, or you do stumble, you get fewer follow-on attacks, and the turn uses less energy. The fix should be to add this after line 690: Code:
/* Deduct any energy lost due to stumbling after shield bash. */ p->upkeep->energy_use += blow_energy * blows; ![]() |
![]() |
![]() |
![]() |
#5 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: $60
![]() |
OK, thanks - I was totally failing to see that.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Two-weapon Fighting vs. Rapid Attack vs. Normal Attack? | protopulse | Sil | 7 | April 18, 2017 00:38 |
Close and bash doors with ctrl+direction | fph | Vanilla | 7 | September 19, 2011 14:49 |
Bug: "Find Traps, Doors & Stairs" doesn't work on chests | Raggy | Vanilla | 26 | June 29, 2011 14:28 |
High-Energy Magi | ekolis | Oook! | 13 | March 27, 2011 23:22 |
stochastic energy and fractional blows | tigen | Vanilla | 22 | September 13, 2009 22:47 |