The Cathedral of Attnam

Iter Vehemens ad Necem (IVAN)
Login
Username
Password


 Valid CSS  Valid HTML 4.01 Strict

Blocking

The Cathedral of Attnam  >  Programming
Print

View profile
Send message
Find posts Find topics
 
Apr 11, 2010 at 6:24 am #1  !
chaostrom's Avatar
chaostrom
Mage Prophet


Joined: Dec 3, 2007
Occupation: Standing between all life and death.
Posts: 2038
Groups:
Blocking
Can anyone tell me how blocking works in IVAN? I think this is it, but I can't make head or tail of it.


SPOILER ALERT. Click here to see text.

 
Last edited by chaostrom : Apr 13, 2010 at 2:47 am. Edited 2 times total
 
View profile
Send message
Find posts Find topics
 
Apr 11, 2010 at 11:32 am #2  !
Alveradok's Avatar
Alveradok
angel


Joined: Jan 25, 2008
Occupation: Turns out I can't have a cool avatar, I'll just put crap in it.
Location: 48kg / 105 lbs
Interests: My name is Failbert
Posts: 697
Groups:
(You could post which files to look up in the source, instead of pasting it all here, I think.)

An item's block value seems to be calculated by the formula
Code

((10000. / (1000 + GetWeight()) + GetTHVBonus()) * GetBlockModifier() / 10000.)

where:
GetWeight is weight (based on material mostly, it seems),
GetTHVBonus is a bonus probably derived from skill level,
GetBlockModifier is an interesting piece, based on your Size times "Roundness" (a shield has 95, a banana has 15). The resulting value is then shifted with "<<". I don't know, however, how exactly "<<" works, but it MAY BE that roundness is multiplied 2^2 for shields, and 2^1 for non-shields.

Char.cpp seems to hold more on using that value, though.
 
Well I assume that a bolt has a given, numeric, amouunt of perwer. (assi in enegri)... unless it's LAERSER SKISKLS POEWN PEWN!
 
View profile
Send message
Find posts Find topics
 
Apr 12, 2010 at 1:00 am #3  !
chaostrom's Avatar
chaostrom
Mage Prophet


Joined: Dec 3, 2007
Occupation: Standing between all life and death.
Posts: 2038
Groups:
Thanks! That helps a lot. By the way, where did you find those roundness values?
 
Last edited by chaostrom : Apr 12, 2010 at 1:14 am.
 
View profile
Send messageSend email
Find posts Find topics
 
Apr 12, 2010 at 2:37 pm #4  !
Ernomouse's Avatar
Ernomouse
Master mine stomper


Joined: Dec 16, 2007
Occupation: Vigorous training.
Location: In the forests of Finland, looking for long forgotten explosives.
Interests: Mines
Posts: 1571
Groups:
Sheesh, at least put it in the spoiler tag...
 
I'm the master sissi who PISSES off MINES.
 
View profile
Send message
Find posts Find topics
 
Apr 12, 2010 at 4:00 pm #5  !
Alveradok's Avatar
Alveradok
angel


Joined: Jan 25, 2008
Occupation: Turns out I can't have a cool avatar, I'll just put crap in it.
Location: 48kg / 105 lbs
Interests: My name is Failbert
Posts: 697
Groups:
It's like the only page of Attnam eligible for widescreen.
 
Well I assume that a bolt has a given, numeric, amouunt of perwer. (assi in enegri)... unless it's LAERSER SKISKLS POEWN PEWN!
 
 Print


The Cathedral of Attnam  >  Programming  >  Blocking

Jump to