Spell: Bloodhound
Code:
<thing id="pS2Bloodho" name="Bloodhound" description="You gain the scent special quality, including the ability to track by scent. You receive a +8 competence bonus on Perception checks involving smell and a +4 competence bonus on Survival checks to track using scent. You take a -4 penalty on saving throws against odor-related effects such as the stench ability and {I}stinking cloud{/i}. A creature under the effects of {I}bloodhound{/i} can detect poison by scent with a DC 20 Perception check." compset="InPlay">
<fieldval field="pDuration" value="1 hour/level"/>
<usesource source="APG"/>
<tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
<tag group="Helper" tag="NoIncr"/>
<bootstrap thing="xDogTrack">
<containerreq phase="First" priority="500"><![CDATA[fieldval:pIsOn <> 0]]></containerreq>
</bootstrap>
</thing>
Spell: Bomber's Eye
Code:
<thing id="pS2BombEye" name="Bomber’s Eye" description="This extract allows you to throw weapons farther and more accurately. While this extract is in effect, increase the range of any thrown weapon by 10 feet. In addition, you receive a +1 insight bonus on attack rolls made with thrown weapons." compset="InPlay">
<fieldval field="pDuration" value="1 round/level"/>
<fieldval field="pMinimum" value="1"/>
<fieldval field="pMaximum" value="1"/>
<usesource source="APG"/>
<tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
<eval phase="PreLevel" priority="5000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Modify all the thrown weapons
foreach pick in hero from BaseWep where "wCategory.RangeThrow"
~ give a +1 Insight bonus on attack rolls
eachpick.field[wAttBonus].value += field[pAdjust].value
~Increase Range Increment by 10feet
eachpick.field[wRangeInc].value += 10
nexteach]]></eval>
</thing>