questions

Forum > Questions > Broken Shields
Reply To Thread (login)
Scabara [200]
2013-08-11 10:42:53
[10 years, 284 days ago]

When shields have 0% condition, they act as though they aren't really equipped and the bot attacks with his right hand weapon as if he had two of them. Is this intended? It seems like I could make a bot always equip a 0% condition shield and never have to bother camping a second weapon.

This may not be how it works, not 100% sure.


 
hayabassie [160]
2013-08-11 11:22:18
[10 years, 284 days ago]

don't know about the first part but i do not believe you can re-equip broken equipment.


 
Scabara [200]
2013-08-11 11:24:55
[10 years, 284 days ago]

Broken as in 0% condition, not durability


 
Detroit Dream [142]
2013-08-11 11:36:48
[10 years, 284 days ago]

That is intended. And yes you can equip equipment if the condition is 0%, but not once it's broken(IE the durability is 0)


 
DarkNinjaMaster [39]
2013-08-11 12:35:06
[10 years, 284 days ago]

Fixing the broken shields act as weapons bug is on Enders todo list with a P1.

P1 - This task will be worked on much, much later.

It seems like I could make a bot always equip a 0% condition shield and never have to bother camping a second weapon.

Would run out of dur eventually and be unable to be equipped.


 
Detroit Dream [147]
2013-08-11 12:38:36
[10 years, 284 days ago]

Once it's at 0% condition and you have no kudos to repair it the durability doesn't move at all. And if you have it equipped and fight it, same thing applies.


 
Ender [1]
Administrator
2013-08-12 23:04:16
[10 years, 282 days ago]

I dug up this old bug report. From my reading of that, it sounds like this is purely cosmetic and does not affect the outcome of the battle?


 
Leader [130]
2013-08-13 02:29:58
[10 years, 282 days ago]

My first thought was that's when the Sheild reaches 0% it acts as a weapon or does this get fixed?


 
Ender [1]
Administrator
2013-08-13 08:48:36
[10 years, 282 days ago]

It's looking like it's just the message that gets changed and that it will always say 0 damage. I'll dig into this tonight though.


 
Ender [1]
Administrator
2013-08-17 03:10:23
[10 years, 278 days ago]

Okay, I dug into this and the bug is now fixed. 0% condition shields should no longer be treated as weapons.

This is actually kind of fun/interesting, so here are the details:

  • Game items are stored homogeneously, meaning that a shield can technically have a min/max damage associated with it, a weapon can have block associated with it, and so on.
  • The battle code determines the hitting order based on whether each participant has a shield or not, e.g., someone with a shield attacking someone without a shield would go "A, A, B, A, A, B, etc.".
  • To determine whether a shield is present for a bot, it checks that a secondary slot item is non-empty and that its block value is greater than 0.
  • A shield with 0% condition has 0% block, so therefore it did not register as a shield.
  • The game is still able to treat the shield as a weapon, it just has no associated min/max damage, so it "hits" for nothing.

So it turns out this bug wasn't actually just cosmetic as originally suspected. If I'm understanding the scope correctly, Scabara is right in saying it effectively allowed you to not have to buy/camp a second weapon. Thanks for reporting.


 
Forum > Questions > Broken Shields
Reply To Thread (login)