What makes Spears do double damage on Jump?
#2
Anything in-battle related is handled in the C2 bank, so I'd look in the C2 disassembly first.
Searching for 'spear' brought up this:

Set $BD to 2 if A is between #$1D and #$24 (inclusive)
Increment damage if weapon is spear

C2/1512: C9 1D CMP #$1D
C2/1514: 90 08 BCC $151E (Exit)
C2/1516: C9 25 CMP #$25
C2/1518: B0 04 BCS $151E (Exit)
C2/151A: A9 02 LDA #$02
C2/151C: 85 BD STA $BD
C2/151E: 60 RTS

Then you can see from more instances of 'spear' searching that the STA $BD (the stored incremental damage) is placed in the Jump code:

C2/1817: 20 12 15 JSR $1512 (Set $BD to 2 if spear)
C2/181A: BD A9 3C LDA $3CA9,X (Weapon in left hand)
C2/181D: 20 12 15 JSR $1512 (Set $BD to 2 if spear)

So that's basically how it's done. How to go about changing it to another weapon though, I'm not exactly sure except some value in the 'Increment damage if weapon is spear' code must be set to spear. Maybe someone else can help clarify this more.

EDIT: What are you trying to do though exactly, change it to another weapon? Remove it?
If you want to just remove it, I'd imagine just NOP (EA byte) the two JSR there in the jump code would do that.

Oh and in case you are not sure where to find these disassemblys, you can find them on Slick Productions site here:
http://www.slickproductions.org/docs.php?id=FF6
We are born, live, die and then do the same thing over again.
Reply


Messages In This Thread
RE: What makes Spears do double damage on Jump? - by Gi Nattak - 07-08-2015, 09:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gauntlet Jump doofenH 4 4,230 05-11-2022, 11:32 AM
Last Post: doofenH
  Dragon Horn max jump of 3 Lightning 15 11,116 07-20-2018, 12:55 AM
Last Post: GrayShadows
  Disable Jump command if character has Dark status seibaby 5 5,835 12-09-2016, 05:23 PM
Last Post: SSJ Rick
  2 Jump Commands Cyprus 0 1,908 05-07-2016, 10:13 AM
Last Post: Cyprus
  Making two different Jump commands Cyprus 4 5,319 10-26-2015, 02:44 AM
Last Post: Synchysi
  Double question Kugawattan 5 6,823 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,044 02-20-2014, 11:47 PM
Last Post: madsiur

Forum Jump:


Users browsing this thread: 1 Guest(s)