Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old September 7, 2011, 06:44   #1
redrobert
Scout
 
Join Date: Sep 2011
Posts: 29
redrobert is on a distinguished road
Damage Multiplier of Bows

Could anyone please tell me in which files i have to look to change the damage multipliers of Bows and Crossbows?
redrobert is offline   Reply With Quote
Old September 7, 2011, 12:47   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by redrobert View Post
Could anyone please tell me in which files i have to look to change the damage multipliers of Bows and Crossbows?
Unfortunately you'll need to recompile to do this. The damage multiplier is determined by the last digit of the object's sval, so you'll need to edit src/object/tvalsval.h and rebuild.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old September 7, 2011, 13:53   #3
redrobert
Scout
 
Join Date: Sep 2011
Posts: 29
redrobert is on a distinguished road
thank you very much

i was trying to do this with z+angband but somehow it looks like i am too stupid to recompile as it gives me tons of errors while recompiling - for files i did not even open - and aborts the compilation

too bad, so that's it then with my x2 crossbow
redrobert is offline   Reply With Quote
Old September 7, 2011, 14:21   #4
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by redrobert View Post
thank you very much

i was trying to do this with z+angband but somehow it looks like i am too stupid to recompile as it gives me tons of errors while recompiling - for files i did not even open - and aborts the compilation

too bad, so that's it then with my x2 crossbow
Hmmm. I was talking about V - I don't know if Z+ uses the same sval-based multiplier mechanic.

As for compiling - what platform and toolchain are you using? Whichever you use, the chances are that someone will be able to walk you through it.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old September 7, 2011, 14:26   #5
redrobert
Scout
 
Join Date: Sep 2011
Posts: 29
redrobert is on a distinguished road
i was trying it with windows vista and lcc

what i have seen z+ has the same mechanics considering damage multiplier. too bad the genius programmer had not made the variables needed for more multipliers

i guess no one would want a crossbow x2 :-)

maybe i could make a workaround ... light crossbow with some in-built damage reduction. but recompiling is prefered as i reduced the deadliness of elemental brands as well.
redrobert is offline   Reply With Quote
Old September 7, 2011, 14:36   #6
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by redrobert View Post
i was trying it with windows vista and lcc

what i have seen z+ has the same mechanics considering damage multiplier. too bad the genius programmer had not made the variables needed for more multipliers

i guess no one would want a crossbow x2 :-)

maybe i could make a workaround ... light crossbow with some in-built damage reduction. but recompiling is prefered as i reduced the deadliness of elemental brands as well.
Sangband has x2 "hand crossbows", in case you're interested.

I have never used Vista or lcc - sorry. I hope someone who has will chip in.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old September 7, 2011, 14:39   #7
redrobert
Scout
 
Join Date: Sep 2011
Posts: 29
redrobert is on a distinguished road
thanks for your help nevertheless
redrobert is offline   Reply With Quote
Old September 7, 2011, 20:41   #8
dos350
Knight
 
dos350's Avatar
 
Join Date: Sep 2010
Location: nimbin, australia
Posts: 519
dos350 is on a distinguished road
u want lower dmg crossbow?~!
__________________
~eek

Reality hits you -more-

S+++++++++++++++++++
dos350 is offline   Reply With Quote
Old September 7, 2011, 20:45   #9
Blue Baron
Adept
 
Join Date: Apr 2011
Posts: 103
Blue Baron is on a distinguished road
Quote:
Originally Posted by redrobert View Post
thank you very much

i was trying to do this with z+angband but somehow it looks like i am too stupid to recompile as it gives me tons of errors while recompiling - for files i did not even open - and aborts the compilation

too bad, so that's it then with my x2 crossbow
z+ does use a different mechanic and it is hard coded to the sval. The multiplier is set in calc bonuses() in xtra1.c. The displayed multiplier is set in object_desc() in flavor.c.

So to add the hand crossbow, you would need to add it, with a different sval, to k_info.txt and increase the objects line in misc.txt, create an sval defines for it in defines.h, and add case statements for the multipliers to calc bonuses() in xtra1.c and object_desc() in flavor.c. Doing a search for SV_LIGHT_XBOW in the src directory will take you to the right places in the code.

Edit: I have never used lcc either, but what errors are you getting? Also, the speed of the crossbow is also set in calc bonuses() in xtra1.c.
Blue Baron is offline   Reply With Quote
Old September 7, 2011, 21:41   #10
redrobert
Scout
 
Join Date: Sep 2011
Posts: 29
redrobert is on a distinguished road
error k:\z+src\src\wild1.c 2771 Compiler error (trap) stopping compilation
redrobert 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
It did how much damage? Raggy Vanilla 27 June 26, 2011 21:12
A damage question... Fendell Orcbane Vanilla 13 June 2, 2010 22:58
Hail from the Lone Star *bows* Kystal Idle chatter 9 December 28, 2009 08:47
slings, bows and ammo fizzix Vanilla 25 December 1, 2009 06:18
Mage Books and Bows Bad Tempered Geezer Vanilla 5 August 14, 2009 17:23


All times are GMT +1. The time now is 11:16.


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