
[hr]
[quote=“Paquito, post:8, topic:3147”]Not being familiar with the code though, I can’t quite understand this. Dividing the weight by 452 seems really high, so I’m assuming weight is represented in smaller units than described in the wiki. Also, I dunno how melee_dam is calculated for the item (is it some combination of cutting,piercing, & bashing damage?) I assume p.str_cur is the character’s strength, and I’m not sure how the volume of the thrown item is calculated.
Man, I’m getting obsessed with this game. I’m probably going to end up downloading the code so I can step through it, and eventually start contributing :p[/quote]
Grams actually. And melee_dam is just bashing damage, though IIRC the amount is further modified later on to include a chance of the item’s cutting damage as well. Volume is defined in the JSON files for each item, and is currently defined in 250mL units. The damage is also modified later on based on how well you hit and a few other factors (such as enemy armor).
That said we always welcome more contributors. 