The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Physical Armor is not being counted
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #13
RE: Physical Armor is not being counted
Using the Notepad++ I found:
C:\sphere\scripts\add-on\combat\sphere_combat_events.scp (4 hits)
Line 72: argn2 |= dam_god
Line 88: argn2 |= dam_god
Line 184: argn2 |= dam_god
Line 200: argn2 |= dam_god

and here it is "sphere_combat_events.scp":
Code:
...
on=@gethit
if <tag0.hbcs>
    if <tag0.ignore.combat>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 72
    tag.ignore.combat
    elif ((<def.scp.Combat_FormulasUsed> == 1) && <def.scp.Combat_UseResistances>) || (<def.scp.Combat_FormulasUsed> == 3)
    ref1 = <qval (<src.weapon>) ? <src.weapon>:<src>>
    local.realphy = <eval 100 - (<ref1.tag0.DamFire> + <ref1.tag0.DamCold> + <ref1.tag0.DamPoison> + <ref1.tag0.DamEnergy>)>
    local.physical = <muldiv <argn1>,<local.realphy>,100>
    local.physical -= <muldiv <local.physical>,<eval <armor> + <modar>>,100>
    local.fire = <muldiv <argn1>,<ref1.tag0.DamFire>,100>
    local.fire -= <muldiv <local.fire>,<ResFire>,100>
    local.cold = <muldiv <argn1>,<ref1.tag0.DamCold>,100>
    local.cold -= <muldiv <local.cold>,<ResCold>,100>
    local.poison = <muldiv <argn1>,<ref1.tag0.DamPoison>,100>
    local.poison -= <muldiv <local.poison>,<ResPoison>,100>
    local.energy = <muldiv <argn1>,<ref1.tag0.DamEnergy>,100>
    local.energy -= <muldiv <local.energy>,<ResEnergy>,100>
    argn1 = <eval <local.physical> + <local.fire> + <local.cold> + <local.poison> + <local.energy>>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 88
    endif
endif
...
...
on=@gethit
if <tag0.hbcs>
    if <tag0.ignore.combat>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 184
    tag.ignore.combat
    elif ((<def.scp.Combat_FormulasUsed> == 1) && <def.scp.Combat_UseResistances>) || (<def.scp.Combat_FormulasUsed> == 3)
    ref1 = <qval (<src.weapon>) ? <src.weapon>:<src>>
    local.realphy = <eval 100 - (<ref1.tag0.DamFire> + <ref1.tag0.DamCold> + <ref1.tag0.DamPoison> + <ref1.tag0.DamEnergy>)>
    local.physical = <muldiv <argn1>,<local.realphy>,100>
    local.physical -= <muldiv <local.physical>,<eval <armor> + <modar>>,100>
    local.fire = <muldiv <argn1>,<ref1.tag0.DamFire>,100>
    local.fire -= <muldiv <local.fire>,<ResFire>,100>
    local.cold = <muldiv <argn1>,<ref1.tag0.DamCold>,100>
    local.cold -= <muldiv <local.cold>,<ResCold>,100>
    local.poison = <muldiv <argn1>,<ref1.tag0.DamPoison>,100>
    local.poison -= <muldiv <local.poison>,<ResPoison>,100>
    local.energy = <muldiv <argn1>,<ref1.tag0.DamEnergy>,100>
    local.energy -= <muldiv <local.energy>,<ResEnergy>,100>
    argn1 = <eval <local.physical> + <local.fire> + <local.cold> + <local.poison> + <local.energy>>
    argn2 |= dam_god // <<<<<<<<<<<<<<<<<<<<<<<<<<< LINE 200
    endif
endif
...


PS: I also found "dam_god flag" at: "sphere_champion_harrower.scp", "sphere_special_moves_event.scp", "sphere_special_moves_items.scp", "sphere_doom_dun.scp", "sphere_hunger_system.scp", "sphere_typedef_bola.scp", "sphere_spells_necromancy.scp", "sphere_defs.scp".
01-16-2013 07:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Physical Armor is not being counted - AmpereJoule - 01-16-2013 07:39 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)