Users browsing this thread: 1 Guest(s)
Changing physical damage calculations?

#6
Posts: 3,971
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(04-11-2012, 04:24 PM)Marketa Lazarova Wrote: I apologize for being aloof! I had already figured out the (relatively simple) way to manipulate the Moogle Suit and GP Rain to the desired effects, which is why I mentioned them as being easy to do.

Sorry I think I don't know how to read...

Well from what I see there is multiples ways to modify damages and here's an example. Here's how damage dealt by a character is calculated:

Code:
Step 1a. Vigor2 = Vigor * 2
         If Vigor >= 128 then Vigor2 = 255 instead

Step 1b. Attack = Battle Power + Vigor2
Step 1c. If equipped with Gauntlet, Attack = Attack + Battle Power * 3 / 4
Step 1d. Damage = Battle Power + ((Level * Level * Attack) / 256) * 3 / 2
Step 1e. If character is equipped with an Offering:
Damage = Damage / 2

Step 1f. If the attack is a standard fight attack and the character is
equipped with a Genji Glove, but only one or zero weapons:

Damage = ceil(Damage * 3 / 4)

Now I found this portion of code here, which I think concern the * 3/2 in step 1d:

Code:
C2/2BE9: 8D B0 11     STA $11B0   (Maximum Damage)
C2/2BEC: E0 08        CPX #$08    (If Player then multiply $11B0 by 3/2)
C2/2BEE: B0 2F        BCS $2C1F   (And add Battle Power)
C2/2BF0: AD A6 11     LDA $11A6   (Battle Power)
C2/2BF3: 29 FF 00     AND #$00FF
C2/2BF5: 0A           ASL
C2/2BF7: 6D B0 11     ADC $11B0   (Maximum Damage)
C2/2BFA: 4A           LSR
C2/2BFB: 18           CLC
C2/2BFC: 6D B0 11     ADC $11B0   (Maximum Damage)
C2/2BFF: 8D B0 11     STA $11B0   (Maximum Damage)

If you remove the LSR here at C2/2BFA and change it with a NOP (instruction EA), you remove a division by 2. You would end up with * 4/2 instead of * 3/2. You could also swtich it to a ASL, which would multiply by 2 instead of dividing. I dunno what the final output would be as for game balance, but I'm discovering the damages algorithms as I'm answering this thread. As I said , there is a lot of possibilities and it all depends of your level of ASM understanding.
  Find
Quote  



Messages In This Thread
RE: Changing physical damage calculations? - by madsiur - 04-12-2012, 01:05 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite