What makes Spears do double damage on Jump?
#4
What the game is doing at C2/1512 is checking the actual item number of your equipped weapon to see if it's in the range that the spears fall in; items 29-36.
If you want to have more weapons count as spears for jumping, it would be easiest if all of them were still lumped in one continuous section of the item list so that you could simply change the values in the function to match the new range.

Code:
C2/1512: C9 1D CMP #$1D   <-item number of first spear
C2/1514: 90 08 BCC $151E (Exit if item number less than first spear)
C2/1516: C9 25 CMP #$25   <-item number of last spear +1
C2/1518: B0 04 BCS $151E (Exit if item number greater than last spear)
C2/151A: A9 02 LDA #$02
C2/151C: 85 BD STA $BD
C2/151E: 60 RTS
Reply


Messages In This Thread
RE: What makes Spears do double damage on Jump? - by Drakkhen - 07-09-2015, 02:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gauntlet Jump doofenH 4 4,226 05-11-2022, 11:32 AM
Last Post: doofenH
  Dragon Horn max jump of 3 Lightning 15 11,108 07-20-2018, 12:55 AM
Last Post: GrayShadows
  Disable Jump command if character has Dark status seibaby 5 5,833 12-09-2016, 05:23 PM
Last Post: SSJ Rick
  2 Jump Commands Cyprus 0 1,907 05-07-2016, 10:13 AM
Last Post: Cyprus
  Making two different Jump commands Cyprus 4 5,318 10-26-2015, 02:44 AM
Last Post: Synchysi
  Double question Kugawattan 5 6,822 06-05-2014, 11:53 AM
Last Post: Kugawattan
  I notice that if I move the life spell it makes life 3 not work right . Locke0075 7 7,040 02-20-2014, 11:47 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)