Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 15, 2007, 01:18   #11
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 37
Posts: 777
pav is on a distinguished road
Send a message via ICQ to pav
It was written in Javascript, so completely client-side. You entered XdY (+a,+b), it calculated min, max and average. Quite simple script.

OTOH, don't let that get in your way of writing the ultimate damage calculator
__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Old July 16, 2007, 00:51   #12
Skeeblix
Rookie
 
Join Date: Jul 2007
Posts: 11
Skeeblix is on a distinguished road
Excellent idea. doing all the math in my head gets tedious after awhile. It'd be great to be able to get a look at the average damage done without having to calculate it out when there are things to be done and epic itamz to be got.
Skeeblix is offline   Reply With Quote
Old July 16, 2007, 08:07   #13
AR_chie
Apprentice
 
AR_chie's Avatar
 
Join Date: May 2007
Location: Reda, Poland
Posts: 71
AR_chie is on a distinguished road
BTW I have a question from the same format - when I wielding a weapon which causes for example fire damage and slay evil - against evil creature without fire proof which damage will be calculated?

quotation from spoiler:

Weapon of Burning
A magical weapon of fire that will inflict two times the normal
damage when used against a creature that is not resistant to fire.


Weapon of Slay Evil
This weapon is especially effective against evil creatures and will
do 1.7 times the normal damage against such creatures.


TIA
AR_chie is offline   Reply With Quote
Old July 16, 2007, 08:44   #14
Hugo
Scout
 
Join Date: Apr 2007
Posts: 31
Hugo is on a distinguished road
Quote:
Originally Posted by AR_chie View Post
quotation from spoiler:

Weapon of Burning
A magical weapon of fire that will inflict two times the normal
damage when used against a creature that is not resistant to fire.


Weapon of Slay Evil
This weapon is especially effective against evil creatures and will
do 1.7 times the normal damage against such creatures.
What spoiler file did you read this in, and where did you find it? It's either seriously outdated, or for a variant. Current (mostly) spoiler files for vanilla can be found on my spoiler site; see my sig for the URL.

Anyway, to answer your question - in Vanilla, if more than one brand, slay, or *slay* applies, the highest damage multiplicator is used and the others are disregarded.
__________________
Best, Hugo

--
Angband spoilers - now updated for Angband 3.0.8 !!!!!
Visit http://www.juti.nl/hugo/Angband/Spoiler/index.htm
--
Hugo is offline   Reply With Quote
Old July 16, 2007, 09:01   #15
AR_chie
Apprentice
 
AR_chie's Avatar
 
Join Date: May 2007
Location: Reda, Poland
Posts: 71
AR_chie is on a distinguished road
spoiler is from Z 2.7.2,

thx for answer
AR_chie is offline   Reply With Quote
Old July 20, 2007, 23:39   #16
Daven_26d1
Adept
 
Daven_26d1's Avatar
 
Join Date: Jun 2007
Location: North of England.
Posts: 211
Daven_26d1 is on a distinguished road
Quote:
Originally Posted by pav View Post
It was written in Javascript, so completely client-side. You entered XdY (+a,+b), it calculated min, max and average. Quite simple script.

OTOH, don't let that get in your way of writing the ultimate damage calculator
Well, it turned out that I was actually quite busy after all... but I'm sure I'll have some time for this soon.

Yeah, javascript was what I'd planned, will probably just add a set of buttons to the form, to allow input of weapon flags, after that its just coming up with a way to make it output pretty.

By the way, heres the maths for those who don't know:

A weapon xDy (+0, +z) will, on average, cause x*( (y+1)/2 ) + z damage per strike.
__________________
You sold a Broken Sword (1d2) (-2,-4) {average} (j) for 1 gold.
The shopkeeper howls in agony!
You say "Dude, the clue is in the name...".
Daven_26d1 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.