STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
233079
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2640 · P5280

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM90491268-18DC&rnd=90491268" width="1" height="1"></div>

armorgames monsters-den-the-boo-1614.swf

This is the info page for
Flash #263951

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

PLAY GAME

MONSTERS' DEN: THE BOOK OF DREAD

DEVELOPED BY

<p align="center"><font face="Tahoma" size="8" color="#cccccc" letterSpacing="5.000000" kerning="0"><b>SPONSORED BY</b></font></p>

m

o

c

.

e

t

a

g

r

n

k

w

GAMES

ADVERTISEMENT

z

z

z

CONTINUE

<p align="center"><font face="Arial" size="10" color="#000000" letterSpacing="0.000000" kerning="1"><b>25/25</b></font></p>

Starting Skills

Unlockable Skills

<p align="center"><font face="Georgia" size="20" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Cleric Skills</b></font></p>

(mouse over a skill icon to see its description)

Passive Skills

Select Game

Delete Saved Game

Delete Saved Game

<p align="center"><font face="Tahoma" size="12" color="#ffffe6" letterSpacing="0.000000" kerning="1"><b>Level 99</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#333333" letterSpacing="0.000000" kerning="1"><b>The Den of Corruption</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#333333" letterSpacing="0.000000" kerning="1">Standard</font></p><p align="center"><font face="Tahoma" size="10" color="#333333" letterSpacing="0.000000" kerning="1">Hardcore - Tactical - Attrition</font></p>

Difficulty:

<p align="center"><font face="Georgia" size="14" color="#333333" letterSpacing="0.000000" kerning="1"><b>225%</b></font></p>

Rating:

<p align="center"><font face="Georgia" size="14" color="#333333" letterSpacing="0.000000" kerning="1"><b>2250005</b></font></p>

CUSTOM
PORTRAIT
NOT
AVAILABLE

LOADING

<p align="center"><font face="Tahoma" size="10" color="#333333" letterSpacing="0.000000" kerning="1"><b>Player</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#333333" letterSpacing="0.000000" kerning="1">Barbarian</font></p>

Begin New Game

Click here to begin
Your progress will be saved
automatically in this slot.
Be aware that clearing your
browser cache will delete
your save file.

Options

Options

Highest Dungeon Rating:

Highest Dungeon Level:

<p align="left"><font face="Monotype Corsiva" size="12" color="#663300" letterSpacing="0.000000" kerning="1"><b><i>12345</i></b></font></p>

<p align="left"><font face="Monotype Corsiva" size="12" color="#663300" letterSpacing="0.000000" kerning="1"><b><i>2346718987321</i></b></font></p>

Highest Survival Wave:

<p align="left"><font face="Monotype Corsiva" size="12" color="#663300" letterSpacing="0.000000" kerning="1"><b><i>2346</i></b></font></p>

Click here to add a new character to the party

<p align="center"><font face="Georgia" size="18" color="#333333" letterSpacing="0.000000" kerning="1"><b>Warrior</b></font></p>

X

X

X

X

<p align="center"><font face="Monotype Corsiva" size="25" color="#333333" letterSpacing="0.000000" kerning="1"><i>123456789012</i></font></p>

Custom Portrait

Custom Portrait

<p align="center"><font face="Tahoma" size="8" color="#333333" letterSpacing="0.000000" kerning="1"><b>THE</b></font></p>

PREVIEW CLASS SKILLS

PREVIEW CLASS SKILLS

<p align="center"><font face="Tahoma" size="11" color="#333333" letterSpacing="0.000000" kerning="1">Blah Blah Blah kjdhashdkasjdhkahsdkajhdkas dhaksdhka h sajsj sjdhaskjdh ashjdka dshajkd ahsk dshajkdhak</font></p>

Conjuror class only available on

Create your party of adventurers

Continue

Continue

loading

loading.

loading..

loading...

Game Options

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">LOW</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">MID</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">FULL</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">OFF</font></p>

Total Volume:

Sound FX Volume:

Music Volume:

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Checkbox Text</font></p>

Graphic Quality:

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">MED</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">HIGH</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">BEST</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">LOW</font></p>

Audio

Graphics

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">ON</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">OFF</font></p>

Combat Blur:

Portrait Highlight:

Gameplay

Tooltip Delay:

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">LOW</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">MED</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">LONG</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">NONE</font></p>

Adv. Pathfinding:

(disable if dungeon
movement is slow)

Game Credits

Monsters' Den: The Book of Dread by
Daniel Stradwick

Additional Character Art
Joe Calkins

www.monstrumgames.com

www.monstrumgames.com

www.cerberusart.com

www.cerberusart.com

Dwarf Faction Art by V Shane © 2001-2008

Beta Testers: ChaosBlade_DC (Daniel Cavael), Dark Nova, DesK333,
LightningLord, Obeliskos, ssamtheman, spacey, SwordPaladin (Biclops RPG Fan),
Torchwood, William R. Howell

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Some artwork taken from Stellar Stockart #1: Mythic Monsters, copyright © <sbr />Cracked Mirror Publishing. Used with permission. </font></p><p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">To learn more visit <font color="#ffffcc"><a href="http://www.cracked-mirror.com">www.cracked-mirror.com</a></font></font></p>

<p align="center"></p>

<p align="left"><font face="Georgia" size="12" color="#cccccc" letterSpacing="4.000000" kerning="1">PLAY MORE GAMES ON</font></p>

<p align="right"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>v1.0</b></font></p>

<p align="right"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>v1.0</b></font></p>

<p align="center"><font face="Georgia" size="17" color="#ff0000" letterSpacing="0.000000" kerning="1"><b>Death&apos;s Champions</b></font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x 2 &nbsp;&nbsp;&nbsp;Goblin Artificer</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ff6600" letterSpacing="0.000000" kerning="1"><b>Blazing Longsword of Eternal and Extreme Cuttiness</b></font></p>

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">10 Damage</font></p><p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">+1-3 Fire Damage</font></p><p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">+2 Quickness</font></p><p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">+3 Strength</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Usable: Warrior, Rogue, Mage, Cleric, Ranger</font></p>

<p align="left"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Offhand Item</font></p>

<p align="right"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Level 1024</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffcc99" letterSpacing="0.000000" kerning="1">Enchanted: Strength</font></p>

CURRENTLY EQUIPPED:

<p align="right"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">250</font></p>

<p align="left"><font face="Tahoma" size="10" color="#999999" letterSpacing="0.000000" kerning="1">by garin</font></p>

<p align="center"><font face="Tahoma" size="14" color="#ffffdd" letterSpacing="0.000000" kerning="1"><b>Ensorcelled Blade</b></font></p>

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Here is the incredibly valuable information that you&apos;re simply dying to read. Enjoy!</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Requires Melee Weapon</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>100 Power</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Effect increases with Intellect</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>An Interesting Tooltip Containing Much Information</b></font></p>

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Here is the incredibly valuable information that you&apos;re simply dying to read. Enjoy!</font></p>

<p align="center"><font face="Tahoma" size="14" color="#ffffdd" letterSpacing="0.000000" kerning="1"><b>Ensorcelled Blade</b></font></p>

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Here is the incredibly valuable information that you&apos;re simply dying to read. Enjoy!</font></p>

Passive Skill

<p align="right"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Rank 0/24</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">All</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Recommend</font></p>

SHOW:

SORT:

Party Inventory

<p align="center"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>45/45</b></font></p>

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">Status text goes here.</font></p>

?

HELP

RETURN

<p align="center"><font face="Tahoma" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Eugene</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Level 8 Warrior</b></font></p>

<p align="center"></p>

<p align="center"></p>

OPTIONS

DISCARD
(CTRL)

PARTY GOLD

PARTY ITEMS

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">99</font></p>

MENU

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Statistics</font></p>

ACCURACY:

ARMOR RATING:

ENDURANCE:

STRENGTH:

DEXTERITY:

INTELLECT:

DAMAGE:

DMG REDUCTION:

POISON RESIST:

STUN RESIST:

POWER REGEN:

HEALTH REGEN:

QUICKNESS:

STAT POINTS:

DRAIN HEALTH:

CAUSE STUN:

ADD POISON:

DMG REFLECTION:

BLIND TARGET:

LETHALITY:

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">99999</font></p>

UNDO CHANGES

UNLOCKED SKILLS

ACTIVE SKILLS

<p align="right"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">999</font></p>

SKILL POINTS:

<p align="center"><font face="Tahoma" size="11" color="#ffffff" letterSpacing="0.000000" kerning="1">SELECT NEW SKILLS</font></p>

<p align="right"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>99</b></font></p>

<p align="right"><font face="Tahoma" size="12" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Power Attack</b></font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Power Attack</b></font></p>

<p align="right"><font face="Tahoma" size="12" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Passive Skill 1</b></font></p>

<p align="left"><font face="Tahoma" size="12" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Passive Skill 2</b></font></p>

Select New Skills

SKILL POINTS REMAINING:

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>8</b></font></p>

CANCEL

<p align="center"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>45/45</b></font></p>

<p align="center"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>0</b></font></p>

<p align="center"><font face="Tahoma" size="8" color="#cccccc" letterSpacing="0.000000" kerning="1"><b>Level 99</b></font></p>

<p align="center"><font face="Georgia" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>The Den of Infinite Evil</b></font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"> 0% CLEARED</font></p>

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"> EXPLORED 0%</font></p>

MAP HINT

CHARS

RATING

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Health: 22 Damage: 22</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>New Dungeon</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>Clear</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>Explore</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>Gear</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>Heal</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#663300" letterSpacing="0.000000" kerning="1"><b>Critical</b></font></p>

BETA FUNCTIONS:

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">NEXT LEVEL</font></p>

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">EQUIPMENT</font></p>

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">HEAL</font></p>

<p align="center"></p>

The Dreadfather falls, a foul-smelling smoke rising from the corpse. A trophy is hastily collected, as the glow of the Journeyman's Stone begins to fade. Thankfully, power enough remains to return the weary adventurers to the entrance of the dungeon.

The threat is over. Without his terrifying presence to unify them, his army will fall to infighting and the remnants will scatter.

In a small tavern, a man drinks, lamenting that his duties drive him to send so many to their doom. Soon he will have to search for another eager party of adventurers to set on his hopeless quest.

His reverie is interrupted by a sudden thump on the table, and a terrible stench assaults him. The canvas bag falls open to reveal its grisly contents, and he is faced with a nightmarish rictus grin.

'Let's talk about that reward..'

Exit Found!

Descend to the next level of the dungeon now?

NOT YET

YES

<p align="center"><font face="Georgia" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Altar of Restoration</b></font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Praying at the altar will fully recover your party&apos;s health and power, and revive any fallen. Each altar may be used only once.</font></p><p align="center"></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Use this altar now?</font></p>

Finders, Keepers

Treasure!

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>CONSUMABLES</b></font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>WEAPONS</b></font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>ARMOR</b></font></p>

TAKE LOOT

DISCARD

<p align="left"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">25/25 selected</font></p>

Click on items to deselect

SETTINGS

The enemy's loss is your gain.

Warning

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Praying at the altar will fully recover your party&apos;s health and power, and revive any fallen. </font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Each altar may only be used once.</font></p>

Delete Saved Game?

Are you sure you would like to delete this saved
game? You will not be able to recover it.

DELETE

KEEP SAVE

Retreat and Rest

Having fully cleared the previous dungeon level,
you may retreat there to rest and recover.
Health and Power will be fully restored for the
entire party. You may retreat only once per level.
Retreat now?

<p align="center"><font face="Georgia" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Hints and Tips</b></font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Praying at the altar will fully recover your party&apos;s health and power, and revive any fallen. </font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Each altar may only be used once.</font></p>

Expedition Rating

Highest Level Reached
Total Clear, Explore %
Enemy Leaders Killed
Healing Shrines Used
Character Deaths
Party Defeats

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">1</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">100%</font></p><p align="center"></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">11</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">57</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">755</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">2</font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">1000</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">100%</font></p><p align="center"></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">500</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">-250</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">-100</font></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">-1000</font></p>

x
+
x
x
x
x

<p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">25000</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x100%</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">25000</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">5500</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">250</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">100</font></p><p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">1000</font></p>

=
=
=
=
=
=

<p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">110000000</font></p>

SUBTOTAL

<p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">220000000</font></p>

TOTAL

<p align="right"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">x225%</font></p>

Difficulty Multiplier

SUBMIT

Select a difficulty level:

Standard

Monsters have normal health and damage.
Item loss on party defeat.
Score modifier: 100%

Extreme

Monsters have increased health and damage.
Item loss on party defeat.
Score modifier: 150%

Beginner

Monsters have reduced health and damage.
No penalty for party defeat.
Score modifier: 50%

Game over if the party is defeated. Score +25%

No power regeneration in combat. Score +50%

Player can't buy or sell any items. Score +20%

Total Score Modifier:

<p align="left"><font face="Georgia" size="18" color="#333333" letterSpacing="0.000000" kerning="1"><b>225%</b></font></p>

<p align="center"><font face="Georgia" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Error</b></font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Error Text</font></p>

Custom Portrait

Enter an image URL to set a custom portrait
(for best results, the image should be square)

NO

Use custom portrait?

LOAD

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">Results appears here</font></p>

<p align="center"><font face="Tahoma" size="9" color="#000000" letterSpacing="0.000000" kerning="1">enter image url blahblah</font></p>

Special Encounter

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">&quot;We were surprised to see them.. and fatally slow to defend ourselves. When the last dwarf was slain, I found I was the last of my party still standing. I fear it is not for long. In my mind&apos;s eye all I can see is one of their pagan runes, growing ever larger. I am cursed to die.&quot;</font></p>

There is an injured man here.

"Will you let me join with you, for as long as I am able?"

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Player</b></font></p>

Adventurer

Ally Perishes

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Your ally, Jerome, has succumbed to his injuries and died. His last words were a whispered &quot;Thank you.&quot;</font></p><p align="center"></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">The party build him a cairn from nearby loose stones, then continue on with their quest.</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Player</b></font></p>

RIP

Loot Settings

Automatically select these items for looting:

Unchecked item categories will still show in the
loot summary, but will not be selected.

Always select these, regardless of rarity:

<p align="center"><font face="Tahoma" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Eugene</b></font></p>

<p align="center"></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>Level 8 Warrior</b></font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">99%</font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">99%</font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">99%</font></p>

<p align="left"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">120%</font></p>

<p align="left"><font face="Tahoma" size="8" color="#cccccc" letterSpacing="0.000000" kerning="1">12</font></p>

<p align="right"><font face="Tahoma" size="8" color="#cccccc" letterSpacing="0.000000" kerning="1">12</font></p>

<p align="center"><font face="Tahoma" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Skill Name</b></font></p>

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>announce_text announce_text</b></font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffcc" letterSpacing="0.000000" kerning="1"><b>announce_subtext</b></font></p>

<p align="center"><font face="Tahoma" size="6" color="#ffffff" letterSpacing="6.000000" kerning="0"><b>WAVE 2</b></font></p>

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">Skeleton Q50 &nbsp;</font></p>

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">Skeleton Q50 &nbsp;</font></p>

<p align="right"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">Skeleton Q50 &nbsp;</font></p>

These portraits display the status and
relative positions of your party members.
The character currently taking their turn is
indicated by a flashing gold outline around
their portrait.
Move the mouse over a portrait to view
more information on that target
(see right panel.)

(click anywhere on the screen to exit help)

These portraits display the status and
relative positions of your enemies.
Click on a portrait to use the currently
selected skill on that character.
Different skills have different criteria for
who they may target. Valid targets have a
flashing red outline. When the mouse is
over a valid target, all targets effected by
the skill will glow red.

The current character may
choose which of his active
skills to use here. The
mousewheel and keyboard
1-6 also select these skills.

The current skill's name.

Alternative turn actions

Important status announcements appear here.

Accuracy

Dmg Resist

Poison Resist

Stun Resist

The status of the character
currently taking their turn
is displayed here.

The status of the character
currently moused over is
displayed here.

The turn order is
displayed here. Characters
with a higher Quickness
stat act sooner. If the
mouse pointer is over a
portrait, the chararacter
glows yellow in this list.

Level Exit

Lurking Monsters

Restoration Shrine

Treasure

These portraits display the status of your
party members. Click on a portrait to
manage their skills and equipment.

Percentage of monsters on
the current level slain.

Percentage of rooms on the
current level explored.

Current dungeon level.

If the level exit has been found,
you may click here to quickly descend.

The position of the party is indicated by the brightest room.
Click on a neighbouring room to travel there.  Entering rooms
which contain monsters will trigger a battle. Defeating the
monsters will earn you treasure.
You must find the level exit in order to progress further into
the dungeon. Lower levels are more difficult, so it is often best
to search out as much treasure as possible before continuing.

The current character.

Manage the party inventory here. To use/equip items, double-click the icon,
or drag it onto the paperdoll or character portrait. To discard items, drag the
icon onto the red 'X', or CTRL-Click on the icon. Discarded items cannot be
recovered. Party inventory is limited to 45 items, if the party is carrying more
than that, you will be required to discard some before continuining.

Discard button.

Current character's
equipment.
To remove items,
double-click the icon
or drag it into the
inventory area.

View/Manage statistics and skills here.
Drag unlocked skills to the 'active' area on the left to use them in combat.
When spending stat points, shift-click to spend all remaining points at once.

Click the tabs to change between skills and statistics. If the current character has
Stat Points or Skill Points to spend, the tab will flash.

Click on a portrait to change the currently
displayed paperdoll.

Paperdoll: Current
character's equipped
items displayed
here for reference.

Item filter options (filter by rarity)

Items for purchase or sale are displayed here. Mouse over the icon to
show the item tooltip with full stats, or mouse over the item bar to trigger
comparison information on the player portraits.
Click an item entry to select it.
[Shortcut: CTRL-Click on item entry to immediately buy/sell it]

Click here to buy or sell the
currently selected item.
[Shortcut: Spacebar]

Item filter options (filter by type)

Switch between buying/selling

<p align="center"><font face="Tahoma" size="11" color="#000000" letterSpacing="0.000000" kerning="1">Exemplifier-1</font></p>

4

u

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">LOW</font></p>

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">MID</font></p>

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">FULL</font></p>

<p align="center"><font face="Tahoma" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">TURN OFF</font></p>

TOTAL VOLUME

MUSIC VOLUME

SFX VOLUME

AUDIO

SELL ITEM

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Medium Armor</font></p>

BUY ITEM

Yelmo
Proprietor

<p align="left"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Player</b></font></p>

<p align="left"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">Class</font></p>

<p align="center"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>45/60</b></font></p>

SHOW:

<p align="center"><font face="Arial" size="9" color="#333333" letterSpacing="0.000000" kerning="1"><b>Welcome to the Emporium, adventurer! </b></font></p><p align="center"></p><p align="center"><font face="Arial" size="9" color="#333333" letterSpacing="0.000000" kerning="1"><b>Found one of our portal scrolls, did you? We get most of our business that way. Best idea I ever had.</b></font></p>

The Emporium

<p align="center"><font face="Tahoma" size="14" color="#ffffff" letterSpacing="0.000000" kerning="1">Buy Items</font></p>

<p align="left"><font face="Tahoma" size="10" color="#00ff00" letterSpacing="0.000000" kerning="1"><b>Brutal Groinguard of Strength</b></font></p>

<p align="left"><font face="Tahoma" size="8" color="#ffff00" letterSpacing="0.000000" kerning="1">EQUIPPED BY RANDY</font></p>

<p align="right"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1">250</font></p>

Select a campaign:

Next Campaign

Next Campaign

<p align="center"><font face="Georgia" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Spell Mastery!</b></font></p>

<p align="center"><font face="Tahoma" size="9" color="#9900ff" letterSpacing="0.000000" kerning="1"><b>Sabatons of the Valiant Crusader &nbsp;and</b></font></p><p align="center"><font face="Tahoma" size="9" color="#9900ff" letterSpacing="0.000000" kerning="1"><b>stuff</b></font></p>

BETTER

THAN

WORSE

EQUIVALENT

TO

CANNOT USE

SLOT BLOCKED

A strange creature lurks in the shadows.

<p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">&quot;You have done as I asked. More for the promise of reward than compassion or justice, I suspect.</font></p><p align="center"></p><p align="center"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">&quot;But you shall have your reward. Take it and go now, leave me to my solitude.&quot;</font></p>

<p align="center"><font face="Tahoma" size="10" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Shee</b></font></p>

Lurker

Damage Reduction (Armor)

Poison Resistance

Stun Resistance

Accuracy

The Fall of Tellunos

The enemy host masses outside the city walls. We have precious
little time to prepare, and few resources.

Your party configuration will be stored when you begin, but battle progress will not be saved.

Man the Gates!

Man the Gates!

Buy Equipment

Buy Equipment

Manage Characters

Manage Characters

<p align="center"><font face="Tahoma" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1">99</font></p>

o
d
e
f
g
h
i
j

v
b
n
m
S
I
O
P
Q

The Den of Corruption

The land is tainted by a
mysterious evil.
Could one group of
adventurers have
unexpectedly stumbled
upon the source?

The original Monsters' Den campaign,
with many new enhancements

The Den of Terror

An army is gathering.
Villains of every stripe flock
to the banner.
But to what end, and in
whose service?

A new dungeon quest

The city is under siege, faced
with insurmountable odds.
Hold back the endless
tide of monsters for as
long as you can.

A new survival mode

AUDIO

www.kongregate.com

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Loading..</font></p>

The game has encountered a problem and cannot finish loading.
It might help to make sure you have the latest verion of Flash Player. Visit
Feel free to submit a bug report. If possible, include your Flash version and browser.

<p align="left"><font face="Tahoma" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Flash Version</font></p>

http://www.adobe.com/go/getflashplayer

ActionScript [AS3]

Section 1
//AdLoader (CPMStar.AdLoader) package CPMStar { import flash.display.*; import flash.net.*; import flash.system.*; public class AdLoader { private static var cpmstarLoader:Loader; public static function LoadAd(_arg1:int, _arg2:int):DisplayObject{ Security.allowDomain("server.cpmstar.com"); Security.allowInsecureDomain("server.cpmstar.com"); var _local3 = "http://server.cpmstar.com/adviewas3.swf"; cpmstarLoader = new Loader(); cpmstarLoader.load(new URLRequest(((((_local3 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2))); return (cpmstarLoader); } } }//package CPMStar
Section 2
//ArmorIntro_399 (monstersdend_fla.ArmorIntro_399) package monstersdend_fla { import flash.display.*; public dynamic class ArmorIntro_399 extends MovieClip { public function ArmorIntro_399(){ addFrameScript(125, frame126); } function frame126(){ this.stop(); MovieClip(parent).gotoAndStop(6); } } }//package monstersdend_fla
Section 3
//CorridorSegment_88 (monstersdend_fla.CorridorSegment_88) package monstersdend_fla { import flash.display.*; public dynamic class CorridorSegment_88 extends MovieClip { public function CorridorSegment_88(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package monstersdend_fla
Section 4
//DifficultySelectBG_219 (monstersdend_fla.DifficultySelectBG_219) package monstersdend_fla { import flash.display.*; public dynamic class DifficultySelectBG_219 extends MovieClip { public function DifficultySelectBG_219(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package monstersdend_fla
Section 5
//EnchantOrbGlow_158 (monstersdend_fla.EnchantOrbGlow_158) package monstersdend_fla { import flash.display.*; public dynamic class EnchantOrbGlow_158 extends MovieClip { public function EnchantOrbGlow_158(){ addFrameScript(0, frame1); } function frame1(){ this.mouseEnabled = false; } } }//package monstersdend_fla
Section 6
//Eye1_11 (monstersdend_fla.Eye1_11) package monstersdend_fla { import flash.display.*; public dynamic class Eye1_11 extends MovieClip { public function Eye1_11(){ addFrameScript(32, frame33, 91, frame92); } function frame33(){ if (Math.random() < 0.7){ this.gotoAndPlay("WaitRight"); }; } function frame92(){ if (Math.random() < 0.7){ this.gotoAndPlay("WaitLeft"); }; } } }//package monstersdend_fla
Section 7
//Eye2_12 (monstersdend_fla.Eye2_12) package monstersdend_fla { import flash.display.*; public dynamic class Eye2_12 extends MovieClip { public function Eye2_12(){ addFrameScript(71, frame72, 123, frame124); } function frame72(){ if (Math.random() < 0.7){ this.gotoAndPlay("WaitLeft"); }; } function frame124(){ if (Math.random() < 0.7){ this.gotoAndPlay("WaitRight"); }; } } }//package monstersdend_fla
Section 8
//FadeScreenDarker_56 (monstersdend_fla.FadeScreenDarker_56) package monstersdend_fla { import flash.display.*; public dynamic class FadeScreenDarker_56 extends MovieClip { public function FadeScreenDarker_56(){ addFrameScript(5, frame6); } function frame6(){ this.gotoAndStop(6); } } }//package monstersdend_fla
Section 9
//FGL_logo_68 (monstersdend_fla.FGL_logo_68) package monstersdend_fla { import flash.display.*; public dynamic class FGL_logo_68 extends MovieClip { public function FGL_logo_68(){ addFrameScript(24, frame25); } function frame25(){ this.stop(); } } }//package monstersdend_fla
Section 10
//IconEnchantGlow_151 (monstersdend_fla.IconEnchantGlow_151) package monstersdend_fla { import flash.display.*; public dynamic class IconEnchantGlow_151 extends MovieClip { public function IconEnchantGlow_151(){ addFrameScript(0, frame1); } function frame1(){ this.gotoAndStop(1); } } }//package monstersdend_fla
Section 11
//InventoryProcessing_125 (monstersdend_fla.InventoryProcessing_125) package monstersdend_fla { import flash.display.*; public dynamic class InventoryProcessing_125 extends MovieClip { public function InventoryProcessing_125(){ addFrameScript(0, frame1, 29, frame30); } function frame1(){ this.stop(); } function frame30(){ this.gotoAndPlay(2); } } }//package monstersdend_fla
Section 12
//KongIntro_384 (monstersdend_fla.KongIntro_384) package monstersdend_fla { import flash.display.*; public dynamic class KongIntro_384 extends MovieClip { public function KongIntro_384(){ addFrameScript(144, frame145); } function frame145(){ this.stop(); MovieClip(parent).gotoAndStop(6); } } }//package monstersdend_fla
Section 13
//ListEntryBG_355 (monstersdend_fla.ListEntryBG_355) package monstersdend_fla { import flash.display.*; public dynamic class ListEntryBG_355 extends MovieClip { public function ListEntryBG_355(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package monstersdend_fla
Section 14
//LoadingSymbol_54 (monstersdend_fla.LoadingSymbol_54) package monstersdend_fla { import flash.display.*; public dynamic class LoadingSymbol_54 extends MovieClip { public function LoadingSymbol_54(){ addFrameScript(3, frame4); } function frame4(){ this.gotoAndStop(4); } } }//package monstersdend_fla
Section 15
//player_arrow_impact_284 (monstersdend_fla.player_arrow_impact_284) package monstersdend_fla { import flash.display.*; public dynamic class player_arrow_impact_284 extends MovieClip { public var hit:MovieClip; public function player_arrow_impact_284(){ addFrameScript(11, frame12); } function frame12(){ this.gotoAndStop(12); } } }//package monstersdend_fla
Section 16
//PlayGameHint_80 (monstersdend_fla.PlayGameHint_80) package monstersdend_fla { import flash.display.*; public dynamic class PlayGameHint_80 extends MovieClip { public function PlayGameHint_80(){ addFrameScript(0, frame1); } function frame1(){ this.mouseEnabled = false; this.mouseChildren = false; } } }//package monstersdend_fla
Section 17
//poisonbubble_276 (monstersdend_fla.poisonbubble_276) package monstersdend_fla { import flash.display.*; public dynamic class poisonbubble_276 extends MovieClip { public function poisonbubble_276(){ addFrameScript(24, frame25); } function frame25(){ this.gotoAndStop(25); } } }//package monstersdend_fla
Section 18
//QuestionMarkAnimated_328 (monstersdend_fla.QuestionMarkAnimated_328) package monstersdend_fla { import flash.display.*; public dynamic class QuestionMarkAnimated_328 extends MovieClip { public function QuestionMarkAnimated_328(){ addFrameScript(14, frame15); } function frame15(){ if (this.parent != null){ parent.removeChild(this); }; } } }//package monstersdend_fla
Section 19
//RoomTint_92 (monstersdend_fla.RoomTint_92) package monstersdend_fla { import flash.display.*; public dynamic class RoomTint_92 extends MovieClip { public function RoomTint_92(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package monstersdend_fla
Section 20
//shield_gleam_256 (monstersdend_fla.shield_gleam_256) package monstersdend_fla { import flash.display.*; public dynamic class shield_gleam_256 extends MovieClip { public function shield_gleam_256(){ addFrameScript(0, frame1, 14, frame15); } function frame1(){ this.gotoAndStop(1); } function frame15(){ this.gotoAndStop(15); } } }//package monstersdend_fla
Section 21
//SkillIconBG_16 (monstersdend_fla.SkillIconBG_16) package monstersdend_fla { import flash.display.*; public dynamic class SkillIconBG_16 extends MovieClip { public function SkillIconBG_16(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package monstersdend_fla
Section 22
//TableIntro_378 (monstersdend_fla.TableIntro_378) package monstersdend_fla { import flash.display.*; public dynamic class TableIntro_378 extends MovieClip { public var continue_button:SimpleButton; public var credits_button:SimpleButton; public var options_button:SimpleButton; public function TableIntro_378(){ addFrameScript(29, frame30); } function frame30(){ this.stop(); } } }//package monstersdend_fla
Section 23
//vert_slash_281 (monstersdend_fla.vert_slash_281) package monstersdend_fla { import flash.display.*; public dynamic class vert_slash_281 extends MovieClip { public var slash:MovieClip; public function vert_slash_281(){ addFrameScript(11, frame12); } function frame12(){ this.gotoAndStop(12); } } }//package monstersdend_fla
Section 24
//AccuracyRoll (AccuracyRoll) package { import flash.events.*; import flash.display.*; import flash.text.*; public class AccuracyRoll extends MovieClip { private var frameCount:int;// = 0 public var accuracy:TextField; public function AccuracyRoll(_arg1:String=""):void{ addEventListener(Event.ENTER_FRAME, onFrame); accuracy.text = _arg1; } private function onFrame(_arg1:Event):void{ frameCount++; if (frameCount > 40){ if (parent != null){ parent.removeChild(this); }; removeEventListener(Event.ENTER_FRAME, onFrame); } else { if (frameCount <= 10){ this.alpha = (frameCount * 0.1); } else { if (frameCount > 30){ this.alpha = ((40 - frameCount) * 0.1); } else { this.alpha = 1; }; }; }; } } }//package
Section 25
//AdventurerJoinDialog (AdventurerJoinDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class AdventurerJoinDialog extends MovieClip { public var no_btn:MovieClip; public var yes_btn:MovieClip; public var dialogue:TextField; public var charName:TextField; public var charGraphic:CharGraphic; private var char:PC_Adventurer; public function AdventurerJoinDialog(_arg1:int):void{ char = new PC_Adventurer(dm.main.pc_party); switch (_arg1){ case Horde.greenskins: default: dialogue.text = "\"We came to end this madness, but we were ambushed, and my allies slain. I was able to avenge them, but not before being afflicted by the soul-twisting magicks of the orcs. I can feel it.. I do not have much time left. To die in battle is the only dignity left to me.\""; break; case Horde.undead: dialogue.text = "\"A great host of undead fell upon my party, and I was the only survivor. I was not unscathed, however.. my flesh pierced by a lich's black blade. The wound seeps and festers, and I know full well there is no recovering from such an injury. I can hope only for vengeance.\""; break; case Horde.creatures: dialogue.text = "\"Their attacks were relentless.. my allies and I fell beneath their raking claws and vile secretions. The creatures thought me dead, and I soon will be. I can feel the cursed poison in my blood.. before long it will reach my heart. But I refuse to go meekly into death's embrace.\""; break; case Horde.cultists: dialogue.text = "They appeared suddenly.. otherwordly monsters unlike any I have seen before. I was lucky to escape, my fellows cut down in seconds. They had not forgotten me, though. Their magics probed for me, found me, and.. hurt me. I am no longer whole, and know that I will not live long.\""; break; case Horde.dwarves: dialogue.text = "\"We were surprised to see them.. and fatally slow to defend ourselves. When the last dwarf was slain, I found I was the last of my party still standing. I fear it is not for long. In my mind's eye all I can see is one of their pagan runes, growing ever larger. I am cursed to die.\""; break; }; charName.text = char.charname; dmf.embolden(charName); charGraphic.setFrame(char.portrait); this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); this.no_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); no_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickNo); } function clickYes(_arg1:MouseEvent):void{ if (parent != null){ dm.main.pc_party.members.push(char); dm.main.saveParty(); cleanup(); parent.removeChild(this); }; } function clickNo(_arg1:MouseEvent):void{ if (parent != null){ cleanup(); parent.removeChild(this); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ clickYes(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ clickNo(null); }; }; } } }//package
Section 26
//AllyDiedDialog (AllyDiedDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class AllyDiedDialog extends MovieClip { public var yes_btn:MovieClip; public var dlg_text:TextField; public var charName:TextField; public var charGraphic:CharGraphic; public function AllyDiedDialog(_arg1:PlayerCharacter):void{ dlg_text.text = (("Your ally, " + _arg1.charname) + ", has succumbed to his injuries and died. His last words were a whispered \"Thank you.\"\n\nThe party build him a cairn from nearby loose stones, then continue on with their quest."); charName.text = _arg1.charname; dmf.embolden(charName); charGraphic.setFrame(_arg1.portrait); yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } function clickOkay(_arg1:MouseEvent):void{ if (parent != null){ parent.removeChild(this); cleanup(); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.ENTER)) || ((_arg1.keyCode == Keyboard.ESCAPE)))){ clickOkay(null); }; } } }//package
Section 27
//Armor (Armor) package { public class Armor extends Equipment { private var _type:int;// = 0 static const light = 0; static const medium = 1; static const heavy = 2; static const special = 3; public function Armor(){ item_name = "Armor"; item_level = 1; type = Armor.light; } public function get type():int{ return (this._type); } public function set type(_arg1:int):void{ this._type = _arg1; } public function modifyBaseArmorForSlot():void{ if (!base_armor_rating){ return; }; var _local1:Number = getModForSlot(slot); base_armor_rating = Math.round((base_armor_rating * _local1)); } override public function getItemTypeString(){ return ("Armor"); } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Thick", 1.4]); prefixes.push(["Soothing", 5]); prefixes.push(["Purifying", 30]); suffixes.push(["Reflection", 10]); suffixes.push(["Tenacity", 30]); suffixes.push(["Might", base_item_stat_bonus]); suffixes.push(["Deftness", base_item_stat_bonus]); } override public function itemStatsString(_arg1:String):String{ if (armor_rating){ _arg1 = (_arg1 + (String(armor_rating) + " Armor Rating\n")); }; return (super.itemStatsString(_arg1)); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } public function scaleArmorForMaterial(_arg1:int){ var _local2:* = (1 + ((_arg1 + 1) * 0.05)); armor_rating = Math.round((armor_rating * _local2)); } override public function generateItem(_arg1:int):void{ var _local2:* = false; var _local3:* = false; getItemModifiers(); if (item_rarity == Item.green){ if (dmf.randomNum(0, 100) >= 50){ _local3 = true; } else { _local2 = true; }; }; if ((((item_rarity == Item.blue)) || (_local3))){ prefix = rollForPrefix(item_rarity); }; if ((((item_rarity == Item.blue)) || (_local2))){ suffix = rollForSuffix(item_rarity); }; armor_rating = scaleArmorForLevel(Math.ceil((base_armor_rating * (1 + (base_armor_mod / 100))))); if (prefix >= 0){ applyPrefix(); }; if (suffix >= 0){ applySuffix(); }; if (((materials.length) && ((item_rarity < Item.purple)))){ material = rollForMaterial(item_rarity, materials); scaleArmorForMaterial(material); } else { material = -1; }; if (material >= 0){ item_name = ((materials[material] + " ") + item_name); }; if (prefix >= 0){ item_name = ((prefixes[prefix][0] + " ") + item_name); }; if (suffix >= 0){ item_name = ((item_name + " of ") + suffixes[suffix][0]); }; if (item_rarity == Item.grey){ item_name = ((grey_name + " ") + item_name); }; } } }//package
Section 28
//armor_buff_effect (armor_buff_effect) package { import flash.display.*; public dynamic class armor_buff_effect extends MovieClip { public var shield:MovieClip; public function armor_buff_effect(){ addFrameScript(0, frame1, 4, frame5, 9, frame10, 49, frame50); } function frame1(){ dm.sound.play(SoundControl.armorBuff); } function frame5(){ this.shield.gotoAndStop(1); } function frame10(){ this.shield.gotoAndPlay(2); } function frame50(){ this.stop(); } } }//package
Section 29
//armor_buff_sound (armor_buff_sound) package { import flash.media.*; public dynamic class armor_buff_sound extends Sound { } }//package
Section 30
//arrow_fire_sound (arrow_fire_sound) package { import flash.media.*; public dynamic class arrow_fire_sound extends Sound { } }//package
Section 31
//basilisk_sound (basilisk_sound) package { import flash.media.*; public dynamic class basilisk_sound extends Sound { } }//package
Section 32
//battle_start2 (battle_start2) package { import flash.media.*; public dynamic class battle_start2 extends Sound { } }//package
Section 33
//BattleActionsBar (BattleActionsBar) package { import flash.display.*; public dynamic class BattleActionsBar extends Sprite { public var retreat_all_skill:SkillIcon; public var pass_skill:SkillIcon; public var retreat_skill:SkillIcon; } }//package
Section 34
//Battlefield (Battlefield) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.geom.*; import flash.ui.*; import flash.filters.*; public class Battlefield extends MovieClip { const color_red:uint = 0xE90000; const color_white:uint = 0xFFFFFF; const miss_animation_frame = 8; const immune_animation_frame = 9; const stunned_animation_frame = 10; const pass_animation_frame = 11; const max_blur = 30; const blur_steps = 3; const PASS_TURN_DELAY = 600; public var bg:MovieClip; public var messages:BattleMessageBox; public var active_info_panel:BattleInfoPanel; public var target_info_panel:BattleInfoPanel; public var options_btn:OptionsButton; public var help_btn:HelpButton; public var initDisplay:InitiativeList; public var actionsbar:BattleActionsBar; public var selected_skill_text:TextField; public var skillbar:SkillBar; public var waveField:TextField; public var pc1:EmptyPortrait; public var pc2:EmptyPortrait; public var pc3:EmptyPortrait; public var pc4:EmptyPortrait; public var pc5:EmptyPortrait; public var pc6:EmptyPortrait; public var npc1:EmptyPortrait; public var npc2:EmptyPortrait; public var npc3:EmptyPortrait; public var npc4:EmptyPortrait; public var npc5:EmptyPortrait; public var npc6:EmptyPortrait; public var currentWave:int;// = 1 var hover:Character; var horde:Horde; var pc_party:Party; var pc_portraits:Array; var npc_portraits:Array; var speedlist:Array; var turn:int;// = 0 var combat_grid:Array; var phl:CurrentPortraitHighlight; var valid_targets:Array; var valid_targets_portraits:Array; var playerTargetPos:int;// = -1 private var bonusAttackPending:Boolean;// = false private var bonusAttackTarget:Character; private var bonusAttacker:Character; private var errorCode:int;// = 0 var do_eor:Boolean;// = false var retreatAll:Boolean;// = false var delayedHit:int;// = -1 var delayedHitsDamage:Array; var delayedHitsSkill:Array; var delayedHitsTarget:Array; var delayedHitsAttacker:Array; var delayedHitsDelay:int;// = 300 var currentBlur:int;// = 0 var blurTimer:Timer; var usedSkill:Boolean;// = false var hadMonsterDelay:Boolean;// = false var playerRegenTimer:Timer; var monsterTurnDelayTimer:Timer; private var numTargets:int;// = 0 var doLethalAnim:Boolean;// = false var turnDelayTimer:Timer; private var exitTimer:Timer; private var exitedSafely:Boolean; var doNothingTimer:Timer; var passing:Boolean;// = false public static var damageSpongePlayer:PlayerCharacter; public static var damageSpongeMonster:MonsterCharacter; public function Battlefield(){ pc_portraits = new Array(); npc_portraits = new Array(); speedlist = new Array(11); combat_grid = new Array(3); valid_targets = new Array(); valid_targets_portraits = new Array(); delayedHitsDamage = new Array(); delayedHitsSkill = new Array(); delayedHitsTarget = new Array(); delayedHitsAttacker = new Array(); super(); pc1.pos = 1; pc2.pos = 2; pc3.pos = 3; pc4.pos = 4; pc5.pos = 5; pc6.pos = 6; npc1.pos = 1; npc2.pos = 2; npc3.pos = 3; npc4.pos = 4; npc5.pos = 5; npc6.pos = 6; damageSpongePlayer = null; damageSpongeMonster = null; waveField.mouseEnabled = false; waveField.text = ""; addEventListener(Event.ADDED_TO_STAGE, added); } private function addAccuracyRoll(_arg1:int):void{ var _local2:String = String(_arg1); var _local3:AccuracyRoll = new AccuracyRoll(_local2); _local3.x = 424; _local3.y = 427.5; addChild(_local3); } private function initWave():void{ var _local1:CharacterPortrait; var _local2:MonsterCharacter; for each (_local1 in npc_portraits) { if (_local1 == null){ } else { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; _local1.removeEventListener(MouseEvent.MOUSE_OVER, mousedOverEvent); _local1.removeEventListener(MouseEvent.MOUSE_OVER, mouseMoveEvent); _local1.removeEventListener(MouseEvent.MOUSE_OUT, mousedOutEvent); }; }; Campaign.setForSurvivalWave(horde, currentWave); for each (_local2 in horde.members) { addNewPortrait(_local2); }; CalculateInitiative(false); updateCombatGrid(); initDisplay.refill(speedlist[turn]); messages.addMessage((("Wave " + currentWave) + " has arrived!"), "Defeat these enemies!"); waveField.text = ("WAVE " + currentWave); dmf.embolden(waveField); dmf.setLetterSpacing(waveField, 6); } function added(_arg1:Event):void{ var _local3:*; removeEventListener(Event.ADDED_TO_STAGE, added); var _local2:uint = 8; if (((DungeonMain.showHints) && (!(Dungeon.hintShown(_local2))))){ _local3 = new HintDialog("Battle Start!", "You have encountered a group of enemies, and must now face them in battle. \n\nFirst, set your party's formation by dragging their character portraits. Melee fighters should be in the front row, and more vulnerable ranged fighters or spellcasters in the back row. The front row protects the back row from enemy melee attacks.", true, true); DungeonMain.hints = (DungeonMain.hints + _local2); stage.addChild(_local3); dm.main.saveInterface(); }; if (DungeonMain.combatBlur){ entryBlur(); }; } private function setBlur(_arg1:int):void{ var _local2:BlurFilter = new BlurFilter(); _local2.blurX = _arg1; _local2.blurY = _arg1; _local2.quality = BitmapFilterQuality.LOW; this.filters = [_local2]; currentBlur = _arg1; } private function entryBlur():void{ setBlur(max_blur); blurTimer = new Timer(50, blur_steps); blurTimer.addEventListener(TimerEvent.TIMER, unBlurStep); blurTimer.addEventListener(TimerEvent.TIMER_COMPLETE, unBlurDone); blurTimer.start(); } function unBlurStep(_arg1:TimerEvent):void{ setBlur((currentBlur - Math.round((max_blur / blur_steps)))); } function unBlurDone(_arg1:TimerEvent):void{ blurTimer.removeEventListener(TimerEvent.TIMER, unBlurStep); blurTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, unBlurDone); this.filters = null; } private function exitBlur(_arg1:TimerEvent=null):void{ blurTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, exitBlur); currentBlur = 0; blurTimer = new Timer(50, blur_steps); blurTimer.addEventListener(TimerEvent.TIMER, blurStep); blurTimer.addEventListener(TimerEvent.TIMER_COMPLETE, blurDone); blurTimer.start(); } function blurStep(_arg1:TimerEvent):void{ setBlur((currentBlur + Math.round((max_blur / blur_steps)))); } function blurDone(_arg1:TimerEvent):void{ blurTimer.removeEventListener(TimerEvent.TIMER, blurStep); blurTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, blurDone); setBlur(max_blur); } public function addNewPortrait(_arg1:Character):CharacterPortrait{ var _local3:String; var _local4:Array; var _local2:CharacterPortrait = new CharacterPortrait(); _local2.setChar(_arg1); if ((_arg1 is MonsterCharacter)){ _local3 = "npc"; _local4 = npc_portraits; } else { if ((_arg1 is PlayerCharacter)){ _local3 = "pc"; _local4 = pc_portraits; } else { return (_local2); }; }; var _local5:* = EmptyPortrait(getChildByName((_local3 + String(_arg1.pos)))); if (_local5 == null){ return (null); }; _local5.empty.addChild(_local2); _local2.addEventListener(MouseEvent.MOUSE_OVER, mousedOverEvent); _local2.addEventListener(MouseEvent.MOUSE_OVER, mouseMoveEvent); _local2.addEventListener(MouseEvent.MOUSE_OUT, mousedOutEvent); _local4.push(_local2); _arg1.portraitRef = _local2; return (_local2); } private function combatGridToPos(_arg1:int, _arg2:int):int{ if ((((_arg2 < 2)) && ((_arg2 >= 0)))){ return (((_arg1 + 1) + (_arg2 * 3))); }; if (_arg2 < 4){ return (((_arg1 + 1) + ((_arg2 - 2) * 3))); }; return (-1); } public function layoutBoard():void{ var _local1:EmptyPortrait; var _local2:int; var _local3:int; var _local4:PlayerCharacter; var _local7:*; var _local8:*; var _local9:int; var _local10:Skill; turn = -1; for each (_local4 in pc_party.members) { _local4.retreating = false; _local4.retreated = false; _local4.hadCombatTurn = false; if (!(_local4 is PC_Adventurer)){ _local8 = _local4.gear[Equipment.weapon]; _local9 = 1; if (_local4.skills[0] != null){ _local9 = _local4.skills[0].position; }; if (_local8 != null){ if ((_local8 is MeleeWeapon)){ _local4.skills[0] = new sWeaponAttack(_local4); } else { if ((_local8 is RangedWeapon)){ _local4.skills[0] = new sRangedAttack(_local4); } else { if ((_local8 is MageWeapon)){ _local4.skills[0] = new sMageAttack(_local4); }; }; }; _local4.skills[0].active = true; } else { _local4.skills[0] = new sUnarmedAttack(_local4); _local4.skills[0].active = true; }; _local4.skills[0].position = _local9; }; if ((_local4 is PC_Cleric)){ for each (_local10 in _local4.skills) { if ((_local10 is sClericSmite)){ _local10.stun_percent = PC_Cleric(_local4).wrath; }; }; }; _local7 = new CharacterPortrait(); _local7.setChar(_local4); if (_local4.pos == 0){ pc_party.setMemberPos(_local4, 1); }; _local1 = EmptyPortrait(getChildByName(("pc" + String(_local4.pos)))); _local7.x = _local1.x; _local7.y = _local1.y; _local4.portraitRef = _local7; this.addChild(_local7); _local7.addEventListener(MouseEvent.MOUSE_DOWN, startDragging); _local7.addEventListener(MouseEvent.MOUSE_UP, stopDragging); _local7.addEventListener(MouseEvent.MOUSE_OVER, mousedOverEvent); _local7.addEventListener(MouseEvent.MOUSE_OVER, mouseMoveEvent); _local7.addEventListener(MouseEvent.MOUSE_OUT, mousedOutEvent); pc_portraits.push(_local7); }; _local2 = (horde.members.length - 1); while (_local2 >= 0) { if (horde.members[_local2].summoned){ horde.members.splice(_local2, 1); } else { horde.members[_local2].clearStatusEffects(); horde.members[_local2].resetSkills(); horde.members[_local2].health = horde.members[_local2].health_max; horde.members[_local2].power = horde.members[_local2].power_max; horde.members[_local2].hadCombatTurn = false; addNewPortrait(horde.members[_local2]); }; _local2--; }; var _local5:* = "Adjust Party Formation"; var _local6:* = "Click here when ready to begin battle!"; messages.addMessage(_local5, _local6); messages.addEventListener(MouseEvent.MOUSE_DOWN, battleReady); selected_skill_text.text = ""; removeChild(actionsbar); removeChild(skillbar); removeChild(active_info_panel); removeChild(target_info_panel); CalculateInitiative(); initDisplay.turnOf(speedlist[0], false); } public function cleanup():void{ var _local1:*; var _local2:*; help_btn.cleanup(); options_btn.cleanup(); active_info_panel.cleanup(); target_info_panel.cleanup(); skillbar.cleanup(); if (dm.stage != null){ _local2 = dm.stage.getChildByName("tooltip_skill"); if (_local2 != null){ stage.removeChild(_local2); }; }; messages.cleanup(); removeEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent); if (stage != null){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); }; actionsbar.pass_skill.cleanup(); actionsbar.pass_skill.removeEventListener(MouseEvent.MOUSE_DOWN, clickPassTurn); actionsbar.retreat_skill.cleanup(); actionsbar.retreat_skill.removeEventListener(MouseEvent.MOUSE_DOWN, clickRetreat); actionsbar.retreat_all_skill.cleanup(); actionsbar.retreat_all_skill.removeEventListener(MouseEvent.MOUSE_DOWN, clickRetreatAll); _local1 = 0; while (_local1 < npc_portraits.length) { npc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OVER, mousedOverEvent); npc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OVER, mouseMoveEvent); npc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OUT, mousedOutEvent); _local1++; }; _local1 = 0; while (_local1 < pc_portraits.length) { pc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OVER, mousedOverEvent); pc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OVER, mouseMoveEvent); pc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_OUT, mousedOutEvent); _local1++; }; initDisplay.cleanup(); initDisplay = null; removeEventListener(Event.ENTER_FRAME, onFrame); } private function CalculateInitiative(_arg1:Boolean=true):Boolean{ var _local5:int; var _local6:int; var _local11:int; var _local12:int; var _local13:*; var _local2:int; var _local3:int; var _local4:Array = pc_party.members.concat(horde.members); var _local7:int; var _local8:Character = speedlist[turn]; var _local9:Array = speedlist; speedlist = new Array(); _local2 = (_local4.length - 1); while (_local2 >= 0) { _local5 = 0; _local6 = 0; _local3 = (_local4.length - 1); while (_local3 >= 0) { if (_local4[_local3] == null){ } else { _local11 = _local4[_local3].getQuickness(); if (_local11 == -1){ } else { if (_local11 >= _local6){ _local6 = _local11; _local5 = _local3; }; }; }; _local3--; }; speedlist.push(_local4[_local5]); _local4.splice(_local5, 1); _local2--; }; if (!_arg1){ _local12 = -1; _local2 = 0; while (_local2 < speedlist.length) { if (speedlist[_local2] == _local8){ _local12 = _local2; }; _local2++; }; if (_local12 != -1){ turn = _local12; }; } else { turn = 0; }; initDisplay.setData(speedlist); var _local10:* = false; if (_local9.length != speedlist.length){ _local10 = true; } else { _local13 = 0; while (_local13 < _local9.length) { if (_local9[_local13] != speedlist[_local13]){ _local10 = true; break; }; _local13++; }; }; if (_local10){ updateCombatGrid(); }; return (_local10); } public function powerPreview(){ if ((speedlist[turn] is MonsterCharacter)){ return; }; PortraitFromCharacter(speedlist[turn]).endPowerCostPreview(); var _local1:* = skillbar.getSelectedSkill().power_cost; if (skillbar.getSelectedSkill().costsRemainingPower){ _local1 = speedlist[turn].power; }; PortraitFromCharacter(speedlist[turn]).startPowerCostPreview(_local1); } private function battleReady(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:Array; var _local7:MonsterCharacter; var _local8:String; messages.removeEventListener(MouseEvent.MOUSE_DOWN, battleReady); messages.clearAll(); if (pc_party.campaign == Campaign.SURVIVAL){ currentWave = 1; initWave(); }; turn = 0; addEventListener(Event.ENTER_FRAME, onFrame); phl = new CurrentPortraitHighlight(); addChild(phl); _local2 = 0; while (_local2 < pc_party.members.length) { pc_portraits[_local2].removeEventListener(MouseEvent.MOUSE_DOWN, startDragging); pc_portraits[_local2].removeEventListener(MouseEvent.MOUSE_UP, stopDragging); if (this.contains(pc_portraits[_local2])){ removeChild(pc_portraits[_local2]); }; pc_portraits[_local2].x = 0; pc_portraits[_local2].y = 0; _local5 = EmptyPortrait(getChildByName(("pc" + String(pc_party.members[_local2].pos)))); if (_local5 != null){ _local5.empty.addChild(pc_portraits[_local2]); }; pc_portraits[_local2].addHoverListeners(); _local2++; }; actionsbar.pass_skill.addEventListener(MouseEvent.MOUSE_DOWN, clickPassTurn); actionsbar.retreat_skill.addEventListener(MouseEvent.MOUSE_DOWN, clickRetreat); actionsbar.retreat_all_skill.addEventListener(MouseEvent.MOUSE_DOWN, clickRetreatAll); UpdateInfoPanels(); updateCombatGrid(); this.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent); if (pc_party.campaign == Campaign.DELUXE){ if (horde.isCampaignBoss()){ addSpeechBubble(horde.members[0], "Interlopers. You will regret coming here."); } else { if (((horde.hasFearSower()) && ((dmf.randomNum(0, 100) < 75)))){ _local6 = new Array(); _local6.push("Shudder at the coming of the Dreadfather!"); _local6.push("These lands are ripe for the harvest."); _local6.push("You will know fear. Even if we must teach you."); _local6.push("There is no victory for you. Abandon hope."); _local6.push("You are not ready. You will never be ready."); _local6.push("We have built an unstoppable army, in thrall to terror. You cannot win."); _local6.push("Do you wish to see the pale flame of your life extinguished here, so far from your home?"); _local6.push("There is no going back for you. Your doom is here."); _local6.push("He would still welcome you, if only you would fear him. What you call courage is merely ignorance."); _local6.push("He is coming, and nothing you hold dear is safe."); _local6.push("Do not think you will rest in peace. We will amuse ourselves with you."); _local6.push("No god you call on will hear you. No strength of arms will prevail."); _local6.push("A new day has come, and everything you have loved is ended. Give in to despair."); _local7 = horde.members[(horde.members.length - 1)]; _local8 = _local6[dmf.randomNum(0, (_local6.length - 1))]; addSpeechBubble(_local7, _local8); }; }; }; RunTurn(); } private function updateCombatGrid():void{ var _local3:Character; var _local1:int; var _local2:int; _local1 = 0; while (_local1 < 3) { combat_grid[_local1] = new Array(4); _local2 = 0; while (_local2 < 4) { combat_grid[_local1][_local2] = null; _local2++; }; _local1++; }; for each (_local3 in pc_party.members) { AddCharToCombatGrid(_local3); }; for each (_local3 in horde.members) { AddCharToCombatGrid(_local3); }; } private function AddCharToCombatGrid(_arg1:Character):void{ var _local2:int; var _local3:int; if (_arg1 == null){ return; }; if (_arg1.pos > 3){ _local2 = (_arg1.pos % 4); } else { _local2 = (_arg1.pos - 1); }; _local3 = (Math.ceil((_arg1.pos / 3)) - 1); if ((_arg1 is PlayerCharacter)){ _local3 = (_local3 + 2); }; combat_grid[_local2][_local3] = _arg1; } function onMouseWheelEvent(_arg1:MouseEvent):void{ if ((speedlist[turn] is MonsterCharacter)){ return; }; if (_arg1.delta > 0){ skillbar.decrementSkill(); } else { if (_arg1.delta < 0){ skillbar.incrementSkill(); }; }; ValidTargetsForPlayer(skillbar.getSelectedSkill()); if (hover != null){ drawEffectedTargets(); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.SPACE){ PassTurn(); } else { if (_arg1.charCode == 114){ clickRetreat(null); } else { if (String.fromCharCode(_arg1.charCode) == "1"){ skillbar.setSelectedSkillByPosition(1); } else { if (String.fromCharCode(_arg1.charCode) == "2"){ skillbar.setSelectedSkillByPosition(2); } else { if (String.fromCharCode(_arg1.charCode) == "3"){ skillbar.setSelectedSkillByPosition(3); } else { if (String.fromCharCode(_arg1.charCode) == "4"){ skillbar.setSelectedSkillByPosition(4); } else { if (String.fromCharCode(_arg1.charCode) == "5"){ skillbar.setSelectedSkillByPosition(5); } else { if (String.fromCharCode(_arg1.charCode) == "6"){ skillbar.setSelectedSkillByPosition(6); } else { if (((DungeonMain.debug) && ((_arg1.charCode == 107)))){ speedlist[turn].health = 0; initDisplay.removeDead(); EndTurn(); }; }; }; }; }; }; }; }; }; if (hover != null){ drawEffectedTargets(); }; } private function UpdateInfoPanels(_arg1:Character=null){ if (_arg1 == null){ _arg1 = speedlist[turn]; }; if (turn != -1){ if (!this.contains(active_info_panel)){ addChild(active_info_panel); }; active_info_panel.setChar(_arg1); }; if (hover != null){ if (!this.contains(target_info_panel)){ addChild(target_info_panel); }; target_info_panel.setChar(hover); } else { if (this.contains(target_info_panel)){ removeChild(target_info_panel); }; }; } private function updateCurrentTurnHighlight():void{ var _local1:Character = speedlist[turn]; if ((_local1 is PlayerCharacter)){ phl.x = EmptyPortrait(getChildByName(("pc" + _local1.pos))).x; phl.y = EmptyPortrait(getChildByName(("pc" + _local1.pos))).y; } else { if ((_local1 is MonsterCharacter)){ phl.x = EmptyPortrait(getChildByName(("npc" + _local1.pos))).x; phl.y = EmptyPortrait(getChildByName(("npc" + _local1.pos))).y; }; }; } private function RetreatCharacter(_arg1:PlayerCharacter):void{ _arg1.retreating = false; _arg1.retreated = true; _arg1.clearStatusEffects(); if (_arg1.summoned){ messages.addMessage((_arg1.charname + " disappears!"), "Unsummoned"); } else { messages.addMessage((_arg1.charname + " leaves the battle!"), ""); }; PortraitFromCharacter(_arg1).setRetreated(); initDisplay.removeDead(); EndTurn(); } private function cullIntimidatingTargets(_arg1:Array, _arg2:Skill):Array{ if (_arg2.hitsAllEnemies){ return (_arg1); }; if (_arg2.hitsAllFriendlies){ return (_arg1); }; if (_arg2.targetsSelf){ return (_arg1); }; var _local3:int = (_arg1.length - 1); while (_local3 >= 0) { if (_arg1.length == 1){ break; }; if ((_arg1[_local3] is PlayerCharacter)){ if (_arg1[_local3].intimidating){ _arg1.splice(_local3, 1); trace("target removed (intimidating)"); } else { if ((((_arg1[_local3] is PC_Rogue)) && (PC_Rogue(_arg1[_local3]).elusiveness))){ if (dmf.randomNum(0, 99) < PC_Rogue(_arg1[_local3]).elusiveness){ addFloater(_arg1[_local3], "Elusiveness!"); _arg1.splice(_local3, 1); trace("target removed (elusiveness)"); }; }; }; }; _local3--; }; trace((_arg1.length + " targets remaining")); return (_arg1); } function monsterTurnDelayComplete(_arg1:Event):void{ hadMonsterDelay = true; monsterTurnDelayTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, monsterTurnDelayComplete); trace(("monsterTurnDelayComplete: " + speedlist[turn].charname)); if (speedlist[turn].health <= 0){ hadMonsterDelay = false; initDisplay.removeDead(); EndTurn(); return; }; RunTurn(); } private function playerRegenShown(_arg1:Event):void{ playerRegenTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, playerRegenShown); if (usedSkill){ return; }; PortraitFromCharacter(speedlist[turn]).update(); if (speedlist[turn].health <= 0){ EndTurn(); }; } private function doTurnRegen(_arg1:Character, _arg2:CharacterPortrait):Boolean{ var _local5:*; var _local6:String; var _local7:String; var _local3:* = 0; var _local4:* = 0; _local4 = _arg1.getPowerRegen(); if ((((_arg1 is PlayerCharacter)) && (pc_party.tactical))){ _local4 = 0; }; if (_arg1.cancelPowerRegen > 0){ _local4 = 0; _arg1.cancelPowerRegen--; }; _arg1.powerRegenMod = 1; if (_arg1.cancelHealthRegen > 0){ _local3 = 0; _arg1.cancelHealthRegen--; } else { _local3 = _arg1.getHealthRegen(); }; if (_arg1.poisoned){ _local5 = _arg1.poisoned; _local3 = (_local3 - _local5); if (_arg2 != null){ _arg2.addPortraitAnimation(PortraitAnimation.poison); }; _local6 = (((_arg1.charname + " takes ") + _local5) + " damage from poison!"); _local7 = ""; if ((_arg1.health + _local3) <= 0){ _local7 = (_arg1.charname + " has died!"); }; messages.addMessage(_local6, _local7); }; if (_arg2 != null){ _arg2.setHealthPreview(-(_local3)); _arg2.setPowerPreview(-(_local4)); }; _arg1.increaseHealth(_local3); _arg1.increasePower(_local4); UpdateInfoPanels(); return (true); } private function RunTurn():void{ var _local1:*; var _local2:*; var _local3:*; var _local7:Boolean; var _local8:Skill; var _local9:*; var _local10:Array; var _local11:Character; var _local12:Character; var _local13:int; var _local14:*; var _local15:*; var _local16:*; var _local17:int; var _local18:Array; var _local19:*; var _local20:*; var _local21:*; var _local22:SkillIcon; var _local23:*; var _local4:* = 0; errorCode = 1330; while ((((((((speedlist[turn] == null)) || ((speedlist[turn].health <= 0)))) || (speedlist[turn].hadCombatTurn))) || ((((speedlist[turn] is PlayerCharacter)) && (PlayerCharacter(speedlist[turn]).retreated))))) { IncrementTurn(); ++_local4; if (_local4 > speedlist.length){ EndBattle(); }; }; errorCode = 1331; var _local5:Character = speedlist[turn]; if (_local5.portraitRef == null){ _local5.portraitRef = PortraitFromCharacter(_local5); }; var _local6:CharacterPortrait = _local5.portraitRef; if (_local5.temp_damage_resistance){ _local5.temp_damage_resistance = 0; }; if (_local5.cannotDie){ _local5.cannotDie--; }; if (_local5.invulnerable){ _local5.invulnerable--; }; if (_local5.hiding){ _local5.hiding = false; _local6.setHiding(false); }; if (_local5.woundsRestorePower){ _local5.woundsRestorePower = 0; }; if (((!((damageSpongeMonster == null))) && ((damageSpongeMonster.health <= 0)))){ damageSpongeMonster = null; }; if (((!((damageSpongePlayer == null))) && ((damageSpongePlayer.health <= 0)))){ damageSpongePlayer = null; }; errorCode = 1335; usedSkill = false; updateCurrentTurnHighlight(); errorCode = 1336; trace(((("expiring sponges - c = " + String(_local5)) + ", damageSpongeMonster = ") + String(damageSpongeMonster))); if ((((_local5 is PlayerCharacter)) && ((damageSpongePlayer == _local5)))){ damageSpongePlayer = null; } else { if ((((_local5 is MonsterCharacter)) && ((damageSpongeMonster == _local5)))){ damageSpongeMonster = null; }; }; UpdateInfoPanels(); errorCode = 1337; if ((((_local5 is MonsterCharacter)) && (hadMonsterDelay))){ if (_local6 != null){ _local6.update(); }; } else { _local7 = doTurnRegen(_local5, _local6); if (!_local7){ return; }; }; errorCode = 1338; if (_local5.stunned_duration > 0){ errorCode = 1339; _local5.stunned_duration--; if (_local6 != null){ _local6.addAnimationFrame(stunned_animation_frame, (PASS_TURN_DELAY + 500)); }; messages.addMessage((_local5.charname + " is stunned!"), ""); EndTurn(); return; }; if ((((_local5 is MonsterCharacter)) && (!(hadMonsterDelay)))){ errorCode = 1342; monsterTurnDelayTimer = new Timer(300, 1); monsterTurnDelayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, monsterTurnDelayComplete); monsterTurnDelayTimer.start(); return; }; hadMonsterDelay = false; errorCode = 1350; if ((_local5 is PlayerCharacter)){ if (PlayerCharacter(_local5).retreating){ RetreatCharacter(PlayerCharacter(_local5)); return; }; if (retreatAll){ clickRetreat(null); return; }; }; errorCode = 1352; if ((_local5 is PlayerCharacter)){ playerRegenTimer = new Timer(500, 1); playerRegenTimer.addEventListener(TimerEvent.TIMER_COMPLETE, playerRegenShown); playerRegenTimer.start(); }; if ((_local5 is MonsterCharacter)){ errorCode = 1360; if (!_local5.skills.length){ trace((("mindless " + _local5.charname) + " passing due to no skills")); PassTurn(); return; }; _local9 = null; _local10 = new Array(0); _local13 = 0; if (MonsterCharacter(_local5).mindless){ _local1 = 0; while (_local1 < _local5.skills.length) { _local8 = _local5.skills[_local1]; _local9 = BattleFunctions.findMonsterTargets(MonsterCharacter(_local5), _local8, horde, combat_grid, pc_party); if (_local8.makeDamageSponge){ _local14 = 0; _local15 = 0; while (_local15 < horde.members.length) { if (horde.members[_local15].health > 0){ _local14++; }; _local15++; }; if ((((_local9.length > 1)) || ((_local14 > 1)))){ _local10.push(_local8); }; } else { if (_local9.length >= 1){ _local10.push(_local8); }; }; _local1++; }; if (!_local10.length){ trace((("mindless " + _local5.charname) + " passing due to no valid skills")); PassTurn(); return; }; if (_local10.length == 1){ _local8 = _local10[0]; } else { _local8 = _local10[dm.randomNum(0, (_local10.length - 1))]; }; _local9 = BattleFunctions.findMonsterTargets(MonsterCharacter(_local5), _local8, horde, combat_grid, pc_party); _local9 = cullIntimidatingTargets(_local9, _local8); _local12 = _local9[0]; if (((_local8.targetsFriendlies) && ((_local9.length > 1)))){ if (_local8.makeDamageSponge){ _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].getEffectiveHealth() > _local13){ _local13 = _local9[_local1].getEffectiveHealth(); _local12 = _local9[_local1]; }; _local1++; }; } else { if (_local8.damage){ _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].health > _local13){ _local13 = _local9[_local1].health; _local12 = _local9[_local1]; }; _local1++; }; } else { if (_local8.healing){ _local13 = 9999; _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].health < _local13){ _local13 = _local9[_local1].health; _local12 = _local9[_local1]; }; _local1++; }; }; }; }; _local11 = _local12; } else { _local11 = _local9[dm.randomNum(0, (_local9.length - 1))]; }; } else { _local1 = 0; while (_local1 < _local5.skills.length) { _local8 = _local5.skills[_local1]; _local9 = BattleFunctions.findMonsterTargets(MonsterCharacter(_local5), _local8, horde, combat_grid, pc_party); if (_local9.length >= 1){ _local10.push(_local8); }; _local1++; }; if (!_local10.length){ trace((("intelligent " + _local5.charname) + " passing due to no valid skills")); PassTurn(); return; }; _local16 = false; _local1 = 0; while (_local1 < _local10.length) { if (((_local10[_local1].makeDamageSponge) && ((damageSpongeMonster == null)))){ _local8 = _local10[_local1]; _local16 = true; break; }; _local1++; }; if (!_local16){ _local17 = 0; _local18 = new Array(); _local1 = (_local10.length - 1); while (_local1 >= 0) { if (_local10[_local1].aiPriority > _local17){ _local17 = _local10[_local1].aiPriority; _local18 = new Array(); _local18.push(_local10[_local1]); } else { if (_local10[_local1].aiPriority == _local17){ _local18.push(_local10[_local1]); }; }; _local1--; }; if (_local18.length){ _local10 = _local18; }; _local8 = _local10[dm.randomNum(0, (_local10.length - 1))]; }; if (((((!(_local8.power_cost)) && ((_local8.aiPriority == 5)))) && ((dm.randomNum(0, 500) > 250)))){ _local1 = 0; while (_local1 < _local10.length) { if (((_local10[_local1].power_cost) && (!(_local10[_local1].aiCastCount)))){ _local8 = _local10[_local1]; if (dm.randomNum(0, 500) > 250){ break; }; }; _local1++; }; }; _local9 = BattleFunctions.findMonsterTargets(MonsterCharacter(_local5), _local8, horde, combat_grid, pc_party); _local9 = cullIntimidatingTargets(_local9, _local8); _local12 = _local9[0]; if (((_local8.targetsFriendlies) && ((_local9.length > 1)))){ if (_local8.makeDamageSponge){ _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].getEffectiveHealth() > _local13){ _local13 = _local9[_local1].getEffectiveHealth(); _local12 = _local9[_local1]; }; _local1++; }; } else { if (((_local8.damage) || (_local8.aiTargetHealthiest))){ _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].health > _local13){ _local13 = _local9[_local1].health; _local12 = _local9[_local1]; }; _local1++; }; } else { if (_local8.healing){ _local13 = 9999; _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].health < _local13){ _local13 = _local9[_local1].health; _local12 = _local9[_local1]; }; _local1++; }; }; }; }; _local11 = _local12; } else { _local19 = false; if (_local8.damage){ if (_local8.aiTargetHealthiest){ _local13 = 0; _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].health > _local13){ _local13 = _local9[_local1].health; _local12 = _local9[_local1]; }; _local1++; }; } else { _local13 = 9999; _local1 = 0; while (_local1 < _local9.length) { if (_local9[_local1].getEffectiveHealth() < _local8.damage){ _local11 = _local9[_local1]; _local19 = true; break; } else { if (_local9[_local1].getEffectiveHealth() < _local13){ _local13 = _local9[_local1].getEffectiveHealth(); _local12 = _local9[_local1]; }; }; _local1++; }; }; if (!_local19){ _local11 = _local12; }; }; if (!_local19){ _local11 = _local9[dm.randomNum(0, (_local9.length - 1))]; }; }; }; if (((!((_local8 == null))) && (!((_local11 == null))))){ useMonsterSkill(_local8, _local11); } else { trace(((((_local5.charname + " passing due to lack of skill/target designation. skill=") + _local8) + " target=") + _local11)); PassTurn(); }; } else { if ((_local5 is PlayerCharacter)){ errorCode = 1400; if (_local5.summoned){ actionsbar.retreat_skill.setSkill(new sUnsummon(_local5)); } else { actionsbar.retreat_skill.setSkill(new sRetreat(_local5)); }; if (pc_party.campaign == Campaign.SURVIVAL){ actionsbar.retreat_all_skill.setSkill(new sMenuQuit(_local5)); } else { actionsbar.retreat_all_skill.setSkill(new sRetreatAll(_local5)); }; actionsbar.pass_skill.setSkill(new sPassTurn(_local5)); if (!this.contains(actionsbar)){ addChild(actionsbar); }; this.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent); stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); errorCode = 1401; _local20 = skillbar.x; _local21 = skillbar.y; skillbar = null; skillbar = new SkillBar(); skillbar.x = _local20; skillbar.y = _local21; skillbar.name = "skillbar"; addChild(skillbar); errorCode = 1403; _local1 = 0; while (_local1 < _local5.skills.length) { if (_local5.skills[_local1].active == false){ } else { _local22 = new SkillIcon(); _local22.setSkill(_local5.skills[_local1]); _local22.setOwner(PlayerCharacter(_local5)); skillbar.addIcon(_local22); }; _local1++; }; errorCode = 1405; powerPreview(); errorCode = 1406; ValidTargetsForPlayer(skillbar.getSelectedSkill()); errorCode = 1407; if (hover != null){ drawEffectedTargets(); }; errorCode = 1408; if (((DungeonMain.showHints) && (!(Dungeon.hintShown(64))))){ _local23 = new HintDialog("Player Turn", "It is your character's turn. A turn involves selecting a skill and then a target for the skill. Player characters start with three skills, but may later use up to six.\n\nIf you do not (or cannot) use a skill this turn, you may also Pass or Retreat. Pass means the character takes no action, but recovers power more quickly. Retreat causes the character to leave the battle, and can prevent the total defeat of the party.", true, true); DungeonMain.hints = (DungeonMain.hints + 64); stage.addChild(_local23); dm.main.saveInterface(); }; }; }; } private function addEmptyListeners():void{ var _local2:*; var _local3:PortraitHighlight; var _local1 = 1; while (_local1 <= 6) { if (pc_party.memberInPos(_local1) != null){ } else { _local2 = getChildByName(("pc" + _local1)); _local2.addEventListener(MouseEvent.MOUSE_DOWN, emptyClicked); _local3 = new PortraitHighlight(); _local3.name = "highlight"; _local2.addChild(_local3); }; _local1++; }; } private function removeEmptyListeners():void{ var _local2:*; var _local3:*; var _local1 = 1; while (_local1 <= 6) { _local2 = getChildByName(("pc" + _local1)); _local2.removeEventListener(MouseEvent.MOUSE_DOWN, emptyClicked); _local3 = _local2.getChildByName("highlight"); if (_local3 != null){ _local2.removeChild(_local3); }; _local1++; }; } private function emptyClicked(_arg1:MouseEvent):void{ var _local3:*; var _local2:* = _arg1.currentTarget; trace("emptyClicked"); if (((!((_local2 == null))) && ((_local2 is EmptyPortrait)))){ trace(("target is EmptyPortrait: " + String(_local2.name))); playerTargetPos = _local2.pos; RemoveTargetInfo(); _local3 = skillbar.getSelectedSkill(); useSkill(speedlist[turn], _local3, speedlist[turn]); }; } public function ValidTargetsForPlayer(_arg1:Skill):void{ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local12:*; var _local13:PlayerCharacter; var _local14:MonsterCharacter; var _local15:PlayerCharacter; var _local16:MonsterCharacter; var _local2:* = speedlist[turn]; var _local8:* = false; var _local9:* = false; valid_targets.length = 0; valid_targets_portraits.length = 0; RemoveTargetInfo(); selected_skill_text.text = skillbar.getSelectedSkill().skillname; dm.embolden(selected_skill_text); if (_arg1.usesWeaponRange){ if (_local2.gear[Equipment.weapon]){ if ((_local2.gear[Equipment.weapon] is MeleeWeapon)){ _local9 = true; } else { if ((_local2.gear[Equipment.weapon] is RangedWeapon)){ _local8 = true; }; }; }; }; var _local10:* = PlayerCharacter(_local2).gear[Equipment.weapon]; if (!_arg1.usable()){ selected_skill_text.textColor = color_red; return; }; selected_skill_text.textColor = color_white; if (_arg1.targetsEmpty){ addEmptyListeners(); return; }; if (_arg1.targetsSelf){ _local12 = PortraitFromCharacter(speedlist[turn]); if (((_arg1.targetsFriendlyFrontRow) && ((speedlist[turn].pos > 3)))){ if (IsPlayerMeleeBlocked(speedlist[turn])){ return; }; }; if (_local12 != null){ addPlayerTarget(speedlist[turn]); }; return; }; if (_arg1.targetsFriendlies){ _local5 = 0; for (;_local5 < pc_portraits.length;_local5++) { _local13 = pc_portraits[_local5].char_ref; if (PlayerCharacter(_local13).retreated){ } else { if (((_arg1.targetsSummoned) && (!(_local13.summoned)))){ } else { if (_arg1.resurrects){ if ((((Character(_local13).health > 0)) || ((_local13 is PC_Adventurer)))){ continue; }; } else { if (Character(_local13).health <= 0){ continue; }; }; if (((_arg1.targetsFriendlyFrontRow) && ((_local13.pos > 3)))){ //unresolved if trace("we are blocked"); } else { addPlayerTarget(_local13); }; }; }; }; return; }; if (_arg1.requiresVerticalGap){ trace("finding valid targets for sk.requiresVerticalGap"); if ((_local2 is PlayerCharacter)){ if (_local2.pos > 3){ trace("user in back row"); _local15 = pc_party.memberInPos((_local2.pos - 3)); if (((!((_local15 == null))) && (!(_local15.isInactive())))){ return; }; _local14 = combat_grid[(_local2.pos - 4)][1]; if ((((_local14 == null)) || (_local14.isInactive()))){ _local14 = combat_grid[(_local2.pos - 4)][0]; }; } else { trace("user in front row"); _local16 = combat_grid[(_local2.pos - 1)][1]; if (((!((_local16 == null))) && (!(_local16.isInactive())))){ return; }; _local14 = combat_grid[(_local2.pos - 1)][0]; }; if (_local14 != null){ trace("call PlayerCanHit"); PlayerCanHit(_local14.pos); }; return; }; }; if (((_arg1.rangedAttack) || (_local8))){ _local5 = 1; while (_local5 <= 6) { PlayerCanHit(_local5); _local5++; }; return; }; var _local11:* = IsPlayerMeleeBlocked(PlayerCharacter(_local2)); if ((((_local2.pos < 4)) || ((((_local2.pos > 3)) && (!(_local11)))))){ if (damageSpongeMonster != null){ PlayerCanHit(damageSpongeMonster.pos); }; _local3 = 0; _local5 = 0; while (_local5 < 3) { if (combat_grid[_local5][1] != null){ if (Character(combat_grid[_local5][1]).health > 0){ if (Character(combat_grid[_local5][1]).hiding){ } else { _local3++; _local7 = Character(combat_grid[_local5][1]).pos; }; }; }; _local5++; }; if (_local3 == 1){ PlayerCanHit(_local7); } else { if (_local3 > 1){ if (_local2.pos < 4){ PlayerCanHit((_local2.pos + 3)); if ((_local2.pos + 4) <= 6){ PlayerCanHit((_local2.pos + 4)); }; if ((_local2.pos + 2) >= 4){ PlayerCanHit((_local2.pos + 2)); }; } else { PlayerCanHit(_local2.pos); if ((_local2.pos + 1) <= 6){ PlayerCanHit((_local2.pos + 1)); }; if ((_local2.pos - 1) >= 4){ PlayerCanHit((_local2.pos - 1)); }; }; } else { if (_local3 == 0){ _local4 = 0; _local5 = 0; while (_local5 < 3) { if (combat_grid[_local5][0] != null){ if (Character(combat_grid[_local5][0]).health > 0){ if (Character(combat_grid[_local5][0]).hiding){ } else { _local4++; _local7 = Character(combat_grid[_local5][0]).pos; }; }; }; _local5++; }; if (_local4 == 1){ PlayerCanHit(_local7); } else { if (_local4 > 1){ if (_local2.pos < 4){ PlayerCanHit(_local2.pos); if ((_local2.pos + 1) <= 3){ PlayerCanHit((_local2.pos + 1)); }; if ((_local2.pos - 1) >= 1){ PlayerCanHit((_local2.pos - 1)); }; } else { PlayerCanHit((_local2.pos - 3)); if ((_local2.pos - 2) <= 3){ PlayerCanHit((_local2.pos - 2)); }; if ((_local2.pos - 4) >= 1){ PlayerCanHit((_local2.pos - 4)); }; }; }; }; }; }; }; }; } private function IsPlayerMeleeBlocked(_arg1:PlayerCharacter):Boolean{ var _local2:* = 0; var _local3:* = false; if (_arg1.pos > 3){ _local2 = 0; while (_local2 < 3) { if (combat_grid[_local2][2] != null){ if (PlayerCharacter(combat_grid[_local2][2]).isInactive() == false){ _local3 = true; }; }; _local2++; }; }; if (_arg1.gear[Equipment.weapon] != null){ if ((_arg1.gear[Equipment.weapon] is iSpear)){ _local3 = false; }; }; trace(((("isPlayerMeleeBlocked " + _arg1.charname) + ": ") + _local3)); return (_local3); } private function CanPlayerHit(_arg1:PlayerCharacter, _arg2:MonsterCharacter):Boolean{ var _local3:*; var _local4:*; var _local5:* = 0; if (IsPlayerMeleeBlocked(_arg1)){ return (false); }; if (((!((damageSpongeMonster == null))) && ((_arg2 == damageSpongeMonster)))){ return (true); }; if (_arg2.pos > 3){ if ((((((((((((_arg2.pos == _arg1.pos)) || ((_arg2.pos == (_arg1.pos + 1))))) || ((_arg2.pos == (_arg1.pos - 1))))) || ((_arg2.pos == (_arg1.pos + 4))))) || ((_arg2.pos == (_arg1.pos + 3))))) || ((_arg2.pos == (_arg1.pos + 2))))){ return (true); }; return (false); //unresolved jump }; _local3 = 0; while (_local3 < 3) { if (combat_grid[_local3][1] != null){ if ((((Character(combat_grid[_local3][1]).health > 0)) && (!(Character(combat_grid[_local3][1]).hiding)))){ _local5++; }; }; _local3++; }; if (_local5){ return (false); }; if ((((((((((((_arg2.pos == _arg1.pos)) || ((_arg2.pos == (_arg1.pos + 1))))) || ((_arg2.pos == (_arg1.pos - 1))))) || ((_arg2.pos == (_arg1.pos - 4))))) || ((_arg2.pos == (_arg1.pos - 3))))) || ((_arg2.pos == (_arg1.pos - 2))))){ return (true); }; return (false); } private function PlayerCanHit(_arg1:int){ var _local2:*; var _local3:*; var _local4:PlayerCharacter = PlayerCharacter(speedlist[turn]); if (_arg1 > 6){ return; }; if (_arg1 < 1){ return; }; if (_arg1 > 3){ _local2 = (_arg1 % 4); } else { _local2 = (_arg1 - 1); }; _local3 = (Math.ceil((_arg1 / 3)) - 1); if (combat_grid[_local2][_local3] == null){ return; }; var _local5:MonsterCharacter = MonsterCharacter(combat_grid[_local2][_local3]); if (MonsterCharacter(_local5).health <= 0){ return; }; if (MonsterCharacter(_local5).hiding){ return; }; if (MonsterCharacter(_local5).cannotTarget){ return; }; if (((skillbar.getSelectedSkill().targetsStunned) && (!(_local5.stunned_duration)))){ return; }; var _local6:Boolean = ((_local5.summoned) || ((_local5 is mAetherguard))); if (((skillbar.getSelectedSkill().targetsSummoned) && (!(_local6)))){ return; }; if (((!((damageSpongeMonster == null))) && (!((damageSpongeMonster == _local5))))){ return; }; var _local7:* = PortraitFromCharacter(_local5); if (_local7 != null){ addPlayerTarget(_local5); }; } private function addPlayerTarget(_arg1:Character):void{ var _local2:CharacterPortrait = CharacterPortrait(PortraitFromCharacter(_arg1)); var _local3:* = 0; while (_local3 < valid_targets.length) { if (valid_targets[_local3] == _arg1){ return; }; _local3++; }; valid_targets.push(_arg1); valid_targets_portraits.push(_local2); _local2.addEventListener(MouseEvent.MOUSE_DOWN, clickAttack); var _local4:PortraitHighlight = new PortraitHighlight(); _local4.name = "highlight"; _local2.addChild(_local4); } private function convertPlayerPos(_arg1:int):int{ if (_arg1 < 4){ return ((_arg1 + 3)); }; if (_arg1 > 3){ return ((_arg1 - 3)); }; return (0); } private function createClone(_arg1:PlayerCharacter):void{ var _local6:Boolean; var _local7:*; var _local2:* = false; var _local3:* = 0; var _local4:* = _arg1.getEvilClone(); if (_local4 == null){ return; }; if (_arg1.pos < 4){ _local4.pos = (_arg1.pos + 3); } else { if (_arg1.pos != 5){ _local4.pos = (_arg1.pos - 3); } else { _local6 = (_arg1.pos < 4); _local7 = pc_party.findEmptySlot(_local6); if (!_local7){ return; }; _local4.pos = convertPlayerPos(_local7); }; }; AddCharToCombatGrid(_local4); horde.members.push(_local4); var _local5:* = addNewPortrait(_local4); _local5.setClone(); } private function addHydraHead(_arg1:int):void{ var _local2:* = false; var _local3:* = 0; trace("addHydraHead"); var _local4:mHydraHead = new mHydraHead(_arg1); var _local5:int = horde.findEmptySlot(true); if (!_local5){ return; }; _local4.pos = _local5; trace(("position " + _local5)); AddCharToCombatGrid(_local4); horde.members.push(_local4); var _local6:* = addNewPortrait(_local4); _local4.portraitRef = _local6; } private function PortraitFromCharacter(_arg1:Character):CharacterPortrait{ var _local2:*; if ((_arg1 is PlayerCharacter)){ _local2 = pc_portraits; } else { _local2 = npc_portraits; }; var _local3:* = 0; while (_local3 < _local2.length) { if (_local2[_local3].char_ref == _arg1){ return (_local2[_local3]); }; _local3++; }; return (null); } private function useMonsterSkill(_arg1:Skill, _arg2:Character){ PortraitFromCharacter(speedlist[turn]).setPowerPreview(_arg1.power_cost); useSkill(speedlist[turn], _arg1, _arg2); _arg1.aiCastCount++; } private function validCharFromGrid(_arg1:int, _arg2:int):Character{ if (_arg1 > 2){ return (null); }; if (_arg1 < 0){ return (null); }; if (_arg2 < 0){ return (null); }; if (_arg2 > 3){ return (null); }; return (combat_grid[_arg1][_arg2]); } private function swapPortraits(_arg1:CharacterPortrait, _arg2:CharacterPortrait):void{ var _local3:EmptyPortrait; if (_arg1.parent != null){ _arg1.parent.removeChild(_arg1); }; if (_arg2.parent != null){ _arg2.parent.removeChild(_arg2); }; _local3 = EmptyPortrait(getChildByName(("pc" + String(_arg1.char_ref.pos)))); if (_local3 != null){ _local3.empty.addChild(_arg1); }; _local3 = EmptyPortrait(getChildByName(("pc" + String(_arg2.char_ref.pos)))); if (_local3 != null){ _local3.empty.addChild(_arg2); }; _arg1.addHoverListeners(); _arg2.addHoverListeners(); } private function replaceChar(_arg1:Character, _arg2:Character):void{ var _local5:*; var _local3:* = 0; while (_local3 < horde.members.length) { if (horde.members[_local3] == _arg1){ horde.members[_local3] = _arg2; }; _local3++; }; var _local4:* = 0; while (_local4 < 3) { _local5 = 0; while (_local5 < 4) { if (combat_grid[_local4][_local5] == _arg1){ combat_grid[_local4][_local5] = _arg2; return; }; _local5++; }; _local4++; }; } private function splashDamageCheck(_arg1:Skill, _arg2:Character, _arg3:Character):Boolean{ if (_arg3 == null){ return (false); }; if (!_arg1.splashHitsAllies){ if (BattleFunctions.areEnemies(_arg3, _arg2)){ return (true); }; } else { return (true); }; return (false); } private function useSkill(_arg1:Character, _arg2:Skill, _arg3:Character, _arg4:Boolean=false):void{ var j:int; var chars:Array; var c:Character; var damage:int; var power_damage:int; var oldPower:*; var healing:int; var tchars:Array; var i:*; var second_index:*; var secondary:Character; var t:*; var splash_x:*; var splash_y:*; var splash_char:*; var summon_pos:int; var summon_row:*; var summon_col:*; var eepos:int; var old_chars_length:*; var swapTemp:int; var shuffleTargets:Array; var shuffleEmptyPrefix:String; var order:Array; var shufi:int; var newPos:int; var emptyP:EmptyPortrait; var movePortrait:*; var needHydraHeads:int; var hh:MonsterCharacter; var err_txt:*; var err_dlg:ErrorDialog; var temp_healing:int; var temp_damage:int; var oldPoison:int; var actual_damage:int; var actual_power_damage:int; var doPoisonAmount:int; var whirlwindPos:int; var whirlwindMove:Boolean; var whirlwindNewPos:Array; var wx:int; var wy:int; var empty:EmptyPortrait; var delayedHitsTimer:Timer; var regen:*; var bonusAttack:Boolean; var benedictionQuickness:int; var stun_chance:int; var stun_roll:int; var transformed:*; var pd:*; var pr:*; var suicide_dmg:int; var user = _arg1; var skill = _arg2; var target = _arg3; var isBonusAttack = _arg4; var lethality:int; chars = new Array(); var miss:Boolean; var total_damage:int; var total_healing:int; var total_power_damage:int; var missed_targets:int; var res:Boolean; var attackTriggeredBonus:Boolean; var quicknessChange:Boolean; var staggerHits:Boolean; var staggerHitsDelay:int; var message1 = ""; var message2 = ""; errorCode = 999; try { usedSkill = true; damage = skill.getDamage(); power_damage = skill.powerDamage; if (skill.powerRestore){ power_damage = -(skill.powerRestore); }; if (isBonusAttack){ bonusAttackPending = false; }; damage = Math.round((damage * user.buff_damage)); damage = Math.round((damage * user.debuff_damage)); if (damage){ damage = Math.round((damage * user.damageMod)); user.damageMod = 1; }; delayedHit = -1; delayedHitsDamage.length = 0; delayedHitsSkill.length = 0; delayedHitsTarget.length = 0; delayedHitsAttacker.length = 0; if (skill.hitsAllMeleeRange){ if ((user is PlayerCharacter)){ chars = valid_targets.concat(); } else { chars = BattleFunctions.findMonsterTargets(MonsterCharacter(user), skill, horde, combat_grid, pc_party); }; } else { if (skill.attacksTwoTargets){ staggerHits = true; staggerHitsDelay = 400; if ((user is PlayerCharacter)){ chars.push(target); } else { tchars = BattleFunctions.findMonsterTargets(MonsterCharacter(user), skill, horde, combat_grid, pc_party); tchars = cullIntimidatingTargets(tchars, skill); if (tchars.length == 1){ chars.push(target); chars.push(target); } else { if (tchars.length == 2){ chars = tchars; } else { if (tchars.length > 2){ chars.push(target); i = 0; while (i < tchars.length) { if (tchars[i] == target){ tchars.splice(i, 1); }; i = (i + 1); }; chars.push(tchars[dm.randomNum(0, (tchars.length - 1))]); } else { chars.push(target); }; }; }; }; } else { if (skill.piercesColumn){ if (target.pos > 3){ second_index = (target.pos - 3); } else { second_index = (target.pos + 3); }; if ((target is MonsterCharacter)){ secondary = horde.memberInPos(second_index); } else { secondary = pc_party.memberInPos(second_index); }; chars.push(target); if (secondary != null){ chars.push(secondary); }; } else { if (skill.hitsAllEnemies){ if ((user is PlayerCharacter)){ chars = horde.members.concat(); } else { chars = pc_party.members.concat(); }; } else { if (skill.hitsAllFriendlies){ if ((user is MonsterCharacter)){ chars = horde.members.concat(); } else { chars = pc_party.members.concat(); }; } else { if (skill.splashDamageMultiplier){ chars.push(target); t = target.pos; splash_x = 0; splash_y = 0; if (t < 4){ splash_x = (t - 1); } else { splash_x = (t - 4); }; if (t < 4){ splash_y = 0; } else { splash_y = 1; }; if ((target is PlayerCharacter)){ splash_y = (splash_y + 2); }; splash_char = validCharFromGrid((splash_x - 1), splash_y); if (splashDamageCheck(skill, user, splash_char)){ chars.push(splash_char); }; splash_char = validCharFromGrid((splash_x + 1), splash_y); if (splashDamageCheck(skill, user, splash_char)){ chars.push(splash_char); }; splash_char = validCharFromGrid(splash_x, (splash_y - 1)); if (splashDamageCheck(skill, user, splash_char)){ chars.push(splash_char); }; splash_char = validCharFromGrid(splash_x, (splash_y + 1)); if (splashDamageCheck(skill, user, splash_char)){ chars.push(splash_char); }; } else { if (skill.summonsCreatureClass != null){ summon_pos = 0; if ((user is MonsterCharacter)){ if (horde.members.length == 6){ return; }; summon_row = 1; while (summon_row >= 0) { summon_col = 0; while (summon_col < 3) { if (combat_grid[summon_col][summon_row] == null){ summon_pos = combatGridToPos(summon_col, summon_row); break; }; summon_col = (summon_col + 1); }; if (summon_pos > 0){ break; }; summon_row = (summon_row - 1); }; } else { if (playerTargetPos != -1){ summon_pos = playerTargetPos; playerTargetPos = -1; }; }; if (skill.hitsAllEmpty){ trace("useSkill: skill.hitsAllEmpty"); eepos = 1; while (eepos <= 6) { trace(("testing position: " + eepos)); if ((user is MonsterCharacter)){ if (horde.memberInPos(eepos) == null){ addSummon(skill, user, eepos); }; } else { if (pc_party.memberInPos(eepos) == null){ addSummon(skill, user, eepos); }; }; eepos = (eepos + 1); }; quicknessChange = true; } else { if (summon_pos > 0){ addSummon(skill, user, summon_pos); quicknessChange = true; }; }; } else { chars.push(target); }; }; }; }; }; }; }; if (skill.attacksMultipleTimes > 1){ old_chars_length = chars.length; j = 1; while (j < skill.attacksMultipleTimes) { i = 0; while (i < old_chars_length) { chars.push(chars[i]); i = (i + 1); }; j = (j + 1); }; staggerHits = true; staggerHitsDelay = Math.round((1200 / chars.length)); }; if (skill.extraSpeedAttacks){ if (user.getQuickness() > target.getQuickness()){ staggerHits = true; staggerHitsDelay = Math.round((1200 / skill.extraSpeedAttacks)); j = 0; while (j < skill.extraSpeedAttacks) { chars.push(target); j = (j + 1); }; }; }; if (skill.swapPositions){ swapTemp = target.pos; target.pos = user.pos; user.pos = swapTemp; updateCombatGrid(); if (((!((target.portraitRef == null))) && (!((user.portraitRef == null))))){ swapPortraits(target.portraitRef, user.portraitRef); updateCurrentTurnHighlight(); }; }; oldPower = user.power; if ((((((user is PC_Mage)) && (skill.power_cost))) && ((dmf.randomNum(0, 99) < PC_Mage(user).mastery)))){ addFloater(user, "Spell Mastery!"); } else { user.reducePower(skill.power_cost); if (skill.costsRemainingPower){ user.power = 0; }; }; numTargets = chars.length; healing = skill.scaleHeal(skill.healing, numTargets); if (skill.shufflesEnemies){ trace("shuffle enemies"); order = [1, 2, 3, 4, 5, 6]; order = dm.shuffleArray(order); trace(("shuffled order: " + String(order))); if ((user is PlayerCharacter)){ shuffleTargets = horde.members; shuffleEmptyPrefix = "npc"; } else { if ((user is MonsterCharacter)){ shuffleTargets = pc_party.members; shuffleEmptyPrefix = "pc"; }; }; shufi = 0; while (shufi < shuffleTargets.length) { newPos = order[shufi]; shuffleTargets[shufi].pos = newPos; trace(((shuffleTargets[shufi].charname + " new pos=") + newPos)); emptyP = EmptyPortrait(getChildByName((shuffleEmptyPrefix + String(newPos)))); movePortrait = shuffleTargets[shufi].portraitRef; if (((!((movePortrait == null))) && (!((emptyP == null))))){ if (movePortrait.parent != null){ movePortrait.parent.removeChild(movePortrait); emptyP.addChild(movePortrait); movePortrait.addHoverListeners(); }; }; shufi = (shufi + 1); }; updateCombatGrid(); }; if (skill.hydraGrowHeads){ needHydraHeads = horde.needHydraHeads(); chars.length = 0; trace(("useSkill: hydraGrowHeads - need " + needHydraHeads)); if (needHydraHeads){ for each (hh in horde.members) { if (!needHydraHeads){ break; }; if ((((hh is mHydraHead)) && ((hh.health <= 0)))){ hh.resetMonster(); mHydraHead(hh).togglePortrait(); hh.portraitRef.update(); chars.push(hh); needHydraHeads = (needHydraHeads - 1); }; }; while (((needHydraHeads) && ((horde.members.length < 6)))) { addHydraHead(user.level); needHydraHeads = (needHydraHeads - 1); quicknessChange = true; }; }; }; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Skill target selection error: " + error.name) + "\n")); if (skill != null){ err_txt = (err_txt + (("skill: " + skill.skillname) + "\n")); }; if (speedlist[turn] != null){ err_txt = (err_txt + (((((("turn: " + turn) + "/") + String((speedlist.length - 1))) + " - ") + speedlist[turn].charname) + "\n")); }; if (target != null){ err_txt = (err_txt + (("target: " + target.charname) + "\n")); }; err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; var firstTarget:Boolean; var hits:int; try { for each (c in chars) { hits = (hits + 1); if (c == null){ } else { if (!(c is Character)){ } else { if ((((c.health <= 0)) && (!((skill.resurrects == true))))){ } else { if ((((c is PlayerCharacter)) && (PlayerCharacter(c).retreated))){ } else { if ((((c == user)) && (skill.doesNotEffectSelf))){ } else { if (c.portraitRef == null){ c.portraitRef = PortraitFromCharacter(c); }; errorCode = 1; temp_healing = healing; if (skill.clonesPlayers){ if ((c is PlayerCharacter)){ createClone(PlayerCharacter(c)); quicknessChange = true; }; }; if (skill.forceRetreat){ if ((c is PlayerCharacter)){ PlayerCharacter(c).retreating = true; addFloater(c, "Fleeing!"); message2 = "Allies are fleeing the battle!"; }; }; errorCode = 2; if (skill.cannotDie){ addFloater(c, "Defiant!"); c.cannotDie = skill.cannotDie; c.cannotDieMin = skill.getDefianceHealth(); }; errorCode = 3; if (skill.invulnerable){ c.invulnerable = skill.invulnerable; }; errorCode = 4; if (skill.makeDamageSponge){ if ((c is PlayerCharacter)){ damageSpongePlayer = PlayerCharacter(c); } else { damageSpongeMonster = MonsterCharacter(c); }; addFloater(c, "Protecting!"); message2 = (c.charname + " is now protecting allies!"); }; errorCode = 5; if (skill.tempDamageResistance){ c.temp_damage_resistance = skill.tempDamageResistance; }; errorCode = 6; if (skill.powerRegenMod != 1){ c.powerRegenMod = (c.powerRegenMod * skill.powerRegenMod); }; errorCode = 7; if (skill.hidesTarget){ c.hiding = true; c.portraitRef.setHiding(true); }; errorCode = 801; if (skill.intimidating){ c.intimidating = true; }; errorCode = 802; temp_damage = modifySkillDamage(damage, skill, c, user, oldPower, (c == target)); errorCode = 9; if (skill.summonsWhirlwind){ trace("skill.summonsWhirlwind"); whirlwindPos = c.pos; whirlwindMove = false; whirlwindNewPos = new Array(); if ((((horde.members.length < 6)) && (!((c is mDemon))))){ if (c.pos > 3){ wx = (whirlwindPos % 4); } else { wx = (whirlwindPos - 1); }; wy = (Math.ceil((whirlwindPos / 3)) - 1); trace(((("doing whirlwind tests: target x = " + wx) + ", y = ") + wy)); if ((((wy > 0)) && ((combat_grid[wx][(wy - 1)] == null)))){ whirlwindNewPos.push(combatGridToPos(wx, (wy - 1))); }; if ((((wy < 1)) && ((combat_grid[wx][(wy + 1)] == null)))){ whirlwindNewPos.push(combatGridToPos(wx, (wy + 1))); }; if ((((wx > 0)) && ((combat_grid[(wx - 1)][wy] == null)))){ whirlwindNewPos.push(combatGridToPos((wx - 1), wy)); }; if ((((wx < 2)) && ((combat_grid[(wx + 1)][wy] == null)))){ whirlwindNewPos.push(combatGridToPos((wx + 1), wy)); }; }; trace((String(whirlwindNewPos.length) + " free adjacent spaces found")); if (whirlwindNewPos.length){ whirlwindMove = true; }; if (whirlwindMove){ trace("doing whirlwind move"); c.pos = whirlwindNewPos[dmf.randomNum(0, (whirlwindNewPos.length - 1))]; updateCombatGrid(); if (c.portraitRef.parent != null){ c.portraitRef.parent.removeChild(c.portraitRef); }; empty = EmptyPortrait(getChildByName(("npc" + String(c.pos)))); if (empty != null){ empty.empty.addChild(c.portraitRef); }; summonWhirlwind(user, whirlwindPos); quicknessChange = true; } else { trace("extra whirlwind damage"); temp_damage = Math.round((temp_damage * 1.2)); }; }; errorCode = 99; if (((!(firstTarget)) && (staggerHits))){ if (delayedHit == -1){ delayedHit = 0; }; delayedHitsDamage.push(temp_damage); delayedHitsSkill.push(skill); delayedHitsTarget.push(c); delayedHitsAttacker.push(user); delayedHitsDelay = staggerHitsDelay; delayedHitsTimer = new Timer((staggerHitsDelay * (hits - 1)), 1); delayedHitsTimer.addEventListener(TimerEvent.TIMER_COMPLETE, delayedHitsTimerComplete); delayedHitsTimer.start(); } else { errorCode = 10; miss = checkAccuracyMiss(user, skill, total_damage, (missed_targets == 0), firstTarget); errorCode = 11; if (miss){ c.portraitRef.addAnimationFrame(miss_animation_frame, skill.portraitAnimationDuration); missed_targets = (missed_targets + 1); } else { errorCode = 13; if (skill.cancelPowerRegen > c.cancelPowerRegen){ c.cancelPowerRegen = skill.cancelPowerRegen; c.powerRegenMod = 1; c.buff_powerRegen = 0; }; if (skill.cancelHealthRegen > c.cancelHealthRegen){ c.cancelHealthRegen = skill.cancelHealthRegen; c.buff_healthRegen = 0; }; if (skill.woundsRestorePower){ c.woundsRestorePower = Math.max(skill.woundsRestorePower, c.woundsRestorePower); }; errorCode = 14; if (((skill.crippling) && ((skill.crippling > c.crippled)))){ c.crippled = skill.crippling; initDisplay.updateIcon(c); quicknessChange = true; }; errorCode = 15; if (skill.curse){ c.cursed = Math.max(skill.curse, c.cursed); }; errorCode = 16; if (skill.removesCurse){ c.cursed = 0; }; errorCode = 17; c.damageMod = Math.max(skill.targetDamageMod, c.damageMod); errorCode = 18; if (skill.buff_resistPoison){ c.buff_resistPoison = Math.max(c.buff_resistPoison, skill.buff_resistPoison); }; if (skill.buff_resistStun){ c.buff_resistStun = Math.max(c.buff_resistStun, skill.buff_resistStun); }; if (skill.buff_damageResist){ c.buff_damageResist = Math.max(c.buff_damageResist, skill.buff_damageResist); }; if (skill.buff_damageReflect){ c.buff_damageReflect = Math.max(c.buff_damageReflect, skill.buff_damageReflect); }; if (skill.buff_powerRegen){ c.buff_powerRegen = Math.max(c.buff_powerRegen, skill.buff_powerRegen); }; if (skill.buff_vampiric){ c.buff_vampiric = Math.max(c.buff_vampiric, skill.buff_vampiric); }; if (skill.buff_stun){ c.buff_stun = Math.max(c.buff_stun, skill.buff_stun); }; if (skill.buff_quickness){ c.buff_quickness = Math.max(c.buff_quickness, skill.buff_quickness); initDisplay.updateIcon(c); quicknessChange = true; }; errorCode = 19; if (skill.buff_damage > c.buff_damage){ c.buff_damage = skill.buff_damage; }; if (skill.buff_accuracy){ c.buff_accuracy = Math.max(c.buff_accuracy, skill.buff_accuracy); }; if (skill.buff_healthRegen){ regen = skill.buff_healthRegen; if ((((skill.increasesWith >= Skill.strength)) && ((skill.increasesWith <= Skill.intellect)))){ regen = skill.scaleHeal(skill.buff_healthRegen); }; c.buff_healthRegen = Math.max(c.buff_healthRegen, regen); }; if (skill.debuff_damageResist){ c.debuff_damageResist = Math.max(skill.debuff_damageResist, c.debuff_damageResist); }; if (skill.debuff_damage != 1){ c.debuff_damage = Math.min(skill.debuff_damage, c.debuff_damage); }; errorCode = 20; if (skill.resurrects){ if (c.health <= 0){ c.portraitRef.setAlive(); res = true; }; }; errorCode = 21; if ((((((user is PC_Ranger)) && ((c is MonsterCharacter)))) && ((dmf.randomNum(0, 99) < PC_Ranger(user).creatureLore)))){ if (c.debuff_damageResist < 40){ c.debuff_damageResist = (c.debuff_damageResist + 40); addFloater(c, "Creature Lore!"); }; }; errorCode = 22; oldPoison = c.poisoned; if (temp_healing){ c.portraitRef.setHealthPreview(-(temp_healing)); }; actual_damage = 0; errorCode = 22; if (temp_damage){ actual_damage = doSkillDamage(user, c, temp_damage, skill); }; errorCode = 23; if (power_damage){ c.portraitRef.setPowerPreview(power_damage); }; errorCode = 24; actual_power_damage = c.reducePower(power_damage); errorCode = 25; total_damage = (total_damage + actual_damage); total_power_damage = (total_power_damage + actual_power_damage); total_healing = (total_healing + c.increaseHealth(temp_healing, skill.resurrects)); errorCode = 0xFF; if (((!(bonusAttackPending)) && (!(isBonusAttack)))){ bonusAttack = false; if (((((((actual_damage) && ((c.health > 0)))) && ((user is PC_Warrior)))) && ((dmf.randomNum(0, 99) < PC_Warrior(user).leadership)))){ addFloater(user, "Leadership!"); bonusAttack = true; }; if (((skill.allyBonusAttack) || (bonusAttack))){ bonusAttackPending = true; bonusAttackTarget = c; bonusAttacker = null; attackTriggeredBonus = true; }; }; errorCode = 2551; if ((((((skill is sClericHeal)) && ((user is PC_Cleric)))) && ((dmf.randomNum(0, 99) < PC_Cleric(user).benediction)))){ benedictionQuickness = c.getQuickness(); c.clearNegativeEffects(); if (benedictionQuickness != c.getQuickness()){ quicknessChange = true; }; addFloater(user, "Benediction!"); }; errorCode = 26; if (skill.stun_percent){ stun_chance = (skill.stun_percent + Math.ceil((user.getStunChance() / chars.length))); if (target.invulnerable){ stun_chance = 0; }; stun_roll = dmf.randomNum(0, 99); trace(((("stunning skill: stun chance = " + stun_chance) + ", roll = ") + stun_roll)); if (stun_roll < stun_chance){ c.portraitRef.stunAnim(); c.stun(1); if (!skill.suppressStunAnim){ c.portraitRef.checkStun(); }; }; }; errorCode = 27; doPoisonAmount = 0; if (skill.poisonDamage){ doPoisonAmount = (skill.scalePoison() + Math.ceil((user.getPoisonDamage() / chars.length))); }; if ((((user is PC_Rogue)) && (actual_damage))){ doPoisonAmount = (doPoisonAmount + Math.ceil((actual_damage * (PC_Rogue(user).poisoncraft / 100)))); }; if (doPoisonAmount){ if (c.poison(doPoisonAmount)){ c.portraitRef.setPoisoned(true); }; }; errorCode = 28; if (skill.damageAccuracy){ if (skill.damageAccuracy > c.accuracy_penalty){ c.accuracy_penalty = skill.damageAccuracy; }; }; errorCode = 29; if (res){ CalculateInitiative(false); initDisplay.insertChar(c, speedlist[turn]); }; errorCode = 30; if (((((skill.gainPowerFromKill) && (actual_damage))) && (!(c.health)))){ user.portraitRef.setPowerPreview(-(skill.gainPowerFromKill)); user.increasePower(skill.gainPowerFromKill); }; errorCode = 31; addPortraitAnim(c, skill, user); errorCode = 32; if (oldPoison < c.poisoned){ c.portraitRef.addPortraitAnimation(PortraitAnimation.poison); }; errorCode = 33; if (skill.removesPoison){ c.poisoned = 0; c.portraitRef.setPoisoned(false); }; errorCode = 34; if (((skill.powerDrain) && (actual_power_damage))){ user.portraitRef.setPowerPreview(-(actual_power_damage)); user.increasePower(actual_power_damage); user.portraitRef.addPortraitAnimation(PortraitAnimation.gainPower); }; errorCode = 35; if (skill.transformCreatureClass != null){ transformed = skill.transformCreatureClass; transformed.pos = c.pos; if ((c is MonsterCharacter)){ transformed.portraitRef = c.portraitRef; replaceChar(c, transformed); c.clearStatusEffects(); c.portraitRef.setChar(transformed, true); c.portraitRef.addPortraitAnimation(PortraitAnimation.transform); if (c == speedlist[turn]){ speedlist[turn] = transformed; }; c = transformed; quicknessChange = true; }; }; firstTarget = false; }; }; }; }; }; }; }; }; errorCode = 36; message1 = (((user.charname + " ") + skill.verbage) + "!"); if (total_power_damage > 0){ pd = (total_power_damage + " power "); if (skill.powerDrain){ pd = (pd + "drained"); } else { pd = (pd + "damage"); }; message2 = pd; } else { if (total_power_damage < 0){ pr = (-(total_power_damage) + " power restored"); message2 = pr; }; }; errorCode = 37; if (((skill.healing) || (healing))){ message2 = (total_healing + " damage healed"); }; if (((staggerHits) && (damage))){ if (missed_targets){ message2 = "(Miss)"; } else { message2 = String(total_damage); }; } else { if (((skill.damage) || (damage))){ message2 = (total_damage + " damage"); }; }; errorCode = 38; if (((chars.length) && ((missed_targets == chars.length)))){ message2 = "Miss!"; errorCode = 381; if (dm.sound != null){ errorCode = 3811; dm.sound.playMissSound(skill, user); }; } else { errorCode = 382; if (dm.sound != null){ errorCode = 3821; dm.sound.playSoundForSkill(skill, user); }; }; errorCode = 39; if (skill.killsUser){ suicide_dmg = (user.health + 1); user.portraitRef.setHealthPreview(suicide_dmg); user.reduceHealth(suicide_dmg); }; if (isBonusAttack){ message2 = (message2 + " (bonus attack)"); }; messages.addMessage(message1, message2); if (((!(res)) && (!(quicknessChange)))){ initDisplay.removeDead(); }; errorCode = 40; if (quicknessChange){ if (CalculateInitiative(false)){ errorCode = 41; initDisplay.refill(speedlist[turn]); }; }; errorCode = 100; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (((("Skill use error: " + error.name) + " ") + error.message) + "\n")); if (skill != null){ err_txt = (err_txt + (("skill: " + skill.skillname) + "\n")); }; if (speedlist[turn] != null){ err_txt = (err_txt + (((((("turn: " + turn) + "/") + String((speedlist.length - 1))) + " - ") + speedlist[turn].charname) + "\n")); }; if (target != null){ err_txt = (err_txt + (("target: " + target.charname) + "\n")); }; if (c != null){ err_txt = (err_txt + (("hitting: " + c.charname) + "\n")); }; if (c != null){ err_txt = (err_txt + (("targets: " + chars.length) + "\n")); }; err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { UpdateInfoPanels(); EndTurn(isBonusAttack); doLethalAnim = false; }; } private function checkAccuracyMiss(_arg1:Character, _arg2:Skill, _arg3:int, _arg4:Boolean, _arg5:Boolean=false):Boolean{ var _local6:Boolean; var _local7:int = dm.randomNum(0, 99); var _local8:int = _arg1.getAccuracy(); if (_arg2.attacksWithAccuracyMod != 1){ _local8 = Math.round((_local8 * _arg2.attacksWithAccuracyMod)); }; if (((_arg2.piercesColumn) && (!(_arg5)))){ if (_arg4){ _local7 = (_local8 - 1); } else { _local7 = (_local8 + 1); }; }; if (_local7 >= _local8){ if (_arg1.canMissWith(_arg2)){ _local6 = true; } else { _local6 = false; }; }; if (((_arg1.canMissWith(_arg2)) && (_arg5))){ addAccuracyRoll(_local7); }; trace(((((("checkAccuracyMiss: acc = " + _local8) + ", roll = ") + _local7) + ", miss = ") + String(_local6))); return (_local6); } private function showImmune(_arg1:Character, _arg2:CharacterPortrait, _arg3:Skill, _arg4:Character):Boolean{ if (!_arg1.invulnerable){ return (false); }; if (_arg4 == _arg1){ return (false); }; if (_arg3.damage){ return (true); }; if (_arg3.stun_percent){ return (true); }; if (_arg3.poisonDamage){ return (true); }; return (false); } private function addPortraitAnim(_arg1:Character, _arg2:Skill, _arg3:Character):void{ var _local4:CharacterPortrait = _arg1.portraitRef; if (showImmune(_arg1, _local4, _arg2, _arg3)){ _local4.addAnimationFrame(immune_animation_frame, 1500); } else { if (_arg2.hasPortraitAnimation){ _local4.addAnimationFrame(_arg2.portraitAnimationFrame, _arg2.portraitAnimationDuration); }; if (((_arg2.showWeaponAnimation) && (_arg3.skills[0].specialAnimation))){ _local4.addPortraitAnimation(_arg3.skills[0].specialAnimation); }; if (_arg2.specialAnimation){ _local4.addPortraitAnimation(_arg2.specialAnimation); }; if (doLethalAnim){ _local4.addPortraitAnimation(PortraitAnimation.lethal); doLethalAnim = false; }; }; } private function modifySkillDamage(_arg1:int, _arg2:Skill, _arg3:Character, _arg4:Character, _arg5:int, _arg6:Boolean){ var _local7:int; var _local8:*; var _local9:*; if (_arg3.invulnerable){ return (0); }; if ((((_arg3 is MonsterCharacter)) && (MonsterCharacter(_arg3).damageImmune))){ return (0); }; if (((_arg2.onlyDamagesUndead) && (!((_arg3.type == MonsterCharacter.undead))))){ return (0); }; if (((_arg2.splashDamageMultiplier) && (!(_arg6)))){ _arg1 = (_arg1 * _arg2.splashDamageMultiplier); }; if (((_arg2.undeadMultiplier) && ((_arg3.type == MonsterCharacter.undead)))){ _arg1 = (_arg1 * _arg2.undeadMultiplier); }; if ((((_arg4 is PlayerCharacter)) && (_arg1))){ _arg1 = PlayerCharacter(_arg4).multiplyDamageForTargetType(_arg1, _arg3.type); }; if (((((_arg2.damageBonusVsCreatureType) && (_arg1))) && ((_arg3 is MonsterCharacter)))){ if (_arg2.damageBonusVsCreatureType == MonsterCharacter(_arg3).type){ _arg1 = (_arg1 * _arg2.damageBonusVsCreatureModifier); }; }; if (_arg1){ _local7 = _arg3.damageAfterArmor(_arg1, _arg4); if (_arg2.ignoresArmor){ _arg1 = Math.max(_arg1, _local7); } else { _arg1 = _local7; }; }; if (((((_arg1) && ((_arg3 is MonsterCharacter)))) && (MonsterCharacter(_arg3).ethereal))){ if (_arg2.isPhysical()){ _arg1 = Math.round((_arg1 * (1 - (MonsterCharacter(_arg3).ethereal / 100)))); if (_arg1 == 0){ _arg1 = 1; }; }; }; if ((((_arg4 is PC_Barbarian)) && ((dmf.randomNum(0, 99) < PC_Barbarian(_arg4).brutality)))){ _arg1 = Math.ceil((_arg1 * 1.5)); addFloater(_arg4, "Brutality!"); }; doLethalAnim = false; if (((((_arg1) && (((((_arg2.addsPowerToLethality) || (_arg2.lethality))) || (_arg4.getLethality()))))) && (((!(_arg3.lethalityImmune)) || (DungeonMain.instantKill))))){ _local8 = _arg2.lethality; if (_arg2.addsPowerToLethality){ _local8 = (_local8 + _arg5); }; _local8 = (_local8 + Math.ceil((_arg4.getLethality() / numTargets))); _local9 = dm.randomNum(0, 100); trace(((("lethality roll, lethality = " + _local8) + " roll = ") + _local9)); if (_local9 < _local8){ _arg1 = _arg3.health; doLethalAnim = true; }; }; if (((_arg2.nonLethal) && ((_arg1 >= _arg3.health)))){ _arg1 = (_arg3.health - 1); }; return (Math.round(_arg1)); } private function doSkillDamage(_arg1:Character, _arg2:Character, _arg3:int, _arg4:Skill):int{ var inflicted:int; var targetPortrait:CharacterPortrait; var p:CharacterPortrait; var stun_chance:*; var stun_roll:*; var poison_dmg:*; var acc_dmg:int; var health_delta:int; var v_pc:int; var reflect:*; var curseAdd:*; var err_txt:*; var err_dlg:*; var c = _arg1; var target = _arg2; var damage = _arg3; var skill = _arg4; inflicted = 0; try { targetPortrait = PortraitFromCharacter(target); p = PortraitFromCharacter(c); if (((((damage) && ((target is PC_Mage)))) && ((dmf.randomNum(0, 99) < PC_Mage(target).shielding)))){ target.portraitRef.setPowerPreview(10); target.reducePower(10); addFloater(target, "Shielding!"); var _local6:* = 0; //unresolved jump 0; return (_local6); }; if (damage <= 0){ _local6 = 0; //unresolved jump 1; return (_local6); }; if (targetPortrait != null){ targetPortrait.setHealthPreview(damage); }; inflicted = target.reduceHealth(damage); if (target.woundsRestorePower){ target.portraitRef.setPowerPreview(target.woundsRestorePower); target.increasePower(target.woundsRestorePower); target.portraitRef.addPortraitAnimation(PortraitAnimation.gainPower); }; if (((((inflicted) && ((target is PC_Barbarian)))) && ((dmf.randomNum(0, 99) < PC_Barbarian(target).vengeance)))){ target.damageMod = Math.max(1.3, target.damageMod); addFloater(target, "Vengeance!"); }; if (((c.getStunChance()) && (!(skill.stun_percent)))){ stun_chance = Math.ceil((c.getStunChance() / numTargets)); if (target.invulnerable){ stun_chance = 0; }; stun_roll = dm.randomNum(1, 100); trace(((("stun on hit: stun chance = " + stun_chance) + ", roll = ") + stun_roll)); if (stun_roll <= stun_chance){ if (targetPortrait != null){ targetPortrait.stunAnim(); }; target.stun(1); if (((!(skill.suppressStunAnim)) && (!((targetPortrait == null))))){ targetPortrait.checkStun(); }; }; }; if (((c.getPoisonDamage()) && (!(skill.poisonDamage)))){ poison_dmg = Math.ceil((c.getPoisonDamage() / numTargets)); if (((target.poison(poison_dmg)) && (!((targetPortrait == null))))){ targetPortrait.setPoisoned(true); }; }; if (((c.getAccuracyDamage()) && (!(skill.damageAccuracy)))){ acc_dmg = Math.ceil((c.getAccuracyDamage() / numTargets)); trace(("testing blind from equipment: " + acc_dmg)); if (acc_dmg > target.accuracy_penalty){ trace(((("blind applied: old value = " + target.accuracy_penalty) + ", new value = ") + acc_dmg)); target.accuracy_penalty = acc_dmg; }; }; if (inflicted){ health_delta = 0; if (((skill.vampiric_percent) || (c.getVampiric()))){ v_pc = (skill.vampiric_percent + c.getVampiric()); health_delta = Math.ceil(((v_pc / 100) * inflicted)); if ((c is PlayerCharacter)){ health_delta = Math.min(health_delta, (c.health_max / 2)); }; if (p != null){ p.addPortraitAnimation(PortraitAnimation.gainHealth); }; }; if (((((target.getDamageReflection()) || (c.cursed))) && (inflicted))){ reflect = Math.round((inflicted * (target.getDamageReflection() / 100))); if ((target is MonsterCharacter)){ reflect = Math.min(reflect, (target.damage / 2)); }; if (c.cursed){ curseAdd = Math.round((c.cursed * inflicted)); if ((target is MonsterCharacter)){ curseAdd = Math.min(curseAdd, (target.damage / 2)); }; if (curseAdd > 0){ reflect = (reflect + curseAdd); if (p != null){ p.addPortraitAnimation(PortraitAnimation.curse); }; }; }; trace((((((target.charname + " has damage reflection of ") + target.getDamageReflection()) + " inflicting ") + reflect) + " damage")); health_delta = (health_delta - reflect); }; if (p != null){ p.setHealthPreview(-(health_delta)); }; c.increaseHealth(health_delta); }; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (((("Do Skill Damage error: " + error.name) + " ") + error.message) + "\n")); if (skill != null){ err_txt = (err_txt + (("skill: " + skill.skillname) + "\n")); }; if (c != null){ err_txt = (err_txt + (("user: " + c.charname) + "\n")); }; if (target != null){ err_txt = (err_txt + (("target: " + target.charname) + "\n")); }; if (targetPortrait == null){ err_txt = (err_txt + "targetPortrait = null\n"); }; if (p == null){ err_txt = (err_txt + "p = null\n"); }; err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + (("damage: " + inflicted) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { var _local8:* = inflicted; //unresolved jump 3; return (_local8); }; } function delayedHitsTimerComplete(_arg1:TimerEvent):void{ var _local9:int; if (delayedHit >= delayedHitsDamage.length){ return; }; var _local2:* = ""; updateAllBars(); var _local3:* = delayedHitsDamage[delayedHit]; var _local4:* = delayedHitsSkill[delayedHit]; var _local5:Character = delayedHitsTarget[delayedHit]; var _local6:Character = delayedHitsAttacker[delayedHit]; var _local7:* = PortraitFromCharacter(_local5); var _local8:Boolean = checkAccuracyMiss(_local6, _local4, 0, false); if (_local8){ _local7.addAnimationFrame(miss_animation_frame, delayedHitsDelay); _local2 = "(Miss)"; dm.sound.playMissSound(_local4, _local6, true); } else { _local9 = doSkillDamage(_local6, _local5, _local3, _local4); addPortraitAnim(_local5, _local4, _local6); _local2 = String(_local9); }; delayedHit++; if (delayedHit >= delayedHitsDamage.length){ _local2 = (_local2 + " damage!"); }; messages.updateMostRecent("", (" + " + _local2)); } function clickAttack(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:Character; _local4 = Character(CharacterPortrait(_arg1.currentTarget).char_ref); var _local5:* = skillbar.getSelectedSkill(); RemoveTargetInfo(); useSkill(speedlist[turn], _local5, _local4); } private function EndTurn(_arg1:Boolean=false):void{ var _local2:int; if (!_arg1){ speedlist[turn].hadCombatTurn = true; }; if ((speedlist[turn] is PlayerCharacter)){ if (((!((skillbar == null))) && (this.contains(skillbar)))){ removeChild(skillbar); }; if (((!((actionsbar == null))) && (this.contains(actionsbar)))){ removeChild(actionsbar); }; this.removeEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent); stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); selected_skill_text.text = ""; }; RemoveTargetInfo(); var _local3 = 1500; if (passing){ _local3 = PASS_TURN_DELAY; passing = false; }; if (speedlist[turn].stunned_duration){ _local3 = PASS_TURN_DELAY; }; if ((((speedlist[turn] is PlayerCharacter)) && (((speedlist[turn].retreated) || (speedlist[turn].retreating))))){ _local3 = 600; }; turnDelayTimer = new Timer(_local3, 1); turnDelayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTurnDelayComplete); turnDelayTimer.start(); } private function RemoveTargetInfo():void{ var _local1:*; var _local2:PortraitHighlight; _local1 = 0; while (_local1 < npc_portraits.length) { npc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, clickAttack); _local2 = PortraitHighlight(npc_portraits[_local1].getChildByName("highlight")); if (_local2 != null){ npc_portraits[_local1].removeChild(_local2); _local2 = null; }; _local1++; }; _local1 = 0; while (_local1 < pc_portraits.length) { pc_portraits[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, clickAttack); _local2 = PortraitHighlight(pc_portraits[_local1].getChildByName("highlight")); if (_local2 != null){ pc_portraits[_local1].removeChild(_local2); _local2 = null; }; _local1++; }; removeEmptyListeners(); removePortraitEffected(); } private function removePortraitEffected():void{ var _local2:*; var _local1:* = 0; while (_local1 < 12) { _local2 = bg.getChildByName(("ei" + _local1)); if (_local2 == null){ } else { bg.removeChild(_local2); }; _local1++; }; } public function onDoNothingDelayComplete(_arg1:TimerEvent):void{ var err_txt:String; var err_dlg:ErrorDialog; var next_turn:Boolean; var event = _arg1; try { errorCode = 5510; doNothingTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onDoNothingDelayComplete); if (bonusAttackPending){ trace("bonus attack pending, initiating"); if (bonusAttackOn(bonusAttackTarget)){ trace("bonus attack successful, returning"); return; } else { bonusAttackPending = false; }; }; errorCode = 5511; trace("incrementing turn"); next_turn = IncrementTurn(); errorCode = 5512; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("End Turn Error: " + error.name) + "\n")); if (speedlist[turn] != null){ err_txt = (err_txt + (((((("turn: " + turn) + "/") + String((speedlist.length - 1))) + " - ") + speedlist[turn].charname) + "\n")); }; err_txt = (err_txt + (("next turn: " + String(next_turn)) + "\n")); err_txt = (err_txt + (("bonusAttackPending: " + String(bonusAttackPending)) + "\n")); err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; try { errorCode = 5513; if (next_turn){ RunTurn(); }; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Next Turn Error: " + error.name) + "\n")); if (speedlist[turn] != null){ err_txt = (err_txt + (((((("turn: " + turn) + "/") + String((speedlist.length - 1))) + " - ") + speedlist[turn].charname) + "\n")); }; err_txt = (err_txt + (("next turn: " + String(next_turn)) + "\n")); err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; if (!next_turn){ EndBattle(); }; } private function EndBattle():void{ var err_txt:String; var err_dlg:ErrorDialog; var r:int; var p:PlayerCharacter; var pAlive:Boolean; var pc:PlayerCharacter; var duration:int; try { if (pc_party.campaign == Campaign.SURVIVAL){ pAlive = false; for each (pc in pc_party.members) { if (pc == null){ } else { if (pc.health <= 0){ continue; } else { if ((pc is PlayerSummon)){ continue; } else { pAlive = true; }; }; }; }; if (pAlive){ currentWave++; initWave(); RunTurn(); return; } else { if (dm.main != null){ if (dm.main.battle_theme != null){ dm.main.battle_theme.fadeOut(); }; dm.main.survivalDefeat(currentWave); }; return; }; }; for each (p in pc_party.members) { if (p == null){ } else { if (p.health <= 0){ } else { r = p.getReplenishing(); if (r){ p.increaseHealthByPercentage(r); p.increasePowerByPercentage(r); }; }; }; }; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Replenish Error: " + error.name) + "\n")); err_txt = (err_txt + (("r: " + r) + "\n")); err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; try { duration = 500; if (dm.main != null){ if (dm.main.battle_theme != null){ dm.main.battle_theme.fadeOut(duration); }; } else { if (parent != null){ if (DungeonMain(parent).battle_theme != null){ DungeonMain(parent).battle_theme.fadeOut(duration); }; }; }; exitedSafely = false; exitTimer = new Timer(duration, 1); exitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, exitBattleTimer); exitTimer.start(); if (DungeonMain.combatBlur){ blurTimer = new Timer((duration - 150), 1); blurTimer.addEventListener(TimerEvent.TIMER_COMPLETE, exitBlur); blurTimer.start(); }; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("End Battle Timer Error: " + error.name) + "\n")); err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; exitBattleTimer(null); }; } function exitBattleTimer(_arg1:TimerEvent):void{ var _local2:Character; if (exitedSafely){ return; }; exitedSafely = true; if (exitTimer != null){ exitTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, exitBattleTimer); }; for each (_local2 in pc_party.members) { _local2.portraitRef = null; }; for each (_local2 in horde.members) { _local2.portraitRef = null; }; if (dm.main != null){ dm.main.PostBattle(horde, pc_party); } else { if (parent != null){ DungeonMain(parent).PostBattle(horde, pc_party); }; }; } private function updateAllBars():void{ var _local1:* = 0; while (_local1 < npc_portraits.length) { npc_portraits[_local1].update(); _local1++; }; _local1 = 0; while (_local1 < pc_portraits.length) { pc_portraits[_local1].update(); _local1++; }; } public function onTurnDelayComplete(_arg1:TimerEvent):void{ var _local2:*; turnDelayTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTurnDelayComplete); updateAllBars(); doNothingTimer = new Timer(500, 1); doNothingTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onDoNothingDelayComplete); doNothingTimer.start(); } private function bonusAttackOn(_arg1:Character):Boolean{ var _local3:int; var _local4:int; var _local5:PlayerCharacter; if (_arg1 == null){ return (false); }; if (_arg1.health <= 0){ return (false); }; var _local2:Array = new Array(); errorCode = 1800; if ((_arg1 is MonsterCharacter)){ if (bonusAttacker != null){ _local2.push(bonusAttacker); errorCode = 1890; } else { errorCode = 1801; for each (_local5 in pc_party.members) { if (_local5 == null){ } else { if (_local5.health <= 0){ } else { if (_local5 == speedlist[turn]){ } else { if (_local5.retreated){ } else { if (_local5.retreating){ } else { if (_local5.stunned_duration){ } else { if (_local5.gear[Equipment.weapon] == null){ } else { errorCode = 1802; if ((((_local5.gear[Equipment.weapon] is RangedWeapon)) || ((_local5.gear[Equipment.weapon] is MageWeapon)))){ _local2.push(_local5); } else { errorCode = 1803; if (CanPlayerHit(_local5, MonsterCharacter(_arg1))){ _local2.push(_local5); } else { continue; }; }; }; }; }; }; }; }; }; }; }; errorCode = 1805; if (_local2.length){ errorCode = 1810; _local4 = dmf.randomNum(0, (_local2.length - 1)); phl.x = EmptyPortrait(getChildByName(("pc" + _local2[_local4].pos))).x; phl.y = EmptyPortrait(getChildByName(("pc" + _local2[_local4].pos))).y; UpdateInfoPanels(); errorCode = 1812; useSkill(_local2[_local4], _local2[_local4].skills[0], _arg1, true); return (true); }; return (false); }; return (false); } private function IncrementTurn():Boolean{ var i:*; var j:*; var err_txt:*; var err_dlg:*; var players_alive:Boolean; var monsters_alive:Boolean; var next_turn:Boolean; errorCode = 6500; turn++; if (turn >= speedlist.length){ turn = 0; errorCode = 6501; i = 0; while (i < speedlist.length) { errorCode = 6502; if (((!((speedlist[i] == null))) && ((speedlist[i] is Character)))){ errorCode = 6503; speedlist[i].hadCombatTurn = false; }; i = (i + 1); }; }; errorCode = 6504; i = 0; while (i < horde.members.length) { if (horde.members[i].health > 0){ monsters_alive = true; }; i = (i + 1); }; errorCode = 6505; i = 0; while (i < pc_party.members.length) { if ((((pc_party.members[i].health > 0)) && ((pc_party.members[i].summoned == false)))){ if (PlayerCharacter(pc_party.members[i]).retreated == false){ players_alive = true; }; }; i = (i + 1); }; errorCode = 6506; if (((((horde.legendary) && ((horde.members[0] is mHydraBody)))) && ((horde.members[0].health <= 0)))){ monsters_alive = false; }; if (!monsters_alive){ horde.defeated = true; }; if (((players_alive) && (monsters_alive))){ next_turn = true; } else { next_turn = false; }; errorCode = 6507; if (next_turn){ try { initDisplay.turnOf(speedlist[turn], true); } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Update Turn Order Error: " + error.name) + "\n")); if (speedlist[turn] != null){ err_txt = (err_txt + (((((("turn: " + turn) + "/") + String((speedlist.length - 1))) + " - ") + speedlist[turn].charname) + "\n")); }; err_txt = (err_txt + (("errorCode: " + errorCode) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { var _local4:* = true; //unresolved jump 1; return (_local4); }; //unresolved jump }; return (false); } function clickPassTurn(_arg1:MouseEvent):void{ if ((speedlist[turn] is PlayerCharacter)){ PassTurn(); }; } function clickRetreat(_arg1:MouseEvent):void{ if ((speedlist[turn] is PlayerCharacter)){ if ((((pc_party.campaign == Campaign.SURVIVAL)) && (!(speedlist[turn].summoned)))){ messages.addMessage((speedlist[turn].charname + " cannot retreat!"), "This battle is to the death."); return; }; if (PlayerCharacter(speedlist[turn]).canQuickRetreat()){ RetreatCharacter(speedlist[turn]); } else { PlayerCharacter(speedlist[turn]).retreating = true; messages.addMessage((speedlist[turn].charname + " is retreating."), ""); PortraitFromCharacter(speedlist[turn]).update(); EndTurn(); }; }; } function clickRetreatAll(_arg1:MouseEvent):void{ if ((speedlist[turn] is PlayerCharacter)){ if (pc_party.campaign == Campaign.SURVIVAL){ if (dm.main.battle_theme != null){ dm.main.battle_theme.fadeOut(0); }; dm.main.survivalDefeat(currentWave); return; } else { retreatAll = true; clickRetreat(_arg1); }; }; } private function PassTurn(){ var _local1:CharacterPortrait = PortraitFromCharacter(speedlist[turn]); passing = true; messages.addMessage((speedlist[turn].charname + " passes."), ""); _local1.addAnimationFrame(pass_animation_frame, (PASS_TURN_DELAY + 500)); if (!speedlist[turn].cancelPowerRegen){ speedlist[turn].powerRegenMod = 2; }; _local1.update(); EndTurn(); } function startDragging(_arg1:MouseEvent):void{ stage.addChild(CharacterPortrait(_arg1.currentTarget)); CharacterPortrait(_arg1.currentTarget).startDrag(); } function mousedOverEvent(_arg1:MouseEvent):void{ var _local2:* = CharacterPortrait(_arg1.currentTarget).char_ref; if (_local2 == null){ return; }; hover = _local2; UpdateInfoPanels(); initDisplay.highlightChar(_local2); drawEffectedTargets(); } function mouseMoveEvent(_arg1:MouseEvent):void{ } private function summonWhirlwind(_arg1:Character, _arg2:int):void{ var _local3:Character = new mWhirlwind(_arg1.level); _local3.pos = _arg2; horde.members.push(_local3); AddCharToCombatGrid(_local3); var _local4:CharacterPortrait = addNewPortrait(_local3); _local4.addPortraitAnimation(PortraitAnimation.summonWhirlwind); } private function addSummon(_arg1:Skill, _arg2:Character, _arg3:int):void{ var _local5:Character; var _local4:* = _arg1.summonsCreatureClass; trace(((((("addSummon: " + _local4) + ". user = ") + _arg2.charname) + ", level = ") + _arg2.level)); if ((_local4 is pShadowWolf)){ _local5 = new pShadowWolf(_arg2.level); } else { if ((_local4 is pShadow)){ _local5 = new pShadow(_arg2.level); } else { if ((_local4 is pManaSprite)){ _local5 = new pManaSprite(_arg2.level); } else { if ((_local4 is pBloodSprite)){ _local5 = new pBloodSprite(_arg2.level); } else { if ((_local4 is pWargolem)){ _local5 = new pWargolem(_arg2.level); } else { if ((_local4 is mVoidstalker)){ _local5 = new mVoidstalker(_arg2.level); } else { _local5 = new _local4.constructor(_arg2.level); }; }; }; }; }; }; _local5.pos = _arg3; if ((_arg2 is MonsterCharacter)){ horde.members.push(_local5); } else { PlayerSummon(_local5).party = pc_party; pc_party.members.push(_local5); if ((_arg2 is PC_Conjuror)){ if (PC_Conjuror(_arg2).aug_strength){ _local5.damage = (_local5.damage + Math.ceil((_local5.damage * (PC_Conjuror(_arg2).aug_strength / 100)))); }; if (PC_Conjuror(_arg2).aug_health){ _local5.health_max = (_local5.health_max + Math.ceil((_local5.health_max * (PC_Conjuror(_arg2).aug_health / 100)))); _local5.health = _local5.health_max; }; }; }; AddCharToCombatGrid(_local5); var _local6:CharacterPortrait = addNewPortrait(_local5); _local6.addPortraitAnimation(PortraitAnimation.summon); if ((_local5 is pShadow)){ _local6.setShadow(); }; } private function drawEffectedTargets():void{ var _local3:*; var _local4:Array; var _local5:*; var _local6:CharacterPortrait; var _local7:PortraitEffected; removePortraitEffected(); if (!(speedlist[turn] is PlayerCharacter)){ return; }; var _local1:* = false; if (getChildByName("skillbar") == null){ return; }; var _local2:* = 0; while (_local2 < valid_targets.length) { if (hover == valid_targets[_local2]){ _local1 = true; }; _local2++; }; if (_local1){ _local3 = skillbar.getSelectedSkill(); _local4 = getEffectedTargets(hover, _local3); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].portraitRef; _local7 = new PortraitEffected(); _local7.x = dmf.getGlobalX(_local6); _local7.y = dmf.getGlobalY(_local6); _local7.name = ("ei" + _local5); bg.addChildAt(_local7, 1); _local5++; }; }; } private function getEffectedTargets(_arg1:Character, _arg2:Skill):Array{ var _local3:*; var _local4:*; var _local5:Array = new Array(); if (_arg2.targetsSelf){ _local5.push(_arg1); } else { if (_arg2.hitsAllEnemies){ _local3 = 0; while (_local3 < horde.members.length) { _local5.push(horde.members[_local3]); _local3++; }; } else { if (_arg2.hitsAllFriendlies){ _local3 = 0; while (_local3 < pc_party.members.length) { _local5.push(pc_party.members[_local3]); _local3++; }; } else { if (_arg2.hitsAllMeleeRange){ _local5 = valid_targets; } else { if (_arg2.piercesColumn){ if (_arg1.pos < 4){ if (horde.memberInPos((_arg1.pos + 3)) != null){ _local5.push(horde.memberInPos((_arg1.pos + 3))); }; } else { if (horde.memberInPos((_arg1.pos - 3)) != null){ _local5.push(horde.memberInPos((_arg1.pos - 3))); }; }; _local5.push(_arg1); } else { if (_arg2.splashDamageMultiplier){ if (_arg1.pos < 4){ if (horde.memberInPos((_arg1.pos + 3)) != null){ _local5.push(horde.memberInPos((_arg1.pos + 3))); }; } else { if (horde.memberInPos((_arg1.pos - 3)) != null){ _local5.push(horde.memberInPos((_arg1.pos - 3))); }; if (_arg2.splashHitsAllies){ if (pc_party.memberInPos((_arg1.pos - 3)) != null){ _local5.push(pc_party.memberInPos((_arg1.pos - 3))); }; }; }; if (((!((_arg1.pos == 4))) && (!((horde.memberInPos((_arg1.pos - 1)) == null))))){ _local5.push(horde.memberInPos((_arg1.pos - 1))); }; if (((!((_arg1.pos == 3))) && (!((horde.memberInPos((_arg1.pos + 1)) == null))))){ _local5.push(horde.memberInPos((_arg1.pos + 1))); }; _local5.push(_arg1); } else { _local5.push(_arg1); }; }; }; }; }; }; _local3 = 0; while (_local3 < _local5.length) { if (_local5[_local3].health <= 0){ _local5.splice(_local3, 1); _local3--; } else { if ((((_local5[_local3] is MonsterCharacter)) && (MonsterCharacter(_local5[_local3]).cannotTarget))){ _local5.splice(_local3, 1); _local3--; } else { if ((((_local5[_local3] is PlayerCharacter)) && (PlayerCharacter(_local5[_local3]).retreated))){ _local5.splice(_local3, 1); _local3--; }; }; }; _local3++; }; return (_local5); } function mousedOutEvent(_arg1:MouseEvent):void{ hover = null; UpdateInfoPanels(); removePortraitEffected(); initDisplay.setNormalColors(); } function stopDragging(_arg1:MouseEvent):void{ var _local6:EmptyPortrait; var _local8:EmptyPortrait; var _local13:PlayerCharacter; var _local14:CharacterPortrait; var _local2:* = 0; var _local3:* = 0; var _local4:* = 0; var _local5:* = 500; if ((((_arg1 == null)) || ((_arg1.currentTarget == null)))){ trace("stopDragging: no current target"); return; }; var _local7:CharacterPortrait = CharacterPortrait(_arg1.currentTarget); var _local9:int; this.addChild(_local7); _local7.stopDrag(); var _local10:* = (_local7.x + (_local7.width / 2)); var _local11:* = (_local7.y + (_local7.height / 2)); var _local12:* = 0; while (_local12 < 6) { _local8 = EmptyPortrait(getChildByName(("pc" + String((_local12 + 1))))); _local2 = (_local8.x + (_local8.width / 2)); _local3 = (_local8.y + (_local8.height / 2)); _local4 = DistanceBetween(_local2, _local3, _local10, _local11); if (_local4 > 80){ } else { if (_local4 < _local5){ _local5 = _local4; _local6 = _local8; _local9 = (_local12 + 1); }; }; _local12++; }; if (_local5 == 500){ _local7.x = EmptyPortrait(getChildByName(("pc" + String(_local7.char_ref.pos)))).x; _local7.y = EmptyPortrait(getChildByName(("pc" + String(_local7.char_ref.pos)))).y; } else { _local13 = pc_party.memberInPos(_local9); _local14 = PortraitFromCharacter(_local13); if (_local13 != null){ _local13.pos = _local7.char_ref.pos; _local14.x = EmptyPortrait(getChildByName(("pc" + String(_local7.char_ref.pos)))).x; _local14.y = EmptyPortrait(getChildByName(("pc" + String(_local7.char_ref.pos)))).y; }; _local7.x = _local6.x; _local7.y = _local6.y; _local7.char_ref.pos = _local9; }; } private function addFloater(_arg1:Character, _arg2:String):void{ var _local3:CombatFloater = new CombatFloater(_arg2); _local3.name = "floater"; if (_arg1.portraitRef != null){ _arg1.portraitRef.addChild(_local3); }; } private function addSpeechBubble(_arg1:Character, _arg2:String):void{ if (_arg1.portraitRef == null){ return; }; var _local3:SpeechBubble = new SpeechBubble(_arg2); var _local4:Point = new Point(5, 59); var _local5:Point = _arg1.portraitRef.localToGlobal(_local4); _local3.x = _local5.x; _local3.y = _local5.y; if (stage != null){ stage.addChild(_local3); }; } private function onFrame(_arg1:Event):void{ var _local3:Character; var _local2:int; _local2 = (pc_portraits.length - 1); while (_local2 >= 0) { _local3 = pc_portraits[_local2].char_ref; if (_local3 != null){ if (((_local3.summoned) && ((pc_portraits[_local2].alpha == 0)))){ pc_party.members.splice(_local2, 1); pc_portraits.splice(_local2, 1); }; }; _local2--; }; _local2 = (npc_portraits.length - 1); while (_local2 >= 0) { _local3 = npc_portraits[_local2].char_ref; if (_local3 != null){ if (((_local3.summoned) && ((npc_portraits[_local2].alpha == 0)))){ horde.members.splice(_local2, 1); npc_portraits.splice(_local2, 1); }; }; _local2--; }; updateCombatGrid(); initDisplay.removeDead(); } public static function DistanceBetween(_arg1:int, _arg2:int, _arg3:int, _arg4:int):int{ var _local5:* = Math.abs((_arg1 - _arg3)); var _local6:* = Math.abs((_arg2 - _arg4)); return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))); } } }//package
Section 35
//BattleFunctions (BattleFunctions) package { public class BattleFunctions { public static function skillBeneficial(_arg1:Skill, _arg2:Character, _arg3:Horde):Boolean{ var _local4:Character = _arg1.char_ref; if (_arg1.aiAlwaysUse == true){ return (true); }; if (((_arg1.damage) && (areEnemies(_arg2, _local4)))){ return (true); }; if (((_arg1.vampiric_percent) && ((_local4.health < _local4.health_max)))){ return (true); }; if (((_arg1.healing) && ((_arg2.health < _arg2.health_max)))){ return (true); }; if (((_arg1.powerRestore) && ((_arg2.power < _arg2.power_max)))){ return (true); }; if ((_arg1.tempDamageResistance > _arg2.temp_damage_resistance)){ return (true); }; if (((_arg1.powerDamage) && (_arg2.power))){ return (true); }; if (((_arg1.powerDrain) && ((_local4.power < _local4.power_max)))){ return (true); }; if (_arg1.clonesPlayers){ return (true); }; if (_arg1.shufflesEnemies){ return (true); }; if (_arg1.transformCreatureClass != null){ return (true); }; if (_arg1.cancelPowerRegen > _arg2.cancelPowerRegen){ return (true); }; if (_arg1.cancelHealthRegen > _arg2.cancelHealthRegen){ return (true); }; if (((_arg1.hydraGrowHeads) && (_arg3.needHydraHeads()))){ return (true); }; if (((_arg1.forceRetreat) && (areEnemies(_arg2, _local4)))){ return (true); }; if (((((_arg1.stun_percent) && ((_arg2.stunned_duration <= 0)))) && ((_arg2.getStunResist() < 100)))){ return (true); }; if (((_arg1.poisonDamage) && ((_arg2.getPoisonResist() < 100)))){ return (true); }; if (((((_arg1.lethality) || (_arg1.addsPowerToLethality))) && (!(_arg2.lethalityImmune)))){ return (true); }; if (((_arg1.removesCurse) && (_arg2.cursed))){ return (true); }; if (((_arg1.removesPoison) && (_arg2.poisoned))){ return (true); }; if (((_arg1.cannotDie) && (!(_arg2.cannotDie)))){ return (true); }; if (((_arg1.invulnerable) && (!(_arg2.invulnerable)))){ return (true); }; if (((_arg1.hidesTarget) && (!(_arg2.hiding)))){ return (true); }; if (((_arg1.intimidating) && (!(_arg2.intimidating)))){ return (true); }; if (_arg1.damageAccuracy > _arg2.accuracy_penalty){ return (true); }; if (_arg1.crippling > _arg2.crippled){ return (true); }; if (_arg1.woundsRestorePower > _arg2.woundsRestorePower){ return (true); }; if (_arg1.curse > _arg2.cursed){ return (true); }; if (_arg1.buff_resistPoison > _arg2.buff_resistPoison){ return (true); }; if (_arg1.buff_resistStun > _arg2.buff_resistStun){ return (true); }; if (_arg1.buff_damageResist > _arg2.buff_damageResist){ return (true); }; if (_arg1.buff_damageReflect > _arg2.buff_damageReflect){ return (true); }; if (_arg1.buff_healthRegen > _arg2.buff_healthRegen){ return (true); }; if (_arg1.buff_powerRegen > _arg2.buff_powerRegen){ return (true); }; if (_arg1.buff_vampiric > _arg2.buff_vampiric){ return (true); }; if (_arg1.buff_stun > _arg2.buff_stun){ return (true); }; if (_arg1.buff_quickness > _arg2.buff_quickness){ return (true); }; if (_arg1.buff_damage > _arg2.buff_damage){ return (true); }; if (_arg1.buff_accuracy > _arg2.buff_accuracy){ return (true); }; if (_arg1.buff_quickness > _arg2.buff_quickness){ return (true); }; if (_arg1.debuff_damageResist > _arg2.debuff_damageResist){ return (true); }; if (_arg1.debuff_damage < _arg2.debuff_damage){ return (true); }; if (_arg1.targetDamageMod != 1){ if (areEnemies(_local4, _arg2)){ if (_arg1.targetDamageMod < _arg2.damageMod){ return (true); }; } else { if (_arg1.targetDamageMod > _arg2.damageMod){ return (true); }; }; }; if (_arg1.makeDamageSponge){ if ((((_arg2 is PlayerCharacter)) && ((Battlefield.damageSpongePlayer == null)))){ return (true); }; if ((((_arg2 is MonsterCharacter)) && ((Battlefield.damageSpongeMonster == null)))){ return (true); }; }; return (false); } public static function findMonsterTargets(_arg1:MonsterCharacter, _arg2:Skill, _arg3:Horde, _arg4:Array, _arg5:Party):Array{ var _local6:*; var _local7:*; var _local8:*; var _local10:*; var _local11:*; var _local16:PlayerCharacter; var _local17:MonsterCharacter; var _local18:PlayerCharacter; var _local19:*; var _local9:Array = new Array(0); var _local12:* = 0; var _local13:* = 0; var _local14:* = _arg1.pos; if (!_arg2.usable()){ return (_local9); }; if (((!((_arg2.aiCastLimit == -1))) && ((_arg2.aiCastCount >= _arg2.aiCastLimit)))){ return (_local9); }; if (((_arg2.aiNotUnlessHurt) && ((_arg1.health == _arg1.health_max)))){ return (_local9); }; if (((_arg2.aiNotUnlessLowPower) && ((_arg1.power > 20)))){ return (_local9); }; if (((_arg2.aiOnlyWhenHordeDead) && ((_arg3.aliveCount > 1)))){ return (_local9); }; if (_local14 > 3){ _local12 = (_local14 % 4); } else { _local12 = (_local14 - 1); }; _local13 = (Math.ceil((_local14 / 3)) - 1); if (_arg2.targetsEmpty){ if (_arg2.summonsCreatureClass != null){ if (_arg3.members.length < 6){ _local9.push(_arg1); return (_local9); }; }; } else { if (_arg2.requiresVerticalGap){ trace("finding valid targets for sk.requiresVerticalGap (monster)"); if (_arg1.pos < 4){ trace("user in back row"); _local17 = _arg3.memberInPos((_arg1.pos + 3)); if ((((_local17 == null)) || (_local17.isInactive()))){ _local16 = _arg4[(_arg1.pos - 1)][2]; if ((((_local16 == null)) || (_local16.isInactive()))){ _local16 = _arg4[(_arg1.pos - 1)][3]; }; }; } else { trace("user in front row"); _local18 = _arg4[(_arg1.pos - 4)][2]; if ((((_local18 == null)) || (_local18.isInactive()))){ _local16 = _arg4[(_arg1.pos - 4)][3]; }; }; if (_local16 != null){ if (validTargetForMonster(_local16, _arg2)){ trace("add to target list"); _local9.push(_local16); }; }; } else { if (_arg2.hitsAllFriendlies){ _local6 = 0; while (_local6 < _arg3.members.length) { if (validTargetForMonster(_arg3.members[_local6], _arg2)){ if (_arg3.members[_local6] != _arg1){ _local9.push(_arg3.members[_local6]); }; }; _local6++; }; } else { if (_arg2.targetsFriendlies){ _local6 = 0; while (_local6 < _arg3.members.length) { if (validTargetForMonster(_arg3.members[_local6], _arg2)){ if (_arg3.members[_local6] != _arg1){ _local9.push(_arg3.members[_local6]); }; }; _local6++; }; } else { if (_arg2.targetsSelf){ if (((!(_arg2.aiAllowSuicide)) && ((_arg1.health <= _arg2.damage)))){ return (_local9); }; _local9.push(_arg1); } else { if (_arg2.hydraGrowHeads){ if (_arg3.needHydraHeads()){ _local9.push(_arg1); }; } else { if (_arg2.rangedAttack){ _local6 = 0; while (_local6 < _arg5.members.length) { if (validTargetForMonster(_arg5.members[_local6], _arg2)){ _local9.push(_arg5.members[_local6]); }; _local6++; }; } else { _local19 = false; if (_local14 < 4){ _local6 = 0; while (_local6 < 3) { if (_arg4[_local6][1] != null){ if ((((_arg4[_local6][1].health > 0)) && (!(_arg4[_local6][1].hiding)))){ _local19 = true; }; }; _local6++; }; }; if (Battlefield.damageSpongePlayer != null){ _local9.push(Battlefield.damageSpongePlayer); }; if ((((_local14 > 3)) || ((((_local14 < 4)) && (!(_local19)))))){ _local10 = 0; _local6 = 0; while (_local6 < 3) { if (validTargetForMonster(_arg4[_local6][2], _arg2)){ _local10++; _local8 = Character(_arg4[_local6][2]); }; _local6++; }; if (_local10 == 1){ _local9.push(_local8); } else { if (_local10 > 0){ if (validTargetForMonster(_arg4[_local12][2], _arg2)){ _local9.push(_arg4[_local12][2]); }; if ((_local12 - 1) >= 0){ if (validTargetForMonster(_arg4[(_local12 - 1)][2], _arg2)){ _local9.push(_arg4[(_local12 - 1)][2]); }; }; if ((_local12 + 1) < 3){ if (validTargetForMonster(_arg4[(_local12 + 1)][2], _arg2)){ _local9.push(_arg4[(_local12 + 1)][2]); }; }; } else { if (_local10 == 0){ _local11 = 0; _local6 = 0; while (_local6 < 3) { if (validTargetForMonster(_arg4[_local6][3], _arg2)){ _local11++; _local8 = Character(_arg4[_local6][3]); }; _local6++; }; if (_local11 == 1){ _local9.push(_local8); } else { if (_local11 > 0){ if (validTargetForMonster(_arg4[_local12][3], _arg2)){ _local9.push(_arg4[_local12][3]); }; if ((_local12 - 1) >= 0){ if (validTargetForMonster(_arg4[(_local12 - 1)][3], _arg2)){ _local9.push(_arg4[(_local12 - 1)][3]); }; }; if ((_local12 + 1) < 3){ if (validTargetForMonster(_arg4[(_local12 + 1)][3], _arg2)){ _local9.push(_arg4[(_local12 + 1)][3]); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; var _local15:Array = new Array(); _local6 = 0; while (_local6 < _local9.length) { if (BattleFunctions.skillBeneficial(_arg2, _local9[_local6], _arg3)){ _local15.push(_local9[_local6]); }; _local6++; }; return (_local15); } public static function validTargetForMonster(_arg1:Character, _arg2:Skill):Boolean{ if (_arg1 != null){ if ((_arg1 is PlayerCharacter)){ if (PlayerCharacter(_arg1).retreated){ return (false); }; if (((!((Battlefield.damageSpongePlayer == null))) && (!((Battlefield.damageSpongePlayer == _arg1))))){ return (false); }; }; if ((((_arg1 is MonsterCharacter)) && (MonsterCharacter(_arg1).cannotTarget))){ return (false); }; if (((_arg2.aiTargetOnlyLowHealth) && ((_arg1.getHealthPercent() >= 33)))){ return (false); }; if (((_arg2.targetsFriendlyFrontRow) && ((_arg1.pos < 4)))){ return (false); }; if (((_arg2.aiTargetsBackRow) && ((_arg1.pos <= 3)))){ return (false); }; if (((_arg2.makeDamageSponge) && (!((Battlefield.damageSpongeMonster == null))))){ return (false); }; if (((_arg2.targetsStunned) && (!(_arg1.stunned_duration)))){ return (false); }; if (((_arg2.targetsSummoned) && (!(_arg1.summoned)))){ return (false); }; if (_arg1.hiding){ return (false); }; if (_arg2.resurrects){ if (_arg1.health <= 0){ return (true); }; return (false); }; if (((_arg2.healing) && ((_arg1.health >= _arg1.health_max)))){ return (false); }; if (_arg1.health > 0){ return (true); }; }; return (false); } public static function areEnemies(_arg1:Character, _arg2:Character):Boolean{ if ((((_arg1 is PlayerCharacter)) && ((_arg2 is MonsterCharacter)))){ return (true); }; if ((((_arg1 is MonsterCharacter)) && ((_arg2 is PlayerCharacter)))){ return (true); }; return (false); } } }//package
Section 36
//BattleInfoPanel (BattleInfoPanel) package { import flash.events.*; import flash.display.*; import flash.text.*; public class BattleInfoPanel extends MovieClip { const color_red:uint = 0xE90000; const color_white:uint = 0xFFFFFF; const color_green:uint = 52275; var portrait_w;// = 20 var portrait_h;// = 20 public var accuracy_number:TextField; public var damage_resist_number:TextField; public var poison_resist_number:TextField; public var stun_resist_number:TextField; public var name_label:TextField; public var level_label:TextField; public var description_label:TextField; public var health_bar:NumericIndicatorHealth; public var power_bar:NumericIndicatorPower; public var large_portrait:CharGraphic; public var regenHealthAmount:TextField; public var regenPowerAmount:TextField; public function BattleInfoPanel(){ portrait_w = large_portrait.width; portrait_h = large_portrait.height; accuracy_number.addEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); damage_resist_number.addEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); poison_resist_number.addEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); stun_resist_number.addEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); accuracy_number.addEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); damage_resist_number.addEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); poison_resist_number.addEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); stun_resist_number.addEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); addEventListener(Event.REMOVED_FROM_STAGE, mouseOutIcons); } private function mouseOverIcons(_arg1:MouseEvent):void{ mouseOutIcons(); var _local2:BattleInfoPanelKey = new BattleInfoPanelKey(); _local2.name = "BattleInfoTooltip"; _local2.x = 130.5; _local2.y = (this.y + 10); dm.stage.addChild(_local2); } private function mouseOutIcons(_arg1:Event=null):void{ var _local2:*; if (dm.stage != null){ _local2 = dm.stage.getChildByName("BattleInfoTooltip"); if (_local2 != null){ dm.stage.removeChild(_local2); }; }; } public function cleanup():void{ mouseOutIcons(); removeEventListener(Event.REMOVED_FROM_STAGE, mouseOutIcons); accuracy_number.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); damage_resist_number.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); poison_resist_number.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); stun_resist_number.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverIcons); accuracy_number.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); damage_resist_number.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); poison_resist_number.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); stun_resist_number.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutIcons); } public function setChar(_arg1:Character):void{ name_label.text = _arg1.charname; dmf.embolden(name_label); level_label.text = ((("Level " + String(_arg1.level)) + " ") + _arg1.classname); UpdateDescription(description_label, _arg1); large_portrait.setChar(_arg1); regenHealthAmount.text = String(_arg1.getHealthRegen()); regenPowerAmount.text = String(_arg1.getPowerRegen()); health_bar.bar.width = ((60 / 100) * _arg1.getHealthPercent()); health_bar.numbers.text = ((String(_arg1.health) + "/") + String(_arg1.health_max)); power_bar.bar.width = ((60 / 100) * _arg1.getPowerPercent()); power_bar.numbers.text = ((String(_arg1.power) + "/") + String(_arg1.power_max)); if (getChildByName("health_bar") == null){ addChild(health_bar); }; if (getChildByName("power_bar") == null){ addChild(power_bar); }; accuracy_number.text = (String(_arg1.getAccuracy()) + "%"); damage_resist_number.text = (String(_arg1.getDamageResist()) + "%"); poison_resist_number.text = (String(_arg1.getPoisonResist()) + "%"); stun_resist_number.text = (String(_arg1.getStunResist()) + "%"); var _local2:* = 0; if ((_arg1 is MonsterCharacter)){ _local2 = MonsterCharacter(_arg1).damage_resistance; } else { if ((_arg1 is PlayerCharacter)){ _local2 = PlayerCharacter(_arg1).getDamageReductionFromArmor(); }; }; var _local3:* = (_arg1.getPoisonResist() - _arg1.buff_resistPoison); var _local4:* = (_arg1.getStunResist() - _arg1.buff_resistStun); accuracy_number.textColor = getColorForText(_arg1.accuracy, _arg1.getAccuracy()); damage_resist_number.textColor = getColorForText(_local2, _arg1.getDamageResist()); poison_resist_number.textColor = getColorForText(_local3, _arg1.getPoisonResist()); stun_resist_number.textColor = getColorForText(_local4, _arg1.getStunResist()); } private function getColorForText(_arg1, _arg2):uint{ if (_arg2 > _arg1){ return (color_green); }; if (_arg2 < _arg1){ return (color_red); }; return (color_white); } private function UpdateDescription(_arg1:TextField, _arg2:Character){ var _local3:String; if ((_arg2 is PlayerCharacter)){ _local3 = ""; } else { _local3 = (_arg2.description + "\n "); }; if (_arg2.lethalityImmune){ _local3 = (_local3 + "'Instant Kill' Immunity, "); }; if (((parent) && ((parent is Battlefield)))){ if (((((!((Battlefield.damageSpongePlayer == null))) && ((_arg2 is PlayerCharacter)))) && ((Battlefield.damageSpongePlayer == _arg2)))){ _local3 = (_local3 + "Protecting Allies! "); } else { if (((((!((Battlefield.damageSpongeMonster == null))) && ((_arg2 is MonsterCharacter)))) && ((Battlefield.damageSpongeMonster == _arg2)))){ _local3 = (_local3 + "Protecting Allies! "); }; }; }; if (_arg2.cancelPowerRegen){ _local3 = (_local3 + (("No Power Regeneration(" + _arg2.cancelPowerRegen) + "), ")); }; if (_arg2.cancelHealthRegen){ _local3 = (_local3 + (("No Health Regeneration(" + _arg2.cancelHealthRegen) + "), ")); }; if (_arg2.woundsRestorePower){ _local3 = (_local3 + (("Wounds Restore Power(" + _arg2.woundsRestorePower) + "), ")); }; if (_arg2.intimidating){ _local3 = (_local3 + "Intimidating, "); }; if (_arg2.damageMod != 1){ _local3 = (_local3 + (("Next Attack(" + Math.round((_arg2.damageMod * 100))) + "%), ")); }; if (_arg2.powerRegenMod != 1){ _local3 = (_local3 + (("Temp Power Regen(" + Math.round((_arg2.powerRegenMod * 100))) + "%), ")); }; if (_arg2.cursed){ _local3 = (_local3 + (("Cursed(" + (_arg2.cursed * 100)) + "%), ")); }; if (_arg2.temp_damage_resistance){ _local3 = (_local3 + (("Temp Damage Resist(" + _arg2.temp_damage_resistance) + "), ")); }; if (_arg2.buff_resistPoison){ _local3 = (_local3 + (("Buff Resist Poison(" + _arg2.buff_resistPoison) + "), ")); }; if (_arg2.buff_resistStun){ _local3 = (_local3 + (("Buff Resist Stun(" + _arg2.buff_resistStun) + "), ")); }; if (_arg2.buff_damageResist){ _local3 = (_local3 + (("Buff Damage Resist(" + _arg2.buff_damageResist) + "), ")); }; if (_arg2.buff_damageReflect){ _local3 = (_local3 + (("Buff Damage Reflect(" + _arg2.buff_damageReflect) + "), ")); }; if (_arg2.buff_healthRegen){ _local3 = (_local3 + (("Buff Health Regen(" + _arg2.buff_healthRegen) + "), ")); }; if (_arg2.buff_powerRegen){ _local3 = (_local3 + (("Buff Power Regen(" + _arg2.buff_powerRegen) + "), ")); }; if (_arg2.buff_vampiric){ _local3 = (_local3 + (("Buff Health Drain(" + _arg2.buff_vampiric) + "), ")); }; if (_arg2.buff_stun){ _local3 = (_local3 + (("Buff Stun Chance(" + _arg2.buff_stun) + "), ")); }; if (_arg2.buff_quickness){ _local3 = (_local3 + (("Buff Quickness(" + _arg2.buff_quickness) + "), ")); }; if (_arg2.buff_damage != 1){ _local3 = (_local3 + (("Buff Damage(+" + (Math.round((_arg2.buff_damage * 100)) - 100)) + "%), ")); }; if (_arg2.buff_accuracy){ _local3 = (_local3 + (("Buff Accuracy(" + _arg2.buff_accuracy) + "), ")); }; if (_arg2.debuff_damageResist){ _local3 = (_local3 + (("Reduce Damage Resist(" + _arg2.debuff_damageResist) + "), ")); }; if (_arg2.debuff_damage != 1){ _local3 = (_local3 + (("Reduce Damage(" + Math.round(((1 - _arg2.debuff_damage) * 100))) + "%), ")); }; if (_arg2.potion_damage_resist){ _local3 = (_local3 + (("Potion Armor(+" + _arg2.potion_damage_resist) + "%), ")); }; if (_arg2.potion_damage_bonus){ _local3 = (_local3 + (("Potion Damage(+" + _arg2.potion_damage_bonus) + "%), ")); }; if (_arg2.potion_poison_resist){ _local3 = (_local3 + (("Potion Poison Resist(+" + _arg2.potion_poison_resist) + "%), ")); }; if (_arg2.potion_stun_resist){ _local3 = (_local3 + (("Potion Stun Resist(+" + _arg2.potion_stun_resist) + "%), ")); }; if (_arg2.potion_quickness_bonus){ _local3 = (_local3 + (("Potion Quickness(+" + _arg2.potion_quickness_bonus) + "), ")); }; if (_arg2.poisoned){ _local3 = (_local3 + (("Poisoned(" + _arg2.poisoned) + "), ")); }; if (_arg2.accuracy_penalty){ _local3 = (_local3 + (("Blinded(" + _arg2.accuracy_penalty) + "), ")); }; if (_arg2.crippled){ _local3 = (_local3 + (("Slowed(" + _arg2.crippled) + "), ")); }; if (_arg2.stunned_duration){ _local3 = (_local3 + (("Stunned(" + _arg2.stunned_duration) + "), ")); }; if (_arg2.cannotDie){ _local3 = (_local3 + (("Defiant(" + _arg2.cannotDie) + "), ")); }; if (_arg2.invulnerable){ _local3 = (_local3 + (("Invulnerable(" + _arg2.invulnerable) + "), ")); }; if ((((_arg2 is PlayerCharacter)) && (PlayerCharacter(_arg2).retreating))){ _local3 = (_local3 + "Retreating, "); }; if ((((_arg2 is PlayerCharacter)) && (PlayerCharacter(_arg2).retreated))){ _local3 = (_local3 + "Retreated, "); }; if (_arg2.hiding){ _local3 = (_local3 + "Hidden, "); }; if (_local3.length > 1){ _local3 = _local3.slice(0, (_local3.length - 2)); }; _arg1.text = _local3; } } }//package
Section 37
//BattleInfoPanelKey (BattleInfoPanelKey) package { import flash.display.*; public dynamic class BattleInfoPanelKey extends MovieClip { } }//package
Section 38
//battlements_loop02 (battlements_loop02) package { import flash.media.*; public dynamic class battlements_loop02 extends Sound { } }//package
Section 39
//BattleMessageBox (BattleMessageBox) package { import flash.events.*; import flash.display.*; import flash.text.*; public class BattleMessageBox extends MovieClip { var messages1:Array; var messages2:Array; var current:int;// = -1 public var line1:TextField; public var line2:TextField; public var previous_btn:BattleMessageScroller; public var next_btn:BattleMessageScroller; public function BattleMessageBox():void{ messages1 = new Array(); messages2 = new Array(); previous_btn.addEventListener(MouseEvent.MOUSE_DOWN, goPrevious); next_btn.addEventListener(MouseEvent.MOUSE_DOWN, goNext); previous_btn.doubleClickEnabled = true; next_btn.doubleClickEnabled = true; previous_btn.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickArrow); next_btn.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickArrow); previous_btn.useHandCursor = false; next_btn.useHandCursor = false; previousEnabled(false); nextEnabled(false); } public function cleanup():void{ previous_btn.removeEventListener(MouseEvent.MOUSE_DOWN, goPrevious); next_btn.removeEventListener(MouseEvent.MOUSE_DOWN, goNext); previous_btn.removeEventListener(MouseEvent.DOUBLE_CLICK, doubleClickArrow); next_btn.removeEventListener(MouseEvent.DOUBLE_CLICK, doubleClickArrow); } public function clearAll():void{ current = 0; messages1.length = 0; messages2.length = 0; line1.text = ""; line2.text = ""; previousEnabled(false); nextEnabled(false); } private function displayCurrent():void{ if ((((current < 0)) || (!(messages1.length)))){ return; }; display(current); } private function display(_arg1:int):void{ line1.text = String(messages1[_arg1]); line2.text = String(messages2[_arg1]); dm.embolden(line1); dm.embolden(line2); if (_arg1 < (messages1.length - 1)){ nextEnabled(true); } else { nextEnabled(false); }; if (_arg1 > 0){ previousEnabled(true); } else { previousEnabled(false); }; } private function previousEnabled(_arg1:Boolean):void{ if (((_arg1) && (!(this.contains(previous_btn))))){ addChild(previous_btn); } else { if (((!(_arg1)) && (this.contains(previous_btn)))){ removeChild(previous_btn); }; }; } private function nextEnabled(_arg1:Boolean):void{ if (((_arg1) && (!(this.contains(next_btn))))){ addChild(next_btn); } else { if (((!(_arg1)) && (this.contains(next_btn)))){ removeChild(next_btn); }; }; } function goPrevious(_arg1:MouseEvent):void{ current = Math.max((current - 1), 0); displayCurrent(); } function goNext(_arg1:MouseEvent):void{ current = Math.min((current + 1), (messages1.length - 1)); displayCurrent(); } public function addMessage(_arg1:String, _arg2:String):void{ current = messages1.length; messages1.push(_arg1); messages2.push(_arg2); displayCurrent(); } public function updateMostRecent(_arg1:String, _arg2:String):void{ var _local3:* = (messages1.length - 1); if (_arg1.length){ messages1[_local3] = (messages1[_local3] + _arg1); }; if (_arg2.length){ messages2[_local3] = (messages2[_local3] + _arg2); }; display(_local3); } function doubleClickArrow(_arg1:MouseEvent):void{ } } }//package
Section 40
//BattleMessageScroller (BattleMessageScroller) package { import flash.display.*; public dynamic class BattleMessageScroller extends SimpleButton { } }//package
Section 41
//BattleMusic (BattleMusic) package { import flash.media.*; public class BattleMusic extends Music { public function BattleMusic(_arg1:Boolean=true, _arg2:Horde=null):void{ var _local3:Sound; super(); if (_arg2 == null){ _local3 = new rollingthunder_c(); } else { if (_arg2.legendary){ _local3 = new rollingthunder_c(); } else { if (_arg2.isCampaignBoss()){ _local3 = new morpheus_calls_loop02(); } else { if (_arg2.race == Horde.dwarves){ _local3 = new battlements_loop02(); } else { if (_arg2.race == Horde.undead){ _local3 = new black_mountain_loop01(); } else { if (_arg2.race == Horde.greenskins){ _local3 = new stormbringers_loop01(); } else { if (_arg2.race == Horde.creatures){ _local3 = new bonebreaker_loop03(); } else { if (_arg2.race == Horde.cultists){ _local3 = new hellwars_loop02(); } else { _local3 = new rollingthunder_c(); }; }; }; }; }; }; }; }; channel = _local3.play(0, 99999); if (channel == null){ return; }; active = true; if (_arg1){ this.fadeIn(750); } else { this.setVolume(volumeSetting); }; } } }//package
Section 42
//beer_effect (beer_effect) package { import flash.display.*; public dynamic class beer_effect extends MovieClip { public function beer_effect(){ addFrameScript(4, frame5, 49, frame50); } function frame5(){ dm.sound.play(SoundControl.potionSound); } function frame50(){ this.stop(); } } }//package
Section 43
//black_mountain_loop01 (black_mountain_loop01) package { import flash.media.*; public dynamic class black_mountain_loop01 extends Sound { } }//package
Section 44
//blind_effect (blind_effect) package { import flash.display.*; public dynamic class blind_effect extends MovieClip { public function blind_effect(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ dm.sound.play(SoundControl.blind); } function frame20(){ this.gotoAndStop(20); } } }//package
Section 45
//blind_sound (blind_sound) package { import flash.media.*; public dynamic class blind_sound extends Sound { } }//package
Section 46
//BloodRandom (BloodRandom) package { import flash.display.*; public dynamic class BloodRandom extends MovieClip { public var f; public function BloodRandom(){ addFrameScript(0, frame1); } function frame1(){ f = DungeonMain.RandomNum(1, this.totalFrames); this.gotoAndStop(f); } } }//package
Section 47
//blueburst (blueburst) package { import flash.display.*; public dynamic class blueburst extends MovieClip { } }//package
Section 48
//bonebreaker_loop03 (bonebreaker_loop03) package { import flash.media.*; public dynamic class bonebreaker_loop03 extends Sound { } }//package
Section 49
//buff_chant_sound (buff_chant_sound) package { import flash.media.*; public dynamic class buff_chant_sound extends Sound { } }//package
Section 50
//buff_effect (buff_effect) package { import flash.display.*; public dynamic class buff_effect extends MovieClip { public function buff_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.buff); } function frame45(){ this.stop(); } } }//package
Section 51
//buff_quickness_effect (buff_quickness_effect) package { import flash.display.*; public dynamic class buff_quickness_effect extends MovieClip { } }//package
Section 52
//BuyPanel (BuyPanel) package { import flash.display.*; public dynamic class BuyPanel extends Sprite { public var consumablesTab:ItemModeTab; public var buyButton:MovieClip; public var armorLightTab:ItemModeTab; public var armorHeavyTab:ItemModeTab; public var buyDisabler:MovieClip; public var armorMediumTab:ItemModeTab; public var accessoriesTab:ItemModeTab; public var weaponsTab:ItemModeTab; public var allTab:ItemModeTab; public var buyList:ShopListScrolling; } }//package
Section 53
//BuySellTab (BuySellTab) package { import flash.display.*; import flash.text.*; public dynamic class BuySellTab extends MovieClip { public var tab_text:TextField; } }//package
Section 54
//BuySkillPanel (BuySkillPanel) package { import flash.events.*; import flash.display.*; import flash.text.*; public class BuySkillPanel extends Sprite { public var bg:MovieClip; public var sk_description:TextField; public var sk_icon:SkillIcon; public var buyButton:SimpleButton; public var skill:Skill; public var isSelected:Boolean;// = false public function BuySkillPanel():void{ bg.gotoAndStop("normal"); buyButton.addEventListener(MouseEvent.MOUSE_DOWN, clicked); } public function cleanup():void{ sk_icon.cleanup(); buyButton.removeEventListener(MouseEvent.MOUSE_DOWN, clicked); } function clicked(_arg1:MouseEvent):void{ if ((((parent == null)) || (!((parent is BuySkills))))){ return; }; if (BuySkills(parent).pointsFree > 0){ isSelected = true; BuySkills(parent).skillSelected(); setBlank(); }; } public function setBlank():void{ if (this.contains(sk_description)){ removeChild(sk_description); }; if (this.contains(sk_icon)){ removeChild(sk_icon); }; removeButton(); cleanup(); } public function removeButton():void{ if (this.contains(buyButton)){ removeChild(buyButton); }; } public function setSkill(_arg1:Skill):void{ if (_arg1 == null){ return; }; this.skill = _arg1; sk_icon.gotoAndStop(_arg1.iconFrame); sk_icon.setSkill(_arg1); sk_icon.setOwner(PlayerCharacter(_arg1.char_ref)); sk_icon.setUsable(_arg1.usable(true)); sk_description.mouseEnabled = false; sk_description.text = _arg1.skillname; dm.embolden(sk_description); } } }//package
Section 55
//BuySkillPanelR (BuySkillPanelR) package { public dynamic class BuySkillPanelR extends BuySkillPanel { } }//package
Section 56
//BuySkills (BuySkills) package { import flash.events.*; import flash.display.*; import flash.text.*; public class BuySkills extends MovieClip { var char_ref:PlayerCharacter; var info_panel:CharInfoPanel; var pointsFree:int;// = 0 public var sk1:BuySkillPanel; public var sk2:BuySkillPanel; public var sk3:BuySkillPanel; public var sk4:BuySkillPanel; public var sk5:BuySkillPanelR; public var sk6:BuySkillPanelR; public var sk7:BuySkillPanelR; public var sk8:BuySkillPanelR; public var pass1_description:TextField; public var pass2_description:TextField; public var pass1_icon:PassiveSkillIcon; public var pass2_icon:PassiveSkillIcon; public var pass1_button:SimpleButton; public var pass2_button:SimpleButton; public var points_txt:TextField; public var continue_btn:MovieClip; public var cancel_btn:MovieClip; public var pass1_points:int;// = 0 public var pass2_points:int;// = 0 public function BuySkills(_arg1:CharInfoPanel=null){ if (_arg1 != null){ this.info_panel = _arg1; }; continue_btn.addEventListener(MouseEvent.MOUSE_DOWN, continueClick); cancel_btn.addEventListener(MouseEvent.MOUSE_DOWN, cancelClick); } public function cleanup():void{ var _local2:*; continue_btn.removeEventListener(MouseEvent.MOUSE_DOWN, continueClick); cancel_btn.removeEventListener(MouseEvent.MOUSE_DOWN, cancelClick); var _local1:* = 1; while (_local1 <= 8) { _local2 = getChildByName(("sk" + _local1)); if (_local2 != null){ _local2.cleanup(); }; _local1++; }; pass1_button.removeEventListener(MouseEvent.MOUSE_DOWN, passive1Click); pass2_button.removeEventListener(MouseEvent.MOUSE_DOWN, passive2Click); } function continueClick(_arg1:MouseEvent):void{ var _local3:*; var _local2:* = 1; while (_local2 <= 8) { _local3 = getChildByName(("sk" + _local2)); if (_local3 == null){ } else { if (((_local3.isSelected) && (!((_local3.skill == null))))){ _local3.skill.unlocked = true; }; }; _local2++; }; char_ref.passive_skill_offense = Math.min(25, (char_ref.passive_skill_offense + pass1_points)); char_ref.passive_skill_defense = Math.min(25, (char_ref.passive_skill_defense + pass2_points)); char_ref.skill_points = pointsFree; this.cleanup(); if (info_panel != null){ info_panel.updateValues(); }; if (stage != null){ stage.removeChild(this); }; } function cancelClick(_arg1:MouseEvent):void{ this.cleanup(); if (parent != null){ stage.removeChild(this); }; } public function skillSelected():void{ pointsFree--; updateSkillPoints(); } public function skillDeselected():void{ pointsFree++; updateSkillPoints(); } private function updateSkillPoints():void{ var _local1:*; var _local2:*; points_txt.text = String(pointsFree); dm.embolden(points_txt); if (!pointsFree){ _local1 = 1; while (_local1 <= 8) { _local2 = getChildByName(("sk" + _local1)); if (_local2 != null){ _local2.removeButton(); }; _local1++; }; if (contains(pass1_button)){ removeChild(pass1_button); }; if (contains(pass2_button)){ removeChild(pass2_button); }; }; } public function setChar(_arg1:PlayerCharacter):void{ var _local2:*; if (_arg1 == null){ return; }; char_ref = _arg1; var _local3:* = 1; var _local4:* = 0; while (_local4 < _arg1.skills.length) { if (_arg1.skills[_local4].unlocked){ } else { _local2 = getChildByName(("sk" + _local3)); if (_local2 == null){ } else { _local2.setSkill(_arg1.skills[_local4]); _local3++; }; }; _local4++; }; _local4 = _local3; while (_local4 <= 8) { _local2 = getChildByName(("sk" + _local4)); if (_local2 != null){ _local2.setBlank(); }; _local4++; }; if (_arg1.passive_skill_offense < 25){ pass1_description.text = _arg1.getPassiveSkillName(true); dmf.embolden(pass1_description); pass1_icon.updateSkill(_arg1, true); pass1_button.addEventListener(MouseEvent.MOUSE_DOWN, passive1Click); } else { removePassive1(); }; if (_arg1.passive_skill_defense < 25){ pass2_description.text = _arg1.getPassiveSkillName(false); dmf.embolden(pass2_description); pass2_icon.updateSkill(_arg1, false); pass2_button.addEventListener(MouseEvent.MOUSE_DOWN, passive2Click); } else { removePassive2(); }; pointsFree = _arg1.skill_points; updateSkillPoints(); } private function removePassive1():void{ if (contains(pass1_description)){ removeChild(pass1_description); }; if (contains(pass1_icon)){ removeChild(pass1_icon); }; if (contains(pass1_button)){ removeChild(pass1_button); }; } private function removePassive2():void{ if (contains(pass2_description)){ removeChild(pass2_description); }; if (contains(pass2_icon)){ removeChild(pass2_icon); }; if (contains(pass2_button)){ removeChild(pass2_button); }; } private function passive1Click(_arg1:MouseEvent):void{ if (((pointsFree) && (((char_ref.passive_skill_offense + pass1_points) < 25)))){ pass1_points++; pass1_icon.setSkillRank((char_ref.passive_skill_offense + pass1_points)); skillSelected(); if ((char_ref.passive_skill_offense + pass1_points) == 25){ removePassive1(); }; }; } private function passive2Click(_arg1:MouseEvent):void{ if (((pointsFree) && (((char_ref.passive_skill_defense + pass2_points) < 25)))){ pass2_points++; pass2_icon.setSkillRank((char_ref.passive_skill_defense + pass2_points)); skillSelected(); if ((char_ref.passive_skill_defense + pass2_points) == 25){ removePassive2(); }; }; } } }//package
Section 57
//Campaign (Campaign) package { public class Campaign { public static const ORIGINAL = 1; public static const DELUXE = 2; public static const INFINITE = 3; public static const SURVIVAL = 4; static const WAVES:int = 20; public static function getName(_arg1:int):String{ switch (_arg1){ case ORIGINAL: return ("The Den of Corruption"); case DELUXE: return ("The Den of Terror"); case INFINITE: return ("The Den of Endless Evil"); case SURVIVAL: return ("The Fall of Tellunos"); default: return ("The Den of Mysteriousness(??)"); }; } public static function setForSurvivalWave(_arg1:Horde, _arg2:int):void{ var _local3:MonsterCharacter; _arg1.members.length = 0; var _local4 = 9; _local4 = (_local4 + Math.ceil((_arg2 / WAVES))); _arg2 = (_arg2 % WAVES); if (_arg2 == 0){ _arg2 = 20; }; trace(((("setting up for wave " + _arg2) + ", level ") + _local4)); switch (_arg2){ case 1: addWaveMonster(new mSkeleton(_local4), 4, _arg1); addWaveMonster(new mSkeleton(_local4), 6, _arg1); addWaveMonster(new mVampire(_local4), 2, _arg1); break; case 2: addWaveMonster(new mOrcBerserker(_local4), 4, _arg1); addWaveMonster(new mOrcBerserker(_local4), 6, _arg1); addWaveMonster(new mOrcChampion(_local4), 5, _arg1); break; case 3: addWaveMonster(new mCultNeophyte(_local4), 4, _arg1); addWaveMonster(new mCultNeophyte(_local4), 5, _arg1); addWaveMonster(new mCultNeophyte(_local4), 6, _arg1); break; case 4: addWaveMonster(new mDwarfCrossbow(_local4), 1, _arg1); addWaveMonster(new mDwarfCrossbow(_local4), 3, _arg1); addWaveMonster(new mDwarfVeteran(_local4), 5, _arg1); break; case 5: addWaveMonster(new mOrcBerserker(_local4), 4, _arg1); addWaveMonster(new mOrcJuggernaut(_local4), 5, _arg1); addWaveMonster(new mOrcBerserker(_local4), 6, _arg1); break; case 6: addWaveMonster(new mBoneHorror(_local4), 5, _arg1); addWaveMonster(new mVampire(_local4), 1, _arg1); addWaveMonster(new mLich(_local4), 2, _arg1); addWaveMonster(new mVampire(_local4), 3, _arg1); break; case 7: addWaveMonster(new mDwarfCrossbow(_local4), 1, _arg1); addWaveMonster(new mDwarfRunecaster(_local4), 2, _arg1); addWaveMonster(new mDwarfCrossbow(_local4), 3, _arg1); addWaveMonster(new mDwarfManiac(_local4), 6, _arg1); break; case 8: addWaveMonster(new mTroll(_local4), 5, _arg1); addWaveMonster(new mOrcShaman(_local4), 1, _arg1); addWaveMonster(new mGoblinArtificer(_local4), 2, _arg1); addWaveMonster(new mOrcShaman(_local4), 3, _arg1); break; case 9: addWaveMonster(new mCultChosen(_local4), 4, _arg1); addWaveMonster(new mCultWarrior(_local4), 5, _arg1); addWaveMonster(new mCultChosen(_local4), 6, _arg1); addWaveMonster(new mCultArcher(_local4), 2, _arg1); break; case 10: addWaveMonster(new mNecromancer(_local4), 2, _arg1); addWaveMonster(new mSkeleton(_local4), 4, _arg1); addWaveMonster(new mBoneHorror(_local4), 5, _arg1); addWaveMonster(new mSkeleton(_local4), 6, _arg1); break; case 11: addWaveMonster(new mOrcSavage(_local4), 1, _arg1); addWaveMonster(new mOrcSavage(_local4), 3, _arg1); addWaveMonster(new mOrcChampion(_local4), 4, _arg1); addWaveMonster(new mTroll(_local4), 5, _arg1); addWaveMonster(new mOrcChampion(_local4), 6, _arg1); break; case 12: addWaveMonster(new mCultArcher(_local4), 2, _arg1); addWaveMonster(new mCultArcher(_local4), 3, _arg1); addWaveMonster(new mCultWarrior(_local4), 4, _arg1); addWaveMonster(new mCultChosen(_local4), 5, _arg1); addWaveMonster(new mCultWarrior(_local4), 6, _arg1); break; case 13: addWaveMonster(new mSkeletonArcher(_local4), 1, _arg1); addWaveMonster(new mSkeletonArcher(_local4), 2, _arg1); addWaveMonster(new mGhost(_local4), 4, _arg1); addWaveMonster(new mGhost(_local4), 5, _arg1); addWaveMonster(new mGhost(_local4), 6, _arg1); break; case 14: addWaveMonster(new mDwarfRunecaster(_local4), 1, _arg1); addWaveMonster(new mDwarfRunecaster(_local4), 3, _arg1); addWaveMonster(new mDwarfWarrior(_local4), 4, _arg1); addWaveMonster(new mDwarfManiac(_local4), 5, _arg1); addWaveMonster(new mDwarfWarrior(_local4), 6, _arg1); break; case 15: addWaveMonster(new mCultArcher(_local4), 1, _arg1); addWaveMonster(new mCultPriest(_local4), 2, _arg1); addWaveMonster(new mCultArcher(_local4), 3, _arg1); addWaveMonster(new mCultEngine(_local4), 5, _arg1); addWaveMonster(new mCultNeophyte(_local4), 6, _arg1); break; case 16: addWaveMonster(new mDwarfCrossbow(_local4), 1, _arg1); addWaveMonster(new mDwarfRunecaster(_local4), 2, _arg1); addWaveMonster(new mDwarfCrossbow(_local4), 3, _arg1); addWaveMonster(new mDwarfVeteran(_local4), 4, _arg1); addWaveMonster(new mDwarfVeteran(_local4), 5, _arg1); addWaveMonster(new mDwarfVeteran(_local4), 6, _arg1); break; case 17: addWaveMonster(new mSkeletonArcher(_local4), 1, _arg1); addWaveMonster(new mLich(_local4), 2, _arg1); addWaveMonster(new mLich(_local4), 3, _arg1); addWaveMonster(new mSkeleton(_local4), 4, _arg1); addWaveMonster(new mBoneHorror(_local4), 5, _arg1); addWaveMonster(new mBoneHorror(_local4), 6, _arg1); break; case 18: addWaveMonster(new mOrcShaman(_local4), 1, _arg1); addWaveMonster(new mOrcSavage(_local4), 2, _arg1); addWaveMonster(new mOrcShaman(_local4), 3, _arg1); addWaveMonster(new mOrcBerserker(_local4), 4, _arg1); addWaveMonster(new mOrcChampion(_local4), 5, _arg1); addWaveMonster(new mOrcBerserker(_local4), 6, _arg1); break; case 19: addWaveMonster(new mCultArcher(_local4), 1, _arg1); addWaveMonster(new mCultPriest(_local4), 2, _arg1); addWaveMonster(new mCultArcher(_local4), 3, _arg1); addWaveMonster(new mCultNeophyte(_local4), 4, _arg1); addWaveMonster(new mCultChosen(_local4), 5, _arg1); addWaveMonster(new mCultNeophyte(_local4), 6, _arg1); break; case 20: addWaveMonster(new mDwarfCrossbow(_local4), 1, _arg1); addWaveMonster(new mDwarfPrince(_local4), 2, _arg1); addWaveMonster(new mDwarfCrossbow(_local4), 3, _arg1); addWaveMonster(new mDwarfWarrior(_local4), 4, _arg1); addWaveMonster(new mDwarfWarrior(_local4), 5, _arg1); addWaveMonster(new mDwarfWarrior(_local4), 6, _arg1); break; }; } private static function addWaveMonster(_arg1:MonsterCharacter, _arg2:int, _arg3:Horde):void{ if (_arg3.members.length < 6){ _arg1.pos = _arg2; _arg3.members.push(_arg1); }; } public static function getIntroText(_arg1:int):String{ switch (_arg1){ case ORIGINAL: default: return ("The party of adventurers make their way to the ancient ruin,\nequipped only with what meagre provisions the locals could spare.\n\nThe words of the village headman had filled them with a quiet\ndread, yet steeled their resolve. If the world is to be saved, they\nmust assault the dungeon and destroy the corruption lurking in its\ndepths.\n\nThey must enter the monsters' den."); case DELUXE: return ("'No man we've sent has returned whole.'\n\nThis was met with silence from the small group seated around\nthe tavern bench. Agitated, the speaker continued.\n\n'What crawls back is barely worth calling a man- their wits\nshattered, our best soldiers return as gibbering wrecks. If they\nreturn at all. Is any reward worth that?'\n\nBut the band of adventurers had made their decision.\n\n'We are not your craven soldiers. Give me the map and await our return.'\n\n'Have the reward ready.'"); }; } public static function getOutroText(_arg1:int):String{ switch (_arg1){ case ORIGINAL: default: return ("The demonic presence begins to fade, drawn back to whichever\nhellish realm spawned it. Not willingly, as its final scream of rage\nand pain shakes the dungeon to its very foundations.\n\nDebris begins to rain from the ceiling, and jagged chasms open in\nthe stone floor, revealing still deeper levels of the dungeon. That,\nhowever, must remain a mystery for another time. The heroes,\nvictorious in their quest, realize they must leave now lest their\nretreat be forever barred by the mounting piles of fallen rubble.\nBounding up the stairs, they find themselves passing back through\nall the levels in which they have fought, and bled, and which may\nyet become their tomb.\n\nFinally, desperately, they surge forth from the ruin's entrance, as\nthe dungeon collapses behind them in a final exhalation of dust and debris. Jubilance and disbelief.\n\nThey have succeeded, and they have survived."); case DELUXE: return ("The Dreadfather falls, a foul-smelling smoke rising from the corpse.\nA trophy is hastily collected, as the glow of the Journeyman's Stone\nbegins to fade. Thankfully, power enough remains to return the\nweary adventurers to the entrance of the dungeon.\n\nThe threat is over. Without his terrifying presence to unify them,\nhis army will fall to infighting and the remnants will scatter.\n\nIn a small tavern, a man drinks, lamenting that his duties drive\nhim to send so many to their doom. Soon he will have to search for\nanother eager party of adventurers to set on his hopeless quest.\n\nHis reverie is interrupted by a sudden thump on the table, and a\nterrible stench assaults him. The canvas bag falls open to reveal its\ngrisly contents, and he is faced with a nightmarish rictus grin.\n\n'Let's talk about that reward..'"); }; } public static function getTintFrame(_arg1:int):int{ switch (_arg1){ case ORIGINAL: return (1); case DELUXE: return (2); case INFINITE: default: return (3); }; } } }//package
Section 58
//CampaignItemFragment (CampaignItemFragment) package { public class CampaignItemFragment extends Consumable { public function CampaignItemFragment(_arg1:int=1){ item_name = "Glowing Stone Fragment"; lore = "Retains magical residue from the journey to this place."; campaign_combiner = true; item_rarity = Item.quest; icon_frame = 131; } override public function getWorth():int{ return (0); } } }//package
Section 59
//CampaignItemStone (CampaignItemStone) package { public class CampaignItemStone extends Consumable { public function CampaignItemStone(_arg1:int=1){ item_name = "Journeyman's Stone"; campaign_portal = true; item_rarity = Item.quest; icon_frame = 132; } override public function getWorth():int{ return (0); } } }//package
Section 60
//CampaignPaneNew (CampaignPaneNew) package { import flash.display.*; public dynamic class CampaignPaneNew extends Sprite { } }//package
Section 61
//CampaignPaneOriginal (CampaignPaneOriginal) package { import flash.display.*; public dynamic class CampaignPaneOriginal extends Sprite { } }//package
Section 62
//CampaignPaneSurvival (CampaignPaneSurvival) package { import flash.display.*; public dynamic class CampaignPaneSurvival extends Sprite { } }//package
Section 63
//CampaignSelect (CampaignSelect) package { import flash.events.*; import flash.display.*; public class CampaignSelect extends MovieClip { const FADE_IN_FRAMES = 15; const FADE_OUT_FRAMES = 7; public var pane:Sprite; public var continueButton:NewProceedButton; public var nextButton:SimpleButton; public var optionsButton:OptionsBookButton; private var campaign:int;// = 1 private var fadeIn:Boolean;// = false private var fadeOut:Boolean;// = false public function CampaignSelect():void{ nextButton.addEventListener(MouseEvent.MOUSE_DOWN, cycleClick); continueButton.addEventListener(MouseEvent.MOUSE_DOWN, continueClick); addEventListener(Event.ENTER_FRAME, onFrame); addNewPane(); } public function cleanup():void{ removeEventListener(Event.ENTER_FRAME, onFrame); continueButton.removeEventListener(MouseEvent.MOUSE_DOWN, continueClick); optionsButton.cleanup(); } private function continueClick(_arg1:MouseEvent):void{ cleanup(); dm.main.campaignSelected(campaign); } private function cycleClick(_arg1:MouseEvent):void{ if (campaign == Campaign.ORIGINAL){ campaign = Campaign.DELUXE; } else { if (campaign == Campaign.DELUXE){ campaign = Campaign.SURVIVAL; } else { if (campaign == Campaign.SURVIVAL){ campaign = Campaign.ORIGINAL; }; }; }; paneFadeOut(); } private function paneFadeOut():void{ fadeOut = true; fadeIn = false; nextButton.mouseEnabled = false; } private function paneFadeIn():void{ fadeOut = false; fadeIn = true; } private function onFrame(_arg1:Event):void{ if (fadeOut){ pane.alpha = (pane.alpha - (1 / FADE_OUT_FRAMES)); if (pane.alpha <= 0){ pane.alpha = 0; fadeOut = false; addNewPane(); }; } else { if (fadeIn){ pane.alpha = (pane.alpha + (1 / FADE_IN_FRAMES)); if (pane.alpha >= 1){ pane.alpha = 1; fadeIn = false; }; }; }; } private function addNewPane():void{ var _local1:Sprite; if (campaign == Campaign.ORIGINAL){ _local1 = new CampaignPaneOriginal(); } else { if (campaign == Campaign.DELUXE){ _local1 = new CampaignPaneNew(); } else { if (campaign == Campaign.SURVIVAL){ _local1 = new CampaignPaneSurvival(); }; }; }; if (_local1 != null){ if (pane != null){ removeChild(pane); }; _local1.alpha = 0; _local1.y = 37; _local1.mouseEnabled = false; _local1.mouseChildren = false; addChild(_local1); pane = _local1; paneFadeIn(); nextButton.mouseEnabled = true; }; } } }//package
Section 64
//Character (Character) package { import flash.display.*; public class Character { const power_max = 100; private var _level;// = 1 private var _health_max:int;// = 50 private var _health:int;// = 50 var power_per_turn;// = 10 private var _power:int;// = 100 private var _damage:int;// = 0 private var _damage_resistance:int;// = 0 private var _charname:String; private var _classname:String; private var _type:int;// = 0 private var _description:String;// = "" private var _strength:int;// = 1 private var _endurance:int;// = 1 private var _dexterity:int;// = 1 private var _intellect:int;// = 1 private var _quickness:int;// = 50 private var _accuracy:int;// = 95 private var _portrait:int;// = 1 private var _pos:int;// = 0 private var _poisonResist:int;// = 0 private var _stunResist:int;// = 0 public var portraitRef:CharacterPortrait; public var summoned:Boolean;// = false private var _useCustomPortrait:Boolean;// = false private var _customPortraitUrl:String;// = "" public var customPortrait:BitmapData; public var customLoading:Boolean;// = false var skills:Array; var stunned_duration:int;// = 0 var accuracy_penalty:int;// = 0 var poisoned:int;// = 0 var powerRegenMod:Number;// = 1 var hiding:Boolean;// = false var intimidating:Boolean;// = false var cannotDie:int;// = 0 var cannotDieMin:int;// = 1 var cursed;// = 0 var lethalityImmune:Boolean;// = false var invulnerable:int;// = 0 var temp_damage_resistance:int;// = 0 var damageMod;// = 1 var crippled:int;// = 0 var cancelPowerRegen:int;// = 0 var cancelHealthRegen:int;// = 0 var woundsRestorePower:int;// = 0 var buff_resistPoison;// = 0 var buff_resistStun;// = 0 var buff_damageResist;// = 0 var buff_damageReflect;// = 0 var buff_healthRegen;// = 0 var buff_powerRegen;// = 0 var buff_vampiric;// = 0 var buff_stun;// = 0 var buff_quickness;// = 0 var buff_damage;// = 1 var buff_accuracy;// = 0 var debuff_damageResist:int;// = 0 var debuff_damage:Number;// = 1 private var _potion_damage_resist:int;// = 0 private var _potion_damage_bonus:int;// = 0 private var _potion_poison_resist:int;// = 0 private var _potion_stun_resist:int;// = 0 private var _potion_quickness_bonus:int;// = 0 var hadCombatTurn:Boolean;// = false static const ACCURACY_MINIMUM = 10; public function Character(){ skills = new Array(); super(); } public function get level():int{ return (this._level); } public function set level(_arg1:int):void{ this._level = _arg1; } public function get health_max():int{ return (this._health_max); } public function set health_max(_arg1:int):void{ this._health_max = _arg1; } public function get health():int{ return (this._health); } public function set health(_arg1:int):void{ this._health = _arg1; } public function get power():int{ return (this._power); } public function set power(_arg1:int):void{ this._power = _arg1; } public function get damage():int{ return (this._damage); } public function set damage(_arg1:int):void{ this._damage = _arg1; } public function get damage_resistance():int{ return (this._damage_resistance); } public function set damage_resistance(_arg1:int):void{ this._damage_resistance = _arg1; } public function get charname():String{ return (this._charname); } public function set charname(_arg1:String):void{ this._charname = _arg1; } public function get classname():String{ return (this._classname); } public function set classname(_arg1:String):void{ this._classname = _arg1; } public function get type():int{ return (this._type); } public function set type(_arg1:int):void{ this._type = _arg1; } public function get description():String{ return (this._description); } public function set description(_arg1:String):void{ this._description = _arg1; } public function get strength():int{ return (this._strength); } public function set strength(_arg1:int):void{ this._strength = _arg1; } public function get endurance():int{ return (this._endurance); } public function set endurance(_arg1:int):void{ this._endurance = _arg1; } public function get dexterity():int{ return (this._dexterity); } public function set dexterity(_arg1:int):void{ this._dexterity = _arg1; } public function get intellect():int{ return (this._intellect); } public function set intellect(_arg1:int):void{ this._intellect = _arg1; } public function get quickness():int{ return (this._quickness); } public function set quickness(_arg1:int):void{ this._quickness = _arg1; } public function get accuracy():int{ return (this._accuracy); } public function set accuracy(_arg1:int):void{ this._accuracy = _arg1; } public function get portrait():int{ return (this._portrait); } public function set portrait(_arg1:int):void{ this._portrait = _arg1; } public function get pos():int{ return (this._pos); } public function set pos(_arg1:int):void{ this._pos = _arg1; } public function get poisonResist():int{ return (this._poisonResist); } public function set poisonResist(_arg1:int):void{ this._poisonResist = _arg1; } public function get stunResist():int{ return (this._stunResist); } public function set stunResist(_arg1:int):void{ this._stunResist = _arg1; } public function get useCustomPortrait():Boolean{ return (this._useCustomPortrait); } public function set useCustomPortrait(_arg1:Boolean):void{ this._useCustomPortrait = _arg1; } public function get customPortraitUrl():String{ return (this._customPortraitUrl); } public function set customPortraitUrl(_arg1:String):void{ this._customPortraitUrl = _arg1; } public function get potion_damage_resist():int{ return (this._potion_damage_resist); } public function set potion_damage_resist(_arg1:int):void{ this._potion_damage_resist = _arg1; } public function get potion_damage_bonus():int{ return (this._potion_damage_bonus); } public function set potion_damage_bonus(_arg1:int):void{ this._potion_damage_bonus = _arg1; } public function get potion_poison_resist():int{ return (this._potion_poison_resist); } public function set potion_poison_resist(_arg1:int):void{ this._potion_poison_resist = _arg1; } public function get potion_stun_resist():int{ return (this._potion_stun_resist); } public function set potion_stun_resist(_arg1:int):void{ this._potion_stun_resist = _arg1; } public function get potion_quickness_bonus():int{ return (this._potion_quickness_bonus); } public function set potion_quickness_bonus(_arg1:int):void{ this._potion_quickness_bonus = _arg1; } public function clearStatusEffects():void{ cannotDie = 0; invulnerable = 0; stunned_duration = 0; accuracy_penalty = 0; poisoned = 0; damageMod = 1; powerRegenMod = 1; temp_damage_resistance = 0; crippled = 0; cursed = 0; hiding = false; cancelPowerRegen = 0; cancelHealthRegen = 0; woundsRestorePower = 0; intimidating = false; buff_resistPoison = 0; buff_resistStun = 0; buff_damageResist = 0; buff_damageReflect = 0; buff_healthRegen = 0; buff_powerRegen = 0; buff_vampiric = 0; buff_stun = 0; buff_quickness = 0; buff_damage = 1; buff_accuracy = 0; buff_quickness = 0; debuff_damageResist = 0; debuff_damage = 1; potion_damage_resist = 0; potion_damage_bonus = 0; potion_poison_resist = 0; potion_stun_resist = 0; potion_quickness_bonus = 0; } public function clearNegativeEffects():void{ stunned_duration = 0; accuracy_penalty = 0; poisoned = 0; if (damageMod < 1){ damageMod = 1; }; if (powerRegenMod < 1){ powerRegenMod = 1; }; if (temp_damage_resistance < 0){ temp_damage_resistance = 0; }; crippled = 0; cursed = 0; cancelPowerRegen = 0; cancelHealthRegen = 0; debuff_damageResist = 0; debuff_damage = 1; } public function getAccuracy(_arg1:Boolean=true):int{ var _local2:int; if (_arg1){ _local2 = ((accuracy + buff_accuracy) - accuracy_penalty); } else { _local2 = accuracy; }; _local2 = Math.max(ACCURACY_MINIMUM, _local2); return (_local2); } public function getDamageReflection(_arg1:Boolean=true):int{ if (_arg1){ return (buff_damageReflect); }; return (0); } public function getAccuracyDamage(_arg1:Boolean=true):int{ return (0); } public function getLethality(_arg1:Boolean=true):int{ return (0); } public function getEffectiveHealth():int{ return (health); } public function getPoisonResist(_arg1:Boolean=true):int{ if (_arg1){ return (((poisonResist + buff_resistPoison) + potion_poison_resist)); }; return (poisonResist); } public function getStunResist(_arg1:Boolean=true):int{ if (_arg1){ return (((stunResist + buff_resistStun) + potion_stun_resist)); }; return (stunResist); } public function getVampiric(_arg1:Boolean=true):int{ if (_arg1){ return (buff_vampiric); }; return (0); } public function getStunChance(_arg1:Boolean=true):int{ return (0); } public function getPowerRegen(_arg1:Boolean=true):int{ if (_arg1){ return (Math.round(((power_per_turn + buff_powerRegen) * powerRegenMod))); }; return (power_per_turn); } public function getHealthRegen(_arg1:Boolean=true):int{ if (_arg1){ return (buff_healthRegen); }; return (0); } public function getStrength(_arg1:Boolean=true):int{ return (this.strength); } public function getEndurance(_arg1:Boolean=true):int{ return (this.endurance); } public function getDexterity(_arg1:Boolean=true):int{ return (this.dexterity); } public function getIntellect(_arg1:Boolean=true):int{ return (this.intellect); } public function getQuickness(_arg1:Boolean=true):int{ var _local2:* = this.quickness; if (_arg1){ _local2 = (_local2 + ((buff_quickness + potion_quickness_bonus) - crippled)); }; _local2 = Math.max(_local2, 0); return (_local2); } public function getDamageResist(_arg1:Boolean=true):int{ if (_arg1){ return (((buff_damageResist + temp_damage_resistance) + potion_damage_resist)); }; return (0); } public function getPoisonDamage(_arg1:Boolean=true):int{ return (0); } public function poison(_arg1:int):Boolean{ if (invulnerable){ return (false); }; var _local2:int = getPoisonResist(); if (_local2 >= 100){ return (false); }; var _local3:int = Math.round((_arg1 * (1 - (_local2 / 100)))); if (_local3 > 0){ poisoned = (poisoned + _local3); return (true); }; return (false); } public function stun(_arg1:int):Boolean{ var _local2:int = getStunResist(); if (invulnerable){ return (false); }; if (dmf.randomNum(0, 99) >= _local2){ stunned_duration = _arg1; return (true); }; return (false); } public function reduceHealthByPercentage(_arg1:int):int{ var _local2:* = ((health_max / 100) * _arg1); return (reduceHealth(_local2)); } public function getHealthPercent():int{ return (Math.round((100 / (health_max / health)))); } public function getPowerPercent():int{ return (Math.round((100 / (power_max / power)))); } public function damageAfterArmor(_arg1:int, _arg2:Character):int{ return (_arg1); } public function reduceHealth(_arg1:int):int{ if (invulnerable){ return (0); }; var _local2:int = health; health = (health - _arg1); if ((((health < cannotDieMin)) && ((cannotDie > 0)))){ health = Math.min(_local2, cannotDieMin); }; if (health <= 0){ health = 0; clearStatusEffects(); }; if (health > health_max){ health = health_max; }; return ((_local2 - health)); } public function reducePower(_arg1:int):int{ var _local2:* = power; power = (power - _arg1); if (power < 0){ power = 0; }; if (power > 100){ power = 100; }; return ((_local2 - power)); } public function increaseHealth(_arg1:int, _arg2:Boolean=false):int{ var _local3:int = health; if ((((_local3 <= 0)) && (!(_arg2)))){ return (0); }; health = (health + _arg1); if (health > health_max){ health = health_max; }; if (health < 0){ health = 0; clearStatusEffects(); }; if (((((_arg2) && ((_local3 <= 0)))) && ((health > 0)))){ clearStatusEffects(); }; return ((health - _local3)); } public function increaseHealthByPercentage(_arg1:int, _arg2:Boolean=false):int{ var _local3:* = Math.round((health_max * (_arg1 / 100))); return (increaseHealth(_local3, _arg2)); } public function increasePowerByPercentage(_arg1:int):int{ return (increasePower(_arg1)); } public function increasePower(_arg1:int):int{ var _local2:* = power; power = (power + _arg1); if (power > power_max){ power = power_max; }; return ((power - _local2)); } public function hasPowerForSkill(_arg1:Skill):Boolean{ if (_arg1.power_cost > power){ return (false); }; return (true); } public function canMissWith(_arg1:Skill):Boolean{ if (_arg1.alwaysHits){ return (false); }; if (_arg1.targetsFriendlies){ return (false); }; if (_arg1.targetsSelf){ return (false); }; if (_arg1.targetsEmpty){ return (false); }; return (true); } public function getHealingBonus(_arg1:Boolean=true):int{ return (0); } public function genderPronoun(_arg1:Boolean=false):String{ if (_arg1){ return ("They"); }; return ("they"); } public function genderPossessive(_arg1:Boolean=false):String{ if (_arg1){ return ("Their"); }; return ("their"); } public function genderSelf(_arg1:Boolean=false):String{ if (_arg1){ return ("Itself"); }; return ("itself"); } public function loadCustomPortrait():void{ if (!useCustomPortrait){ return; }; customLoading = true; var _local1:CustomPortrait = new CustomPortrait(customPortraitUrl, customLoaded, customFailed); } public function customLoaded(_arg1:BitmapData, _arg2:Character=null):void{ customLoading = false; customPortrait = _arg1; if (portraitRef != null){ portraitRef.update(); }; } public function customFailed(_arg1:Character=null):void{ customLoading = false; customPortrait = null; if (portraitRef != null){ portraitRef.update(); }; } public function isInactive():Boolean{ if (health <= 0){ return (true); }; if (hiding){ return (true); }; return (false); } } }//package
Section 65
//CharacterInfo (CharacterInfo) package { import flash.display.*; import flash.text.*; public class CharacterInfo extends MovieClip { public var playerGraphic:CharGraphic; public var playerClass:TextField; public var playerName:TextField; public var customPortrait:DisplayObject; public function CharacterInfo():void{ } public function setChar(_arg1:Character):void{ if (_arg1 == null){ return; }; playerGraphic.setChar(_arg1); playerName.text = _arg1.charname; dmf.embolden(playerName); playerClass.text = _arg1.classname; } private function removeCustomPortrait():void{ if (customPortrait == null){ return; }; if (this.contains(customPortrait)){ removeChild(customPortrait); }; } } }//package
Section 66
//CharacterPortrait (CharacterPortrait) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class CharacterPortrait extends MovieClip { const FADE_IN_FRAMES = 15; const FADE_OUT_FRAMES = 30; public var char_ref:Character; private var dead:Boolean; private var poisoned:Boolean;// = false public var level_glow:LevelUpGlow; public var graphic:CharGraphic; public var healthbar:HealthBar; public var powerbar:PowerBar; public var nametag:TextField; private var selectFX:PortraitSelect; private var hoverEnabled:Boolean;// = false var isHiding:Boolean;// = false var animationFrame:PortraitAnimationFrame; var animationDurationTimer:Timer; var animations:Array; var timers:Array; var hasCurseAnim:Boolean;// = false var hasPoisonAnim:Boolean;// = false var hasLethalAnim:Boolean;// = false var hasGainHealthAnim:Boolean;// = false var hasGainPowerAnim:Boolean;// = false private var fadeIn:Boolean;// = false private var fadeOut:Boolean;// = false static const HEALTHBAR_HEIGHT = 58; public function CharacterPortrait(){ level_glow = new LevelUpGlow(); animations = new Array(); timers = new Array(); super(); dead = false; this.gotoAndStop(1); this.mouseChildren = false; addEventListener(Event.ENTER_FRAME, onFrame); addHoverListeners(); } public function addHoverListeners():void{ if (!hoverEnabled){ addEventListener(MouseEvent.MOUSE_OVER, mouse_over); addEventListener(MouseEvent.MOUSE_OUT, mouse_out); addEventListener(Event.REMOVED_FROM_STAGE, removed); hoverEnabled = true; }; } private function removed(_arg1:Event):void{ hoverEnabled = false; mouse_out(null); removeEventListener(MouseEvent.MOUSE_OVER, mouse_over); removeEventListener(MouseEvent.MOUSE_OUT, mouse_out); removeEventListener(Event.REMOVED_FROM_STAGE, removed); removeEventListener(Event.ENTER_FRAME, onFrame); } private function mouse_over(_arg1:MouseEvent):void{ mouse_out(null); if (DungeonMain.portraitHighlight){ selectFX = new PortraitSelect(); selectFX.x = 0; selectFX.y = 0; addChild(selectFX); }; } private function mouse_out(_arg1:MouseEvent):void{ if (selectFX != null){ if (this.contains(selectFX)){ removeChild(selectFX); selectFX = null; }; }; } public function setGlow():void{ if (!(char_ref is PlayerCharacter)){ return; }; if (((PlayerCharacter(char_ref).stat_points) || (PlayerCharacter(char_ref).skill_points))){ if (!this.contains(level_glow)){ addChildAt(level_glow, 0); }; } else { if (this.contains(level_glow)){ removeChild(level_glow); }; }; } public function setChar(_arg1:Character, _arg2:Boolean=false){ char_ref = _arg1; if (!_arg2){ update(); }; } public function update():void{ this.graphic.setChar(char_ref); this.setPoisoned((char_ref.poisoned > 0)); this.setNameTag(char_ref.charname); this.updateBars(); } public function setHealth(_arg1:Number){ var _local2:* = healthbar.getChildByName("bar"); _local2.height = Math.round(((58 / 100) * _arg1)); var _local3:* = healthbar.getChildByName("lightbar"); _local3.height = Math.round(((58 / 100) * _arg1)); if ((((char_ref.health <= 0)) && (!(dead)))){ this.setDead(); }; } public function setHealthPreview(_arg1:int){ var _local2:* = (char_ref.health - _arg1); if (_local2 < 0){ _local2 = 0; }; if (_local2 > char_ref.health_max){ _local2 = char_ref.health_max; }; var _local3:* = ((100 / char_ref.health_max) * _local2); var _local4:* = healthbar.getChildByName("bar"); var _local5:* = healthbar.getChildByName("lightbar"); if (_arg1 >= 0){ _local4.height = ((HEALTHBAR_HEIGHT / 100) * _local3); } else { _local5.height = Math.round(((HEALTHBAR_HEIGHT / 100) * _local3)); }; } public function setPowerPreview(_arg1:int){ var _local2:* = (char_ref.power - _arg1); if (_local2 < 0){ _local2 = 0; }; if (_local2 > char_ref.power_max){ _local2 = char_ref.power_max; }; var _local3:* = ((100 / char_ref.power_max) * _local2); var _local4:* = powerbar.getChildByName("bar"); var _local5:* = powerbar.getChildByName("lightbar"); if (_arg1 >= 0){ _local4.height = ((HEALTHBAR_HEIGHT / 100) * _local3); } else { _local5.height = Math.round(((HEALTHBAR_HEIGHT / 100) * _local3)); }; } public function setPower(_arg1:Number){ this.powerbar.bar.height = ((HEALTHBAR_HEIGHT / 100) * _arg1); this.powerbar.lightbar.height = ((HEALTHBAR_HEIGHT / 100) * _arg1); } public function startPowerCostPreview(_arg1:int){ var _local2:* = (char_ref.power - _arg1); if (_local2 < 0){ return; }; this.powerbar.bar.height = ((HEALTHBAR_HEIGHT / 100) * _local2); } public function endPowerCostPreview(){ this.powerbar.bar.height = this.powerbar.lightbar.height; } public function updateBars():void{ if (((dead) && ((char_ref.health > 0)))){ setAlive(); }; setHealth(char_ref.getHealthPercent()); setPower(char_ref.getPowerPercent()); checkStun(); } public function stunAnim():void{ if (!char_ref.stunned_duration){ if (((((!((parent == null))) && (!((parent.parent == null))))) && ((parent.parent is EmptyPortrait)))){ EmptyPortrait(parent.parent).gotoAndPlay(2); }; }; } public function checkStun():void{ if (!char_ref.stunned_duration){ this.gotoAndStop(1); } else { this.gotoAndStop(2); }; } public function setClone():void{ var _local1:* = new ClonePortrait(); this.addChild(_local1); this.addSpecialAnimation(new clone_create_effect(), 1500); } public function setShadow():void{ var _local1:* = new ShadowPortrait(); graphic.addChild(_local1); } public function setPoisoned(_arg1:Boolean):void{ var _local2:*; var _local3:*; var _local4:*; if (((_arg1) && (!(poisoned)))){ poisoned = true; _local2 = new LightGreenBar(); _local2.x = healthbar.lightbar.x; _local2.y = healthbar.lightbar.y; _local2.height = healthbar.lightbar.height; _local2.width = healthbar.lightbar.width; _local2.name = healthbar.lightbar.name; healthbar.removeChild(healthbar.lightbar); healthbar.addChild(_local2); _local2 = new GreenBar(); _local2.x = healthbar.bar.x; _local2.y = healthbar.bar.y; _local2.height = healthbar.bar.height; _local2.width = healthbar.bar.width; _local2.name = healthbar.bar.name; healthbar.removeChild(healthbar.bar); healthbar.addChild(_local2); } else { if (((poisoned) && (!(_arg1)))){ poisoned = false; _local3 = healthbar.getChildByName("bar"); _local4 = healthbar.getChildByName("lightbar"); healthbar.bar.height = _local3.height; healthbar.lightbar.height = _local4.height; healthbar.removeChild(_local3); healthbar.removeChild(_local4); healthbar.addChild(healthbar.lightbar); healthbar.addChild(healthbar.bar); }; }; } public function setNameTag(_arg1:String){ this.nametag.text = _arg1; } public function setDead(){ dead = true; setHealth(0); var _local1:DeadEffect = new DeadEffect(); _local1.x = 0; _local1.y = 0; _local1.alpha = 0.5; _local1.name = "dead_effect"; addChild(_local1); floaterCheck(); if (char_ref.summoned){ fadeOut = true; }; trace(((("CharacterPortrait.setDead() - " + char_ref.charname) + " health: ") + char_ref.health)); } public function setHiding(_arg1:Boolean){ var _local2:*; if (_arg1){ if (!isHiding){ _local2 = new HidingEffect(); _local2.x = 0; _local2.y = 0; _local2.alpha = 0.5; _local2.name = "hiding_effect"; addChild(_local2); floaterCheck(); }; isHiding = true; } else { isHiding = false; _local2 = getChildByName("hiding_effect"); if (_local2 != null){ removeChild(_local2); }; }; } public function setRetreated():void{ var _local1:RetreatedEffect = new RetreatedEffect(); _local1.x = 0; _local1.y = 0; _local1.alpha = 0.5; _local1.name = "r_effect"; addChild(_local1); floaterCheck(); fadeOut = true; } public function setAlive(){ dead = false; var _local1:* = getChildByName("dead_effect"); if (_local1 != null){ removeChild(_local1); }; } public function addAnimationFrame(_arg1:int, _arg2:int=1500){ if (animationFrame != null){ return; }; animationFrame = new PortraitAnimationFrame(_arg1); animationFrame.name = "anim"; animationFrame.x = graphic.x; animationFrame.y = graphic.y; this.addChild(animationFrame); floaterCheck(); animationDurationTimer = new Timer(_arg2, 1); animationDurationTimer.addEventListener(TimerEvent.TIMER_COMPLETE, animationDurationTimerComplete); animationDurationTimer.start(); } function animationDurationTimerComplete(_arg1:TimerEvent):void{ animationDurationTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, animationDurationTimerComplete); if (this.getChildByName("anim") != null){ this.removeChild(animationFrame); }; animationFrame = null; } public function addPortraitAnimation(_arg1:int):void{ if (!_arg1){ return; }; var _local2:MovieClip = PortraitAnimation.getAnimation(_arg1); if (_local2 != null){ _local2.gotoAndStop(1); addSpecialAnimation(_local2); floaterCheck(); }; _local2 = null; } private function floaterCheck():void{ var _local1:* = getChildByName("floater"); if (_local1 != null){ dmf.childToTop(_local1); }; } private function addSpecialAnimation(_arg1:MovieClip, _arg2:int=1500){ var _local4:int; var _local5:*; _arg1.x = graphic.x; _arg1.y = graphic.y; if ((_arg1 is curse_effect)){ if (!hasCurseAnim){ hasCurseAnim = true; } else { return; }; } else { if ((_arg1 is poisoneffect)){ if (!hasPoisonAnim){ hasPoisonAnim = true; } else { return; }; } else { if ((_arg1 is lethal_effect)){ if (!hasLethalAnim){ hasLethalAnim = true; } else { return; }; } else { if ((_arg1 is gain_health_effect)){ if (!hasGainHealthAnim){ hasGainHealthAnim = true; } else { return; }; } else { if ((_arg1 is gain_power_effect)){ if (!hasGainPowerAnim){ hasGainPowerAnim = true; } else { return; }; } else { if ((_arg1 is player_multi_slash)){ _local4 = dmf.randomNum(-20, 20); _arg1.rotation = _local4; } else { if ((_arg1 is revive_effect)){ _local5 = this.graphic.currentFrame; revive_effect(_arg1).gfx.gotoAndStop(_local5); } else { if ((((_arg1 is player_arrow)) && ((_arg2 == 750)))){ player_arrow(_arg1).spark.x = dmf.randomNum(15, 43); player_arrow(_arg1).spark.y = dmf.randomNum(15, 43); }; }; }; }; }; }; }; }; _arg1.gotoAndPlay(1); this.addChild(_arg1); var _local3:Timer = new Timer(_arg2, 1); _local3.addEventListener(TimerEvent.TIMER_COMPLETE, specialAnimationDurationTimerComplete, false, 0, true); _local3.start(); animations.push(_arg1); timers.push(_local3); } function specialAnimationDurationTimerComplete(_arg1:TimerEvent):void{ var _local2:* = getTimerIndex(Timer(_arg1.target)); if (_local2 < 0){ return; }; var _local3:MovieClip = animations[_local2]; if (_local3 != null){ if (this.contains(_local3)){ this.removeChild(_local3); }; if ((_local3 is curse_effect)){ hasCurseAnim = false; }; if ((_local3 is poisoneffect)){ hasPoisonAnim = false; }; if ((_local3 is lethal_effect)){ hasLethalAnim = false; }; if ((_local3 is gain_health_effect)){ hasGainHealthAnim = false; }; if ((_local3 is gain_power_effect)){ hasGainPowerAnim = false; }; _local3.stop(); animations.splice(_local2, 1); _local3 = null; timers.splice(_local2, 1); }; } private function getTimerIndex(_arg1:Timer):int{ var _local2:* = 0; while (_local2 < timers.length) { if (timers[_local2] == _arg1){ return (_local2); }; _local2++; }; return (-1); } private function onFrame(_arg1:Event):void{ if (fadeOut){ this.alpha = (this.alpha - (1 / FADE_OUT_FRAMES)); if (this.alpha <= 0){ this.alpha = 0; fadeOut = false; if (parent != null){ parent.removeChild(this); }; }; } else { if (fadeIn){ this.alpha = (this.alpha + (1 / FADE_IN_FRAMES)); if (this.alpha >= 1){ this.alpha = 1; fadeIn = false; }; }; }; } } }//package
Section 67
//CharCreationPanel (CharCreationPanel) package { import flash.events.*; import flash.display.*; import flash.text.*; public class CharCreationPanel extends MovieClip { const animate_frames = 10; var char:PlayerCharacter; var portraits:Array; var selected_portrait:int;// = 0 public var selected_class:int;// = 1 var slot:int;// = 1 public var gender_icon:MovieClip; public var random_name_btn:MovieClip; public var portrait_left:SimpleButton; public var portrait_right:SimpleButton; public var portrait:CharGraphic; public var theText:TextField; public var class_text:TextField; public var description_text:TextField; public var name_text:TextField; public var skill_preview:SimpleButton; public var delete_button:SimpleButton; public var class1:MovieClip; public var class2:MovieClip; public var class3:MovieClip; public var class4:MovieClip; public var class5:MovieClip; public var class6:MovieClip; public var class7:MovieClip; public var customPortraitButton:SimpleButton; public var charLocked:MovieClip; var animating;// = false var frame_count;// = 0 var start_y;// = 0 var end_y;// = 0 var lowered_y;// = 0 var lastRandomName:String; public function CharCreationPanel():void{ var _local2:*; portraits = new Array(); super(); random_name_btn.addEventListener(MouseEvent.MOUSE_DOWN, randomName); portrait_left.addEventListener(MouseEvent.MOUSE_DOWN, cyclePortrait); portrait_right.addEventListener(MouseEvent.MOUSE_DOWN, cyclePortrait); customPortraitButton.addEventListener(MouseEvent.MOUSE_DOWN, showCustomPortraitDialog); gender_icon.addEventListener(MouseEvent.MOUSE_DOWN, toggleGender); skill_preview.addEventListener(MouseEvent.MOUSE_DOWN, previewSkills); var _local1:* = 1; while (_local1 <= 7) { _local2 = getChildByName(("class" + _local1)); _local2.addEventListener(MouseEvent.MOUSE_DOWN, setClass); _local2.gotoAndStop(_local1); _local2.bg.gotoAndStop(1); _local1++; }; delete_button.addEventListener(MouseEvent.MOUSE_DOWN, deleteChar); charLocked.logo.addEventListener(MouseEvent.MOUSE_DOWN, kongClick); setLock(false); } private function setLock(_arg1:Boolean):void{ if (_arg1){ if (!contains(charLocked)){ addChild(charLocked); }; } else { if (contains(charLocked)){ removeChild(charLocked); }; }; } public function cleanup():void{ var _local2:*; var _local1:* = 1; while (_local1 <= 7) { _local2 = getChildByName(("char" + _local1)); if (_local2 == null){ } else { _local2.removeEventListener(MouseEvent.MOUSE_DOWN, setClass); }; _local1++; }; random_name_btn.removeEventListener(MouseEvent.MOUSE_DOWN, randomName); portrait_left.removeEventListener(MouseEvent.MOUSE_DOWN, cyclePortrait); portrait_right.removeEventListener(MouseEvent.MOUSE_DOWN, cyclePortrait); customPortraitButton.removeEventListener(MouseEvent.MOUSE_DOWN, showCustomPortraitDialog); delete_button.removeEventListener(MouseEvent.MOUSE_DOWN, deleteChar); skill_preview.removeEventListener(MouseEvent.MOUSE_DOWN, previewSkills); gender_icon.removeEventListener(MouseEvent.MOUSE_DOWN, toggleGender); charLocked.logo.removeEventListener(MouseEvent.MOUSE_DOWN, kongClick); } private function kongClick(_arg1:MouseEvent):void{ dmf.link(Links.KONG_GAME); } private function showCustomPortraitDialog(_arg1:MouseEvent):void{ var _local2:* = new CustomPortraitDialog(char, this); stage.addChild(_local2); } public function loadCustomPortrait():void{ portrait.setChar(char); } function previewSkills(_arg1:MouseEvent):void{ var _local2:PlayerCharacter; if (selected_class == PlayerCharacter.WARRIOR){ _local2 = new PC_Warrior(); } else { if (selected_class == PlayerCharacter.ROGUE){ _local2 = new PC_Rogue(); } else { if (selected_class == PlayerCharacter.RANGER){ _local2 = new PC_Ranger(); } else { if (selected_class == PlayerCharacter.MAGE){ _local2 = new PC_Mage(); } else { if (selected_class == PlayerCharacter.CLERIC){ _local2 = new PC_Cleric(); } else { if (selected_class == PlayerCharacter.CONJUROR){ _local2 = new PC_Conjuror(); } else { if (selected_class == PlayerCharacter.BARBARIAN){ _local2 = new PC_Barbarian(); } else { return; }; }; }; }; }; }; }; var _local3:SkillsPreview = new SkillsPreview(_local2); stage.addChild(_local3); } function animateFrame(_arg1:Event):void{ animating = true; frame_count++; if ((((frame_count > animate_frames)) || ((this.y == end_y)))){ removeEventListener(Event.ENTER_FRAME, animateFrame); animating = false; return; }; var _local2:* = (end_y - start_y); var _local3:* = (_local2 / animate_frames); this.y = (start_y + (frame_count * _local3)); } public function createChar(_arg1:MouseEvent=null):void{ char = new PlayerCharacter(); gender_icon.gotoAndStop("male"); if (dmf.randomNum(0, 99) < 25){ toggleGender(null); }; randomName(); if (this.slot == 4){ selected_class = dmf.randomNum(4, 6); } else { selected_class = this.slot; }; selected_portrait = (selected_class - 1); updatePortraitsArray(); updatePortrait(); updateClass(); } function deleteChar(_arg1:MouseEvent):void{ var _local2:*; char = null; if (parent != null){ _local2 = parent.getChildByName(("empty" + slot)); if (_local2 != null){ _local2.y = this.y; }; this.y = -200; }; } public function finalize():void{ if (name_text.text != null){ char.charname = name_text.text; }; char.portrait = portraits[selected_portrait]; } private function updatePortraitsArray():void{ portraits.length = 0; var _local1:int; if (char.male){ _local1 = 1; while (_local1 <= 12) { portraits.push(_local1); _local1++; }; } else { _local1 = 14; while (_local1 <= 21) { portraits.push(_local1); _local1++; }; }; } private function updateClass():void{ var _local2:*; if (selected_class == PlayerCharacter.WARRIOR){ class_text.text = "Warrior"; description_text.text = "Warriors can wear the heaviest armor and excel at combat with melee weapons. They are difficult to kill and good at protecting more vulnerable members of the party."; } else { if (selected_class == PlayerCharacter.ROGUE){ class_text.text = "Rogue"; description_text.text = "Rogues inflict high damage in melee combat, but can also do well with a bow. They have many abilities which debilitate their foes. They may wear medium armor."; } else { if (selected_class == PlayerCharacter.RANGER){ class_text.text = "Ranger"; description_text.text = "Rangers are masters of ranged weapons and the lore of the wild. They prefer to fight from afar, where they can heal and support their allies. They may wear medium armor."; } else { if (selected_class == PlayerCharacter.MAGE){ class_text.text = "Mage"; description_text.text = "Mages use their arcane knowledge to destroy foes from afar and augment their allies. They can inflict a lot of damage, but may wear only the lightest armor."; } else { if (selected_class == PlayerCharacter.CLERIC){ class_text.text = "Cleric"; description_text.text = "Clerics are holy warriors who call upon divine powers to heal and support their allies or smite their enemies. They wear heavy armor but their weapon selection is limited."; } else { if (selected_class == PlayerCharacter.CONJUROR){ class_text.text = "Conjuror"; description_text.text = "Conjurors are masters of summoning magic, conjuring constructs to aid their allies and vex their enemies as well as calling forth temporary allies. They wear light armor."; } else { if (selected_class == PlayerCharacter.BARBARIAN){ class_text.text = "Barbarian"; description_text.text = "Barbarians are reckless, brutal fighters. Favoring melee weapons, they inflict high damage and hinder their enemies' ability to fight effectively. They wear medium armor."; }; }; }; }; }; }; }; if (((DungeonMain.LOCKED) && ((selected_class == PlayerCharacter.CONJUROR)))){ description_text.text = ""; setLock(true); } else { setLock(false); }; dm.embolden(class_text); class_text.autoSize = TextFieldAutoSize.CENTER; theText.x = (class_text.x - 23); var _local1:* = 1; while (_local1 <= 7) { _local2 = MovieClip(getChildByName(("class" + _local1))); if (_local1 == selected_class){ _local2.bg.gotoAndStop(2); } else { _local2.bg.gotoAndStop(1); }; _local1++; }; selected_portrait = (selected_class - 1); updatePortrait(); } private function updatePortrait():void{ if (!portraits.length){ return; }; char.useCustomPortrait = false; portrait.setFrame(portraits[selected_portrait]); char.portrait = portraits[selected_portrait]; } function cyclePortrait(_arg1:MouseEvent):void{ var _local2:SelectArrow; if ((_arg1.currentTarget is SelectArrow)){ _local2 = SelectArrow(_arg1.currentTarget); } else { return; }; if (_local2.name == "portrait_left"){ selected_portrait--; if (selected_portrait < 0){ selected_portrait = (portraits.length - 1); }; } else { if (_local2.name == "portrait_right"){ selected_portrait++; if (selected_portrait > (portraits.length - 1)){ selected_portrait = 0; }; }; }; updatePortrait(); } function setClass(_arg1:MouseEvent):void{ var _local3:*; var _local2:* = 1; while (_local2 <= 7) { _local3 = getChildByName(("class" + _local2)); if (_local3 == null){ } else { if (_arg1.currentTarget == _local3){ selected_class = _local2; }; }; _local2++; }; updateClass(); } function cycleClass(_arg1:MouseEvent):void{ var _local2:SelectArrow; if ((_arg1.currentTarget is SelectArrow)){ _local2 = SelectArrow(_arg1.currentTarget); } else { return; }; _local2.clicked(); if (_local2.name == "class_left"){ selected_class--; if (selected_class < 1){ selected_class = 5; }; } else { if (_local2.name == "class_right"){ selected_class++; if (selected_class > 7){ selected_class = 1; }; }; }; updateClass(); } public function updateFromChar():void{ name_text.text = char.charname; } function randomName(_arg1:MouseEvent=null):void{ var _local2:int; var _local3 = ""; var _local4:* = name_text.text; while ((((char.charname == null)) || ((((char.charname == _local4)) && ((_local2 < 100)))))) { _local3 = PlayerCharacter.randomName(char.male); if (!PartyCreation(parent).isNameTaken(_local3)){ char.charname = _local3; }; _local2++; }; if (_local4 != _local3){ lastRandomName = _local3; }; name_text.text = char.charname; } function toggleGender(_arg1:MouseEvent):void{ if (char.male){ char.male = false; gender_icon.gotoAndStop("female"); } else { char.male = true; gender_icon.gotoAndStop("male"); }; selected_portrait = (selected_class - 1); updatePortraitsArray(); updatePortrait(); if (name_text.text == lastRandomName){ randomName(); }; } } }//package
Section 68
//CharGraphic (CharGraphic) package { import flash.events.*; import flash.display.*; public class CharGraphic extends MovieClip { private var frame:int; private var customPortrait:Bitmap; public var custom:Boolean;// = false public var char_ref:Character; static const ranger1 = 1; static const cleric1 = 2; static const mage1 = 3; static const warrior1 = 4; static const rogue1 = 5; static const conjuror1 = 6; static const barbarian1 = 7; static const adventurer = 70; static const zombie = 21; static const ghost = 22; static const skeleton = 23; static const skeleton_archer = 24; static const vampire = 25; static const death_knight = 26; static const necromancer = 27; static const lich = 28; static const bone_horror = 29; static const orc = 31; static const troll = 32; static const goblin = 33; static const goblin_archer = 34; static const orc_warlord = 35; static const orc_juggernaut = 36; static const orc_shaman = 37; static const orc_champion = 38; static const orc_woman = 39; static const basilisk = 42; static const arachnoid = 43; static const dragon = 44; static const beholder = 45; static const gargoyle = 46; static const greebler = 47; static const poison_drake = 48; static const lightning_drake = 49; static const cult_warrior = 51; static const cult_archer = 52; static const cult_priest = 53; static const aetherguard = 54; static const ascendant = 55; static const cult_chosen = 56; static const cult_engine = 57; static const cult_neophyte = 58; static const voidstalker = 59; static const demon = 60; static const dwarf_maniac = 61; static const dwarf_warrior = 62; static const dwarf_crossbow = 63; static const dwarf_scarred = 64; static const dwarf_veteran = 65; static const dwarf_fruit = 66; static const dwarf_warlord = 67; static const dwarf_runesmith = 68; static const gorgon = 71; static const minotaur = 72; static const hydraBody = 73; static const hydraHead1 = 90; static const hydraHead2 = 91; static const satyr = 94; static const fearSower = 95; static const dreadfather = 96; static const empty = 74; static const blank = 75; static const loading = 76; static const sprite_blue = 77; static const sprite_red = 78; static const sprite_green = 79; static const wolf = 80; static const golem = 81; static const whirlwind = 89; public function CharGraphic(_arg1:int=1){ addFrameScript(0, frame1); setFrame(_arg1); } private function removed(_arg1:Event):void{ removeCustomPortrait(); } public function setFrame(_arg1:int){ this.frame = _arg1; this.gotoAndStop(_arg1); } public function setChar(_arg1:Character, _arg2:Boolean=false):void{ var _local3:CustomPortrait; this.char_ref = _arg1; if (_arg1.useCustomPortrait){ if (_arg1.customLoading){ setFrame(loading); }; if (((_arg2) || ((_arg1.customPortrait == null)))){ trace("custom portrait reloading"); _local3 = new CustomPortrait(_arg1.customPortraitUrl, addCustomPortrait, addCustomFailed, _arg1); } else { addCustomPortrait(_arg1.customPortrait); }; } else { custom = false; removeCustomPortrait(); setFrame(_arg1.portrait); }; } public function addCustomPortrait(_arg1:BitmapData, _arg2:Character=null):void{ trace(((("addCustomPortrait: " + _arg1) + " ") + _arg2)); if (((!((_arg2 == null))) && (!((_arg2 == char_ref))))){ return; }; removeCustomPortrait(); custom = true; setFrame(blank); customPortrait = new Bitmap(_arg1); customPortrait.smoothing = true; customPortrait.width = 58; customPortrait.height = 58; customPortrait.x = 0; customPortrait.y = 0; addChild(customPortrait); } public function addCustomFailed(_arg1:Character=null):void{ trace("addCustomPortraitFailed"); if (((!((_arg1 == null))) && (!((_arg1 == char_ref))))){ return; }; removeCustomPortrait(); setFrame(empty); custom = false; } private function removeCustomPortrait():void{ if (customPortrait == null){ return; }; if (this.contains(customPortrait)){ removeChild(customPortrait); }; customPortrait = null; } function frame1(){ this.stop(); } } }//package
Section 69
//CharInfoPanel (CharInfoPanel) package { import flash.events.*; import flash.display.*; public class CharInfoPanel extends MovieClip { var char_ref:PlayerCharacter; public var skills_tab:InventoryTab; public var stats_tab:InventoryTab; public var stats_panel:CharStatsPanel; public var skills_panel:CharSkillsPanel; public function CharInfoPanel(_arg1:PlayerCharacter=null){ char_ref = _arg1; if (_arg1 != null){ setChar(_arg1); }; stats_tab.tab_text.text = "Statistics"; stats_tab.gotoAndStop(1); stats_tab.addEventListener(MouseEvent.MOUSE_DOWN, clickStatsTab); var _local2:uint = (numChildren - 1); setChildIndex(stats_tab, _local2); skills_tab.tab_text.text = "Skills"; skills_tab.gotoAndStop(2); skills_tab.addEventListener(MouseEvent.MOUSE_DOWN, clickSkillsTab); removeChild(skills_panel); } public function cleanup():void{ stats_tab.removeEventListener(MouseEvent.MOUSE_DOWN, clickStatsTab); skills_tab.removeEventListener(MouseEvent.MOUSE_DOWN, clickSkillsTab); stats_panel.cleanup(); skills_panel.cleanup(); } public function setChar(_arg1:PlayerCharacter){ var _local2:uint; if (_arg1 == null){ return; }; char_ref = _arg1; stats_panel.char_ref = _arg1; skills_panel.char_ref = _arg1; updateValues(); if (parent){ _local2 = (parent.numChildren - 1); parent.setChildIndex(this, _local2); }; } public function updateValues():void{ stats_panel.updateValues(); skills_panel.updateValues(); updateTabFlashes(); if (((!((parent == null))) && ((parent is Inventory)))){ Inventory(parent).updateStats(); }; } private function updateTabFlashes():void{ stats_tab.setFlasher((char_ref.stat_points > 0)); skills_tab.setFlasher((char_ref.skill_points > 0)); } function clickStatsTab(_arg1:MouseEvent):void{ dm.childToTop(stats_tab); stats_tab.gotoAndStop(1); if (!this.contains(stats_panel)){ addChild(stats_panel); }; if (this.contains(skills_panel)){ removeChild(skills_panel); }; dm.childToTop(stats_panel); skills_tab.gotoAndStop(2); updateTabFlashes(); } function clickSkillsTab(_arg1:MouseEvent):void{ dm.childToTop(skills_tab); skills_tab.gotoAndStop(1); if (this.contains(stats_panel)){ removeChild(stats_panel); }; if (!this.contains(skills_panel)){ addChild(skills_panel); }; dm.childToTop(skills_panel); stats_tab.gotoAndStop(2); updateTabFlashes(); } } }//package
Section 70
//CharSkillsPanel (CharSkillsPanel) package { import flash.events.*; import flash.display.*; import flash.text.*; public class CharSkillsPanel extends Sprite { var char_ref:PlayerCharacter; var start_drag_x;// = 0 var start_drag_y;// = 0 var dragging:Boolean;// = false var dragged_icon:SkillIcon; var num_idle:int;// = 0 var num_active:int;// = 0 public var skillpoints_number:TextField; public var newskills_button:TextField; public var active1:SkillIconEmpty; public var active2:SkillIconEmpty; public var active3:SkillIconEmpty; public var active4:SkillIconEmpty; public var active5:SkillIconEmpty; public var active6:SkillIconEmpty; public var idle1:SkillIconEmpty; public var idle2:SkillIconEmpty; public var idle3:SkillIconEmpty; public var idle4:SkillIconEmpty; public var idle5:SkillIconEmpty; public var idle6:SkillIconEmpty; public var idle7:SkillIconEmpty; public var idle8:SkillIconEmpty; public var idle9:SkillIconEmpty; public var idle10:SkillIconEmpty; public var passiveOffense:PassiveSkillIcon; public var passiveDefense:PassiveSkillIcon; public function CharSkillsPanel(_arg1:PlayerCharacter=null){ char_ref = _arg1; newskills_button.addEventListener(MouseEvent.MOUSE_DOWN, buySkillsClick); if (_arg1 != null){ updateValues(); }; } public function cleanup():void{ newskills_button.removeEventListener(MouseEvent.MOUSE_DOWN, buySkillsClick); removeSkillIcons(); } function buySkillsClick(_arg1:MouseEvent):void{ var _local2:* = new BuySkills(CharInfoPanel(parent)); _local2.setChar(char_ref); stage.addChild(_local2); } private function removeIcon(_arg1:SkillIcon):void{ if (_arg1 == null){ return; }; if (this.contains(_arg1)){ removeChild(_arg1); }; _arg1.bg.removeEventListener(MouseEvent.MOUSE_DOWN, startItemDragging); _arg1.bg.removeEventListener(MouseEvent.MOUSE_UP, stopItemDragging); _arg1.bg.removeEventListener(MouseEvent.DOUBLE_CLICK, mouseDblClickSkill); _arg1.cleanup(); } private function removeSkillIcons():void{ var _local2:*; var _local1:* = 0; num_active = 0; num_idle = 0; _local1 = 0; while (_local1 < 6) { _local2 = getChildByName(("icon_active" + (_local1 + 1))); removeIcon(_local2); _local1++; }; _local1 = 0; while (_local1 < 10) { _local2 = getChildByName(("icon_idle" + (_local1 + 1))); removeIcon(_local2); _local1++; }; } private function getActiveSkillInPosition(_arg1:int):Skill{ var _local2:* = 0; while (_local2 < char_ref.skills.length) { if (((char_ref.skills[_local2].active) && ((char_ref.skills[_local2].position == _arg1)))){ return (char_ref.skills[_local2]); }; _local2++; }; return (null); } private function setDefaultAttack():void{ var _local1:* = char_ref.gear[Equipment.weapon]; var _local2:* = 1; if (char_ref.skills[0] != null){ _local2 = char_ref.skills[0].position; }; if (_local1 != null){ if ((_local1 is MeleeWeapon)){ char_ref.skills[0] = new sWeaponAttack(char_ref); } else { if ((_local1 is RangedWeapon)){ char_ref.skills[0] = new sRangedAttack(char_ref); } else { if ((_local1 is MageWeapon)){ char_ref.skills[0] = new sMageAttack(char_ref); }; }; }; } else { char_ref.skills[0] = new sUnarmedAttack(char_ref); }; char_ref.skills[0].active = true; char_ref.skills[0].position = _local2; } public function updateValues(){ var _local1:*; var _local2:Skill; var _local3:SkillIcon; var _local4:*; var _local5:*; if (char_ref == null){ return; }; skillpoints_number.text = String(char_ref.skill_points); passiveOffense.updateSkill(char_ref, true); passiveDefense.updateSkill(char_ref, false); removeSkillIcons(); setDefaultAttack(); _local4 = 0; for (;_local4 < char_ref.skills.length;_local4++) { _local2 = char_ref.skills[_local4]; if (_local2 == null){ } else { if (!_local2.unlocked){ } else { if (num_active >= 6){ _local2.active = false; }; if (_local2.active){ _local1 = getChildByName(("active" + _local2.position)); if (_local1 == null){ continue; }; _local3 = new SkillIcon(); _local3.setSkill(_local2); _local3.setOwner(char_ref); _local3.x = _local1.x; _local3.y = _local1.y; _local3.name = ("icon_active" + _local2.position); addChild(_local3); _local3.bg.addEventListener(MouseEvent.MOUSE_DOWN, startItemDragging); _local3.bg.addEventListener(MouseEvent.MOUSE_UP, stopItemDragging); _local3.bg.doubleClickEnabled = true; _local3.bg.addEventListener(MouseEvent.DOUBLE_CLICK, mouseDblClickSkill); _local3.setUsable(_local3.skill_ref.usable(true)); num_active++; } else { _local1 = getChildByName(("idle" + (num_idle + 1))); if (_local1 == null){ } else { _local3 = new SkillIcon(); _local3.setSkill(_local2); _local3.setOwner(char_ref); _local3.x = _local1.x; _local3.y = _local1.y; addChild(_local3); _local3.name = ("icon_idle" + (num_idle + 1)); _local3.bg.addEventListener(MouseEvent.MOUSE_DOWN, startItemDragging); _local3.bg.addEventListener(MouseEvent.MOUSE_UP, stopItemDragging); _local3.bg.doubleClickEnabled = true; _local3.bg.addEventListener(MouseEvent.DOUBLE_CLICK, mouseDblClickSkill); _local3.setUsable(_local3.skill_ref.usable(true)); num_idle++; }; }; }; }; }; } private function lowestAvailablePosition():int{ var _local1:*; var _local2:* = 1; while (_local2 <= 6) { if (getChildByName(("icon_active" + _local2)) == null){ return (_local2); }; _local2++; }; return (-1); } function mouseDblClickSkill(_arg1:MouseEvent):void{ if (_arg1.currentTarget.parent == null){ return; }; if (!(_arg1.currentTarget.parent is SkillIcon)){ return; }; var _local2:SkillIcon = SkillIcon(_arg1.currentTarget.parent); if (_local2.skill_ref.active){ _local2.skill_ref.active = false; updateValues(); } else { if (num_active < 6){ _local2.skill_ref.active = true; _local2.skill_ref.position = lowestAvailablePosition(); updateValues(); }; }; } function startItemDragging(_arg1:MouseEvent):void{ var _local2:SkillIcon; if (((!((_arg1.currentTarget.parent == null))) && ((_arg1.currentTarget.parent is SkillIcon)))){ _local2 = _arg1.currentTarget.parent; } else { return; }; var _local3:uint = (numChildren - 1); setChildIndex(_local2, _local3); start_drag_x = _local2.x; start_drag_y = _local2.y; _local2.startDrag(); dragging = true; dragged_icon = _local2; var _local4:* = _local2.tooltip; if (_local4 != null){ _local2.mouseOutTarget(null); }; } function stopItemDragging(_arg1:MouseEvent):void{ var _local2:* = 0; var _local3:SkillIcon = _arg1.currentTarget.parent; if (_local3 == null){ return; }; if (!(_local3 is SkillIcon)){ return; }; _arg1.currentTarget.stopDrag(); if (!dragging){ return; }; dragging = false; if ((((_local3.x == start_drag_x)) && ((_local3.y == start_drag_y)))){ return; }; var _local4:* = _local3.dropTarget.parent; if (_local4 == null){ return; }; if (_local4.name == "bg"){ _local4 = _local4.parent; if (_local4 == null){ return; }; }; if ((_local4 is SkillIcon)){ if (_local4.name.search("idle") > -1){ if (_local3.skill_ref.active){ if (_local3.skill_ref == char_ref.skills[0]){ updateValues(); return; }; _local3.skill_ref.active = false; SkillIcon(_local4).skill_ref.position = _local3.skill_ref.position; SkillIcon(_local4).skill_ref.active = true; }; updateValues(); } else { if (_local4.name.search("active") > -1){ if (_local3.skill_ref.active){ _local2 = _local3.skill_ref.position; _local3.skill_ref.position = SkillIcon(_local4).skill_ref.position; SkillIcon(_local4).skill_ref.position = _local2; updateValues(); } else { if (SkillIcon(_local4).skill_ref == char_ref.skills[0]){ updateValues(); return; }; _local3.skill_ref.position = SkillIcon(_local4).skill_ref.position; _local3.skill_ref.active = true; SkillIcon(_local4).skill_ref.active = false; updateValues(); }; }; }; } else { if ((_local4 is SkillIconEmpty)){ _local3.x = _local4.x; _local3.y = _local4.y; if (_local4.name.search("idle") > -1){ if (_local3.skill_ref == char_ref.skills[0]){ updateValues(); return; }; if (_local3.skill_ref.active){ _local3.skill_ref.active = false; updateValues(); }; } else { if (_local4.name.search("active") > -1){ _local3.skill_ref.active = true; _local3.skill_ref.position = _local4.name.charAt((_local4.name.length - 1)).valueOf(); updateValues(); }; }; } else { updateValues(); }; }; } } }//package
Section 71
//CharStatsPanel (CharStatsPanel) package { import flash.events.*; import flash.display.*; public class CharStatsPanel extends Sprite { const color_red:uint = 0xE90000; const color_white:uint = 0xFFFFFF; const color_green:uint = 52275; var char_ref:PlayerCharacter; public var strength_inc:StatIncreaseButton; public var endurance_inc:StatIncreaseButton; public var intellect_inc:StatIncreaseButton; public var dexterity_inc:StatIncreaseButton; public var undo_btn:SimpleButton; public var str_number:StatNumber; public var end_number:StatNumber; public var dex_number:StatNumber; public var int_number:StatNumber; public var statpoints_number:StatNumber; public var accuracy_number:StatNumber; public var quickness_number:StatNumber; public var damage_number:StatNumber; public var armor_number:StatNumber; public var reduction_number:StatNumber; public var reflection_number:StatNumber; public var poisonResist_number:StatNumber; public var stunResist_number:StatNumber; public var healthRegen_number:StatNumber; public var powerRegen_number:StatNumber; public var vampiric_number:StatNumber; public var stun_number:StatNumber; public var poison_number:StatNumber; public var blind_number:StatNumber; public var lethality_number:StatNumber; public function CharStatsPanel(_arg1:PlayerCharacter=null){ char_ref = _arg1; strength_inc.addEventListener(MouseEvent.MOUSE_DOWN, statClick); endurance_inc.addEventListener(MouseEvent.MOUSE_DOWN, statClick); dexterity_inc.addEventListener(MouseEvent.MOUSE_DOWN, statClick); intellect_inc.addEventListener(MouseEvent.MOUSE_DOWN, statClick); undo_btn.addEventListener(MouseEvent.MOUSE_DOWN, undoClick); undo_btn.useHandCursor = false; if (this.contains(undo_btn)){ this.removeChild(undo_btn); }; if (_arg1 != null){ updateValues(); }; } private function disableButtons():void{ strength_inc.gotoAndStop(2); endurance_inc.gotoAndStop(2); dexterity_inc.gotoAndStop(2); intellect_inc.gotoAndStop(2); } private function enableButtons():void{ strength_inc.gotoAndStop(1); endurance_inc.gotoAndStop(1); dexterity_inc.gotoAndStop(1); intellect_inc.gotoAndStop(1); } function statClick(_arg1:MouseEvent):void{ var _local2:* = false; if (!char_ref.stat_points){ disableButtons(); return; }; var _local3 = 1; if (_arg1.shiftKey){ _local3 = char_ref.stat_points; } else { if (_arg1.ctrlKey){ _local3 = Math.floor(((char_ref.stat_points / 3) * 2)); }; }; if (_arg1.currentTarget.contains(strength_inc)){ char_ref.strength = (char_ref.strength + _local3); _local2 = true; } else { if (_arg1.currentTarget.contains(endurance_inc)){ char_ref.endurance = (char_ref.endurance + _local3); _local2 = true; } else { if (_arg1.currentTarget.contains(dexterity_inc)){ char_ref.dexterity = (char_ref.dexterity + _local3); _local2 = true; } else { if (_arg1.currentTarget.contains(intellect_inc)){ char_ref.intellect = (char_ref.intellect + _local3); _local2 = true; }; }; }; }; if (_local2){ char_ref.stat_points = (char_ref.stat_points - _local3); if (!char_ref.stat_points){ disableButtons(); }; if (((!((parent == null))) && ((parent is CharInfoPanel)))){ CharInfoPanel(parent).updateValues(); } else { updateValues(); }; if (!this.contains(undo_btn)){ this.addChild(undo_btn); }; }; } function undoClick(_arg1:MouseEvent):void{ char_ref.stat_points = char_ref.old_stat_points; char_ref.strength = char_ref.old_strength; char_ref.endurance = char_ref.old_endurance; char_ref.dexterity = char_ref.old_dexterity; char_ref.intellect = char_ref.old_intellect; if (((!((parent == null))) && ((parent is CharInfoPanel)))){ CharInfoPanel(parent).updateValues(); } else { updateValues(); }; if (this.contains(undo_btn)){ this.removeChild(undo_btn); }; } public function updateValues(){ var _local1:*; var _local2:*; if (char_ref == null){ return; }; if (char_ref.stat_points){ enableButtons(); } else { disableButtons(); }; if (char_ref.stat_points == char_ref.old_stat_points){ if (this.contains(undo_btn)){ this.removeChild(undo_btn); }; } else { if (!this.contains(undo_btn)){ this.addChild(undo_btn); }; }; str_number.nlabel.text = String(char_ref.getStrength()); end_number.nlabel.text = String(char_ref.getEndurance()); dex_number.nlabel.text = String(char_ref.getDexterity()); int_number.nlabel.text = String(char_ref.getIntellect()); statpoints_number.nlabel.text = String(char_ref.stat_points); accuracy_number.nlabel.text = (String(char_ref.getAccuracy()) + "%"); quickness_number.nlabel.text = String(char_ref.getQuickness()); damage_number.nlabel.text = String(char_ref.getWeaponDamage()); armor_number.nlabel.text = String(char_ref.getArmorRating()); reduction_number.nlabel.text = (String(char_ref.getDamageResist()) + "%"); poisonResist_number.nlabel.text = (String(char_ref.getPoisonResist()) + "%"); stunResist_number.nlabel.text = (String(char_ref.getStunResist()) + "%"); healthRegen_number.nlabel.text = String(char_ref.getHealthRegen()); powerRegen_number.nlabel.text = String(char_ref.getPowerRegen()); vampiric_number.nlabel.text = (String(char_ref.getVampiric()) + "%"); stun_number.nlabel.text = (String(char_ref.getStunChance()) + "%"); poison_number.nlabel.text = String(char_ref.getPoisonDamage()); blind_number.nlabel.text = String(char_ref.getAccuracyDamage()); lethality_number.nlabel.text = (String(char_ref.getLethality()) + "%"); reflection_number.nlabel.text = (String(char_ref.getDamageReflection()) + "%"); reduction_number.nlabel.textColor = color_white; damage_number.nlabel.textColor = color_white; poisonResist_number.nlabel.textColor = color_white; stunResist_number.nlabel.textColor = color_white; quickness_number.nlabel.textColor = color_white; if (char_ref.potion_damage_resist){ reduction_number.nlabel.textColor = color_green; }; if (char_ref.potion_damage_bonus){ damage_number.nlabel.textColor = color_green; }; if (char_ref.potion_poison_resist){ poisonResist_number.nlabel.textColor = color_green; }; if (char_ref.potion_stun_resist){ stunResist_number.nlabel.textColor = color_green; }; if (char_ref.potion_quickness_bonus){ quickness_number.nlabel.textColor = color_green; }; str_number.tt_title = "Strength"; end_number.tt_title = "Endurance"; dex_number.tt_title = "Dexterity"; int_number.tt_title = "Intellect"; statpoints_number.tt_title = "Stat Points"; accuracy_number.tt_title = "Accuracy"; quickness_number.tt_title = "Quickness"; damage_number.tt_title = "Weapon Damage"; armor_number.tt_title = "Armor Rating"; reduction_number.tt_title = "Damage Reduction"; poisonResist_number.tt_title = "Poison Resistance"; stunResist_number.tt_title = "Stun Resistance"; healthRegen_number.tt_title = "Health Regeneration"; powerRegen_number.tt_title = "Power Regeneration"; vampiric_number.tt_title = "Health Drain on Hit"; stun_number.tt_title = "Cause Stun on Hit"; poison_number.tt_title = "Poison Damage on Hit"; blind_number.tt_title = "Accuracy Damage on Hit"; lethality_number.tt_title = "Instant Kill on Hit"; reflection_number.tt_title = "Damage Reflection"; str_number.tt_text = "Increases damage done with melee weapons."; end_number.tt_text = "Increases total health points."; dex_number.tt_text = "Increases damage done with ranged weapons."; int_number.tt_text = "Increases the effectiveness of magic."; statpoints_number.tt_text = "You may spend Stat Points to increase one of the character's four main statistics: Strength, Endurance, Dexterity or Intellect. A character gains three extra Stat Points each time they level up."; accuracy_number.tt_text = "Chance to hit with attacks in combat. Higher accuracy is always better, as it helps counteract Blind effects."; quickness_number.tt_text = "Determines turn order in combat. Characters with higher Quickness act sooner."; armor_number.tt_text = "The total of the Armor Rating on all the character's equipment. A higher armor rating grants a greater level of incoming damage reduction."; reduction_number.tt_text = "Damage the character receives is reduced by this amount."; poisonResist_number.tt_text = "Percentage reduction in the damage received from poison effects."; stunResist_number.tt_text = "Percentage chance of resisting stun effects."; healthRegen_number.tt_text = "Health regenerated during combat at the start of the character's turn."; powerRegen_number.tt_text = "Power regenerated during combat at the start of the character's turn."; vampiric_number.tt_text = "Damaging hits will return this percentage of damage caused back to the character as restored health. Vampiric effects cannot return more than half your total health in one turn."; stun_number.tt_text = "Percentage chance that damaging hits will stun the target. If attacking multiple targets or multiple times, the chance is divided amongst all targets."; poison_number.tt_text = "Damaging hits will add this amount of ongoing poison damage to the target. If attacking multiple targets or multiple times, the effect is divided amongst all targets."; blind_number.tt_text = "On a damaging hit, the target's accuracy is reduced by up to this amount. If attacking multiple targets or multiple times, the effect is divided amongst all targets."; lethality_number.tt_text = "Percentage chance that damaging hits will instantly kill the target. If attacking multiple targets or multiple times, the chance is divided amongst all targets."; reflection_number.tt_text = "This percentage of damage received is inflicted on the attacker."; damage_number.tt_text = "Damage for basic weapon attacks."; if (char_ref.gear[Equipment.weapon]){ _local1 = 0; _local2 = "stat"; damage_number.tt_text = (damage_number.tt_text + (("\n\n" + char_ref.gear[Equipment.weapon].damage) + " (weapon)")); if ((char_ref.gear[Equipment.weapon] is iDagger)){ _local1 = (char_ref.getStrengthDamageBonus() + char_ref.getDexterityDamageBonus()); _local2 = "strength+dexterity"; } else { if ((char_ref.gear[Equipment.weapon] is MeleeWeapon)){ _local1 = char_ref.getStrengthDamageBonus(); _local2 = "strength"; } else { if ((char_ref.gear[Equipment.weapon] is RangedWeapon)){ _local1 = char_ref.getDexterityDamageBonus(); _local2 = "dexterity"; } else { if ((char_ref.gear[Equipment.weapon] is MageWeapon)){ _local1 = char_ref.getIntellectDamageBonus(); _local2 = "intellect"; }; }; }; }; damage_number.tt_text = (damage_number.tt_text + ((((" + " + _local1) + " (") + _local2) + " bonus)\n")); } else { damage_number.tt_text = (("Base damage for attacks.\n\n " + char_ref.getUnarmedDamage()) + " (strength bonus)"); }; } public function cleanup():void{ strength_inc.removeEventListener(MouseEvent.MOUSE_DOWN, statClick); endurance_inc.removeEventListener(MouseEvent.MOUSE_DOWN, statClick); dexterity_inc.removeEventListener(MouseEvent.MOUSE_DOWN, statClick); intellect_inc.removeEventListener(MouseEvent.MOUSE_DOWN, statClick); undo_btn.removeEventListener(MouseEvent.MOUSE_DOWN, undoClick); strength_inc.cleanup(); endurance_inc.cleanup(); dexterity_inc.cleanup(); intellect_inc.cleanup(); str_number.cleanup(); end_number.cleanup(); dex_number.cleanup(); int_number.cleanup(); statpoints_number.cleanup(); accuracy_number.cleanup(); quickness_number.cleanup(); armor_number.cleanup(); reduction_number.cleanup(); reflection_number.cleanup(); poisonResist_number.cleanup(); stunResist_number.cleanup(); healthRegen_number.cleanup(); powerRegen_number.cleanup(); vampiric_number.cleanup(); poison_number.cleanup(); blind_number.cleanup(); lethality_number.cleanup(); damage_number.cleanup(); } } }//package
Section 72
//CleanSlate (CleanSlate) package { public class CleanSlate extends Consumable { public function CleanSlate(_arg1:int=1){ item_name = "Clean Slate"; lore = "It's not often you get a chance to start over."; reset_stats = true; item_rarity = Item.orange; icon_frame = 84; } override public function getWorth():int{ return ((super.getWorth() * 2)); } } }//package
Section 73
//ClickToScroll (ClickToScroll) package { import flash.events.*; import flash.display.*; public class ClickToScroll extends MovieClip { private var _scrolling:Boolean;// = false public function ClickToScroll():void{ _scrolling = false; addEventListener(MouseEvent.MOUSE_DOWN, down); addEventListener(MouseEvent.MOUSE_UP, up); addEventListener(MouseEvent.MOUSE_OUT, out); } public function get scrolling():Boolean{ return (_scrolling); } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_DOWN, down); removeEventListener(MouseEvent.MOUSE_UP, up); removeEventListener(MouseEvent.MOUSE_OUT, out); } private function down(_arg1:MouseEvent):void{ _scrolling = true; } private function up(_arg1:MouseEvent):void{ _scrolling = false; } private function out(_arg1:MouseEvent):void{ _scrolling = false; } } }//package
Section 74
//clone_create_effect (clone_create_effect) package { import flash.display.*; public dynamic class clone_create_effect extends MovieClip { public function clone_create_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.clone); } function frame45(){ this.stop(); } } }//package
Section 75
//clone_effect (clone_effect) package { import flash.display.*; public dynamic class clone_effect extends MovieClip { public function clone_effect(){ addFrameScript(44, frame45); } function frame45(){ this.stop(); } } }//package
Section 76
//ClonePortrait (ClonePortrait) package { import flash.display.*; public dynamic class ClonePortrait extends MovieClip { } }//package
Section 77
//coins_sound (coins_sound) package { import flash.media.*; public dynamic class coins_sound extends Sound { } }//package
Section 78
//CombatFloater (CombatFloater) package { import flash.events.*; import flash.display.*; import flash.text.*; public class CombatFloater extends MovieClip { private const FLOAT_FRAMES:int = 45; private const FADE_FRAMES:int = 5; private const Y_DISTANCE:int = 50; public var floatText:TextField; private var text:String; private var frameCount:int; private var original_y:int; public function CombatFloater(_arg1:String="Blank"):void{ this.setText(_arg1); frameCount = 0; original_y = floatText.y; addEventListener(Event.ENTER_FRAME, onFrame); } public function setText(_arg1:String):void{ this.text = _arg1; floatText.text = _arg1; dmf.embolden(floatText); } private function onFrame(_arg1:Event):void{ frameCount++; if (frameCount > FLOAT_FRAMES){ remove(); } else { floatText.y = (original_y - ((frameCount / FLOAT_FRAMES) * Y_DISTANCE)); if (frameCount > (FLOAT_FRAMES - FADE_FRAMES)){ floatText.alpha = Math.max((floatText.alpha - (1 / FADE_FRAMES)), 0); }; }; } public function remove():void{ removeEventListener(Event.ENTER_FRAME, onFrame); if (parent != null){ parent.removeChild(this); }; } } }//package
Section 79
//confuse_effect (confuse_effect) package { import flash.display.*; public dynamic class confuse_effect extends MovieClip { } }//package
Section 80
//Consumable (Consumable) package { public class Consumable extends Item { private var _stack:int;// = 1 var restore_health:int;// = 0 var restore_power:int;// = 0 var resurrect:Boolean;// = false var sneaky:Boolean;// = false var reset_stats:Boolean;// = false var town_portal:Boolean;// = false var campaign_combiner:Boolean;// = false var campaign_portal:Boolean;// = false var summons_legendary:Boolean;// = false var summons_insanity:Boolean;// = false var increase_strength:int;// = 0 var increase_dexterity:int;// = 0 var increase_endurance:int;// = 0 var increase_intellect:int;// = 0 var damage_resist:int;// = 0 var damage_bonus:int;// = 0 var poison_resist:int;// = 0 var stun_resist:int;// = 0 var quickness_bonus:int;// = 0 public function Consumable(){ item_name = "Consumable"; item_level = 0; item_rarity = Item.grey; icon_frame = 1; } public function get stack():int{ return (this._stack); } public function set stack(_arg1:int):void{ this._stack = _arg1; } override public function getWorth():int{ var _local1:Number = 50; _local1 = (_local1 * (1 + ((ITEM_VALUE_INCREASE_PER_LEVEL * item_level) / 100))); var _local2:* = Item.blue; while (_local2 <= item_rarity) { _local1 = (_local1 * 1.75); _local2++; }; return (Math.round(_local1)); } override public function getItemTypeString(){ return ("Consumable"); } override public function itemStatsString(_arg1:String):String{ _arg1 = ""; _arg1 = (_arg1 + "Use: "); if (town_portal){ _arg1 = (_arg1 + "Teleport to the Emporium, to trade equipment and items\n"); }; if (reset_stats){ _arg1 = (_arg1 + "Reset a character's strength, endurance, dexterity and intellect to base amounts for level, recover all spent Stat points.\n\n(Tip: Shift-click on increase button to spend all remaining stat points, ctrl-click to spend 2/3)\n"); }; if (resurrect){ _arg1 = (_arg1 + "Revives a character\n"); }; if (sneaky){ _arg1 = (_arg1 + "Allows the party to pass by one enemy horde without being attacked\n"); }; if (summons_legendary){ _arg1 = (_arg1 + "Summons a legendary creature to fight against\n"); }; if (summons_insanity){ _arg1 = (_arg1 + "Summons an incredibly difficult group of opponents to fight against\n"); }; if (restore_health){ _arg1 = (_arg1 + (("Restores " + restore_health) + "% maximum health\n")); }; if (restore_power){ _arg1 = (_arg1 + (("Restores " + restore_power) + "% maximum power\n")); }; if (damage_resist){ _arg1 = (_arg1 + (("Grants +" + damage_resist) + "% damage resistance for next battle\n")); }; if (damage_bonus){ _arg1 = (_arg1 + (("Grants +" + damage_bonus) + "% bonus damage for next battle\n")); }; if (stun_resist){ _arg1 = (_arg1 + (("Grants +" + stun_resist) + "% stun resistance for next battle\n")); }; if (poison_resist){ _arg1 = (_arg1 + (("Grants +" + poison_resist) + "% poison resistance for next battle\n")); }; if (quickness_bonus){ _arg1 = (_arg1 + (("Grants +" + quickness_bonus) + " quickness for next battle\n")); }; if (increase_strength){ _arg1 = (_arg1 + (("Permanently increase Strength by " + increase_strength) + "\n")); }; if (increase_endurance){ _arg1 = (_arg1 + (("Permanently increase Endurance by " + increase_endurance) + "\n")); }; if (increase_dexterity){ _arg1 = (_arg1 + (("Permanently increase Dexterity by " + increase_dexterity) + "\n")); }; if (increase_intellect){ _arg1 = (_arg1 + (("Permanently increase Intellect by " + increase_intellect) + "\n")); }; if (campaign_combiner){ _arg1 = (_arg1 + "Combine nine fragments into a Journeyman's Stone\n"); }; if (campaign_portal){ _arg1 = (_arg1 + "Teleport to the Sanctum, to face the Dreadfather\n"); }; _arg1 = (_arg1 + "\n(Cannot be used in combat)\n"); return (_arg1); } private function preventStatUndo(_arg1:PlayerCharacter):void{ _arg1.old_strength = _arg1.strength; _arg1.old_endurance = _arg1.endurance; _arg1.old_dexterity = _arg1.dexterity; _arg1.old_intellect = _arg1.intellect; _arg1.old_stat_points = _arg1.stat_points; } public function consume(_arg1:PlayerCharacter, _arg2:Party):Boolean{ var _local4:*; var _local5:*; var _local6:*; var _local3:Boolean; if (campaign_combiner){ if (stack >= 9){ _arg2.addToInventory(new CampaignItemStone()); this.stack = 0; _local3 = true; } else { _local3 = false; }; }; if (campaign_portal){ if (dm.main != null){ dm.main.goToSanctum(); }; return (true); }; if (summons_legendary){ _local3 = true; if (dm.main != null){ dm.main.setupLegendaryBattle(); }; } else { if (summons_insanity){ _local3 = true; if (dm.main != null){ dm.main.setupPandoraBattle(); }; }; }; if (reset_stats){ _arg1.stat_points = ((_arg1.level - 1) * PlayerCharacter.STATS_PER_LEVEL); _local6 = (1 + ((_arg1.level - 1) * PlayerCharacter.STATS_PER_LEVEL)); _arg1.strength = _local6; _arg1.endurance = _local6; _arg1.dexterity = _local6; _arg1.intellect = _local6; preventStatUndo(_arg1); _local3 = true; }; if (((resurrect) && ((_arg1.health > 0)))){ return (false); }; if (((sneaky) && ((_arg2.sneaking < 2)))){ _arg2.sneaking = 2; _local3 = true; }; if (((restore_health) && (_arg1.increaseHealthByPercentage(restore_health, resurrect)))){ _local3 = true; }; if (_arg1.health > 0){ if (restore_power){ if (_arg1.increasePower(restore_power)){ _local3 = true; }; }; if (damage_resist){ _arg1.potion_damage_resist = Math.max(_arg1.potion_damage_resist, damage_resist); _local3 = true; }; if (poison_resist){ _arg1.potion_poison_resist = Math.max(_arg1.potion_poison_resist, poison_resist); _local3 = true; }; if (stun_resist){ _arg1.potion_stun_resist = Math.max(_arg1.potion_stun_resist, stun_resist); _local3 = true; }; if (quickness_bonus){ _arg1.potion_quickness_bonus = Math.max(_arg1.potion_quickness_bonus, quickness_bonus); _local3 = true; }; }; if (town_portal){ if ((this is ShopTeleportItem)){ if (dm.party.usedTeleportItemThisLevel){ return (false); }; dm.party.usedTeleportItemThisLevel = true; dm.main.goToShop(); return (true); } else { dm.main.goToShop(); _local3 = true; }; }; if (increase_strength){ _arg1.strength = (_arg1.strength + increase_strength); preventStatUndo(_arg1); _local3 = true; }; if (increase_endurance){ _arg1.endurance = (_arg1.endurance + increase_endurance); preventStatUndo(_arg1); _local3 = true; }; if (increase_dexterity){ _arg1.dexterity = (_arg1.dexterity + increase_dexterity); preventStatUndo(_arg1); _local3 = true; }; if (increase_intellect){ _arg1.intellect = (_arg1.intellect + increase_intellect); preventStatUndo(_arg1); _local3 = true; }; if (_local3){ this.stack--; if (this.stack <= 0){ _local4 = 0; while (_local4 < Party.MAX_INVENTORY) { if (_arg2.inventory[_local4] == this){ _arg2.inventory.splice(_local4, 1); }; _local4++; }; _local4 = 0; while (_local4 < Party.MAX_OVERFLOW) { if (_arg2.overflow[_local4] == this){ _arg2.overflow.splice(_local4, 1); }; _local4++; }; }; }; return (_local3); } public function basicHealthPotion(){ item_name = "Weak Healing Potion"; restore_health = 20; item_rarity = Item.green; item_level = 1; icon_frame = 4; } public function basicPowerPotion(){ item_name = "Weak Power Potion"; restore_power = 20; item_rarity = Item.green; item_level = 1; icon_frame = 5; } public function basicRevivePotion(){ item_name = "Weak Revival Potion"; restore_health = 1; resurrect = true; item_rarity = Item.green; item_level = 1; icon_frame = 6; } public function basicRejuvePotion(){ item_name = "Weak Rejuvenation Potion"; restore_health = 20; restore_power = 20; item_rarity = Item.blue; item_level = 1; icon_frame = 7; } } }//package
Section 81
//CorridorConnectorH (CorridorConnectorH) package { import flash.display.*; public class CorridorConnectorH extends DoorIcon { public var gfx:MovieClip; public var tint:MovieClip; public function CorridorConnectorH(){ this.gotoAndStop(1); } override public function setAlpha(_arg1:Number):void{ tint.alpha = _arg1; gfx.alpha = _arg1; } override public function getAlpha():Number{ return (gfx.alpha); } public function setFloorTint(_arg1:int):void{ if (tint != null){ tint.gotoAndStop(_arg1); }; } } }//package
Section 82
//CorridorConnectorV (CorridorConnectorV) package { import flash.display.*; public class CorridorConnectorV extends DoorIcon { public var gfx:MovieClip; public var tint:MovieClip; public function CorridorConnectorV(){ this.gotoAndStop(1); } override public function setAlpha(_arg1:Number):void{ tint.alpha = _arg1; gfx.alpha = _arg1; } override public function getAlpha():Number{ return (gfx.alpha); } public function setFloorTint(_arg1:int):void{ if (tint != null){ tint.gotoAndStop(_arg1); }; } } }//package
Section 83
//cosmic_prison (cosmic_prison) package { import flash.display.*; public dynamic class cosmic_prison extends MovieClip { public function cosmic_prison(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.cosmicPrison); } function frame45(){ this.stop(); } } }//package
Section 84
//cosmic_prison_sound (cosmic_prison_sound) package { import flash.media.*; public dynamic class cosmic_prison_sound extends Sound { } }//package
Section 85
//creature_slash (creature_slash) package { import flash.display.*; public dynamic class creature_slash extends MovieClip { public var blood:BloodRandom; public function creature_slash(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterClaws); } function frame45(){ this.stop(); } } }//package
Section 86
//creature_slash_sound (creature_slash_sound) package { import flash.media.*; public dynamic class creature_slash_sound extends Sound { } }//package
Section 87
//creature_spear (creature_spear) package { import flash.display.*; public dynamic class creature_spear extends MovieClip { public var blood:BloodRandom; public var slash:MovieClip; public function creature_spear(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterSlash); } function frame45(){ this.stop(); } } }//package
Section 88
//creature_weapon (creature_weapon) package { import flash.display.*; public dynamic class creature_weapon extends MovieClip { public var blood:BloodRandom; public var slash:horz_slash; public function creature_weapon(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterSlash); slash.rotation = DungeonMain.RandomNum(-15, 15); } function frame45(){ this.stop(); } } }//package
Section 89
//CreditsScreen (CreditsScreen) package { import flash.events.*; import flash.display.*; public class CreditsScreen extends MovieClip { public var biclops_link:SimpleButton; public var cerberus_link:SimpleButton; public var yes_btn:MovieClip; public var fglLogo:MovieClip; public var biclopsLogo:SimpleButton; public function CreditsScreen():void{ biclops_link.addEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); biclopsLogo.addEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); cerberus_link.addEventListener(MouseEvent.MOUSE_DOWN, cerberusClick); fglLogo.addEventListener(MouseEvent.MOUSE_DOWN, fglClick); yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, exitClick); } private function cleanup():void{ biclops_link.removeEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); biclopsLogo.removeEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); cerberus_link.removeEventListener(MouseEvent.MOUSE_DOWN, cerberusClick); fglLogo.removeEventListener(MouseEvent.MOUSE_DOWN, fglClick); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, exitClick); } function exitClick(_arg1:MouseEvent):void{ if (this.parent != null){ cleanup(); parent.removeChild(this); }; } public function biclopsClick(_arg1:MouseEvent):void{ dm.link("http://www.monstrumgames.com"); } public function cerberusClick(_arg1:MouseEvent):void{ dm.link("http://www.cerberusart.com"); } public function fglClick(_arg1:MouseEvent):void{ dm.link("http://www.flashgamelicense.com"); } } }//package
Section 90
//CurrentPortraitHighlight (CurrentPortraitHighlight) package { import flash.display.*; public dynamic class CurrentPortraitHighlight extends MovieClip { } }//package
Section 91
//CurrentRoomIcon (CurrentRoomIcon) package { import flash.display.*; public dynamic class CurrentRoomIcon extends MovieClip { } }//package
Section 92
//curse_effect (curse_effect) package { import flash.display.*; public dynamic class curse_effect extends MovieClip { public function curse_effect(){ addFrameScript(0, frame1, 49, frame50); } function frame1(){ dm.sound.play(SoundControl.curse, 0.5); } function frame50(){ this.stop(); } } }//package
Section 93
//curse_sound (curse_sound) package { import flash.media.*; public dynamic class curse_sound extends Sound { } }//package
Section 94
//CustomPortrait (CustomPortrait) package { import flash.events.*; import flash.display.*; import flash.net.*; import flash.system.*; public class CustomPortrait { private var portraitLoader:Loader; private var isLoading:Boolean;// = false private var callbackSuccess:Function; private var callbackFailure:Function; private var char_ref:Character; public function CustomPortrait(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Character=null):void{ this.callbackSuccess = _arg2; this.callbackFailure = _arg3; if (_arg4 != null){ this.char_ref = _arg4; }; initLoader(); loadUrl(_arg1); } private function loadUrl(_arg1:String):Boolean{ var host:String; var slash:int; var context:LoaderContext; var fullUrl:String; var u = _arg1; if (isLoading){ return (false); }; try { if (Security.sandboxType == "localWithFile"){ isLoading = false; return (false); }; if (portraitLoader.content != null){ initLoader(); }; host = u.substring(7, u.length); slash = host.indexOf("/"); host = host.substring(0, slash); context = new LoaderContext(); context.checkPolicyFile = true; Security.loadPolicyFile("http://www.biclopsgames.com/linker/crossdomain.xml"); fullUrl = ("http://www.biclopsgames.com/linker/imagelinker.php?url=" + u); portraitLoader.load(new URLRequest(fullUrl), context); return (true); } catch(error:Error) { trace(((("error! " + error.message) + "\n") + error.getStackTrace())); isLoading = false; return (false); }; return (false); } public function initLoader():void{ if (portraitLoader != null){ cleanupLoader(); }; isLoading = false; portraitLoader = new Loader(); portraitLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, doneLoad); portraitLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, imageErrorHandler); } public function cleanupLoader():void{ portraitLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, doneLoad); portraitLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, imageErrorHandler); } private function doneLoad(_arg1:Event):void{ var _local2:BitmapData; isLoading = false; cleanupLoader(); var _local3:Bitmap = Bitmap(portraitLoader.content); if (_local3 != null){ _local2 = _local3.bitmapData; }; if (callbackSuccess != null){ callbackSuccess(_local2, char_ref); }; } private function imageErrorHandler(_arg1:IOErrorEvent):void{ trace("imageErrorHandler"); isLoading = false; cleanupLoader(); if (callbackFailure != null){ callbackFailure(char_ref); }; } } }//package
Section 95
//CustomPortraitDialog (CustomPortraitDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; public class CustomPortraitDialog extends MovieClip { public var image:Bitmap; public var urlInput:TextField; public var resultsText:TextField; public var yes_btn:MovieClip; public var no_btn:MovieClip; public var load_btn:MovieClip; private var char_ref:PlayerCharacter; private var loading:Boolean;// = false private var caller:Object; public function CustomPortraitDialog(_arg1:PlayerCharacter=null, _arg2:Object=null):void{ if (_arg1 != null){ this.char_ref = _arg1; } else { return; }; if (_arg2 != null){ this.caller = _arg2; } else { return; }; resultsText.text = ""; urlInput.text = char_ref.customPortraitUrl; loadImage(); yes_btn.addEventListener(MouseEvent.CLICK, yesClick); no_btn.addEventListener(MouseEvent.CLICK, noClick); load_btn.addEventListener(MouseEvent.CLICK, loadClick); } public function cleanup():void{ yes_btn.removeEventListener(MouseEvent.CLICK, yesClick); no_btn.removeEventListener(MouseEvent.CLICK, noClick); load_btn.removeEventListener(MouseEvent.CLICK, loadClick); } public function remove():void{ removeImage(); cleanup(); if (this.parent != null){ if ((caller is Inventory)){ Inventory(caller).selectChar(char_ref); } else { if ((caller is CharCreationPanel)){ CharCreationPanel(caller).loadCustomPortrait(); }; }; parent.removeChild(this); }; } private function noClick(_arg1:MouseEvent):void{ char_ref.useCustomPortrait = false; remove(); } private function yesClick(_arg1:MouseEvent):void{ char_ref.useCustomPortrait = true; char_ref.customPortraitUrl = String(urlInput.text); if (image != null){ char_ref.customPortrait = image.bitmapData; }; char_ref.loadCustomPortrait(); remove(); } private function loadClick(_arg1:MouseEvent):void{ loadImage(); } private function loadImage():void{ if (loading){ return; }; resultsText.text = "Loading.."; loading = true; var _local1:* = new CustomPortrait(String(urlInput.text), imageLoad, imageLoadFail); } public function imageLoad(_arg1:BitmapData, _arg2:Character=null):void{ loading = false; resultsText.text = "Image loaded."; removeImage(); this.image = new Bitmap(_arg1); addImage(); } public function imageLoadFail(_arg1:Character=null):void{ loading = false; resultsText.text = "Image failed to load."; removeImage(); } private function addImage():void{ image.smoothing = true; image.width = 58; image.height = 58; image.x = 115; image.y = 175; addChild(image); } private function removeImage():void{ if (image == null){ return; }; if (this.contains(image)){ this.removeChild(image); }; } } }//package
Section 96
//dCheckBox (dCheckBox) package { import flash.events.*; import flash.display.*; import flash.text.*; public class dCheckBox extends MovieClip { public var checked:Boolean;// = false private var hover:Boolean;// = false public var description:TextField; public var hitBox:Sprite; private var clickCallback:Function; public function dCheckBox(_arg1:Boolean=false, _arg2:String=""):void{ checked = _arg1; description.mouseEnabled = false; mouseChildren = false; addEventListener(MouseEvent.MOUSE_DOWN, mouseClick); addEventListener(MouseEvent.MOUSE_OVER, mouseOn); addEventListener(MouseEvent.MOUSE_OUT, mouseOff); setDescription(_arg2); update(); } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_DOWN, mouseClick); removeEventListener(MouseEvent.MOUSE_OVER, mouseOn); removeEventListener(MouseEvent.MOUSE_OUT, mouseOff); clickCallback = null; } public function setCallback(_arg1:Function):void{ this.clickCallback = _arg1; } public function setDescription(_arg1:String, _arg2:Boolean=false, _arg3:uint=0xFFFFFF):void{ description.text = _arg1; if (_arg2){ dmf.embolden(description); }; description.autoSize = TextFieldAutoSize.LEFT; description.textColor = _arg3; hitBox.width = ((description.x + description.width) + 10); } function mouseClick(_arg1:MouseEvent):void{ if (checked){ checked = false; } else { checked = true; }; update(); if (this.clickCallback != null){ clickCallback(); }; } function mouseOn(_arg1:MouseEvent):void{ hover = true; update(); } function mouseOff(_arg1:MouseEvent):void{ hover = false; update(); } public function setChecked(_arg1:Boolean):void{ this.checked = _arg1; update(); } private function update():void{ if (!checked){ if (hover){ this.gotoAndStop(3); } else { this.gotoAndStop(1); }; } else { if (hover){ this.gotoAndStop(4); } else { this.gotoAndStop(2); }; }; } } }//package
Section 97
//DeadEffect (DeadEffect) package { import flash.display.*; public dynamic class DeadEffect extends MovieClip { } }//package
Section 98
//debuff_effect (debuff_effect) package { import flash.display.*; public dynamic class debuff_effect extends MovieClip { public function debuff_effect(){ addFrameScript(4, frame5, 44, frame45); } function frame5(){ dm.sound.play(SoundControl.debuff); } function frame45(){ this.stop(); } } }//package
Section 99
//debuff_sound (debuff_sound) package { import flash.media.*; public dynamic class debuff_sound extends Sound { } }//package
Section 100
//destroy_item_sound (destroy_item_sound) package { import flash.media.*; public dynamic class destroy_item_sound extends Sound { } }//package
Section 101
//Difficulty (Difficulty) package { public class Difficulty { static const BEGINNER = 1; static const STANDARD = 2; static const EXTREME = 3; static const HARDCORE = 1; static const TACTICAL = 2; static const ATTRITION = 4; public function Difficulty():void{ } public static function getMultiplier(_arg1:int, _arg2:uint):int{ var _local3:Number = 100; if (_arg1 == BEGINNER){ _local3 = (_local3 * 0.5); } else { if (_arg1 == EXTREME){ _local3 = (_local3 * 1.5); }; }; if ((_arg2 & HARDCORE) == HARDCORE){ _local3 = (_local3 * 1.25); }; if ((_arg2 & TACTICAL) == TACTICAL){ _local3 = (_local3 * 1.5); }; if ((_arg2 & ATTRITION) == ATTRITION){ _local3 = (_local3 * 1.2); }; return (Math.round(_local3)); } } }//package
Section 102
//DifficultySelect (DifficultySelect) package { import flash.events.*; import flash.display.*; import flash.text.*; public class DifficultySelect extends MovieClip { public var standard:MovieClip; public var beginner:MovieClip; public var extreme:MovieClip; public var checkHardcore:dCheckBox; public var checkTactical:dCheckBox; public var checkAttrition:dCheckBox; public var proceed:SimpleButton; public var optionsButton:OptionsBookButton; public var totalModifierLabel:TextField; private var party:Party; private var difficultySelected:int;// = 2 public function DifficultySelect(_arg1:Party=null):void{ party = _arg1; standard.addEventListener(MouseEvent.CLICK, standardClicked); beginner.addEventListener(MouseEvent.CLICK, beginnerClicked); extreme.addEventListener(MouseEvent.CLICK, extremeClicked); standard.useHandCursor = true; beginner.useHandCursor = true; extreme.useHandCursor = true; updateHighlightedDifficulty(); checkHardcore.setDescription("Hardcore: ", true, 0x111111); checkAttrition.setDescription("Attrition: ", true, 0x111111); checkTactical.setDescription("Tactical: ", true, 0x111111); proceed.addEventListener(MouseEvent.MOUSE_DOWN, continueClicked); addEventListener(Event.ENTER_FRAME, onFrame); } private function updateHighlightedDifficulty():void{ standard.gotoAndStop(1); beginner.gotoAndStop(1); extreme.gotoAndStop(1); switch (difficultySelected){ case Difficulty.BEGINNER: beginner.gotoAndStop(2); break; case Difficulty.STANDARD: standard.gotoAndStop(2); break; case Difficulty.EXTREME: extreme.gotoAndStop(2); break; }; } private function getMods():uint{ var _local1:uint; if (checkHardcore.checked){ _local1 = (_local1 + Difficulty.HARDCORE); }; if (checkAttrition.checked){ _local1 = (_local1 + Difficulty.ATTRITION); }; if (checkTactical.checked){ _local1 = (_local1 + Difficulty.TACTICAL); }; return (_local1); } private function setDifficulty(_arg1:int):void{ if (party != null){ party.difficulty = _arg1; party.difficultyMods = getMods(); }; } private function continueClicked(_arg1:MouseEvent):void{ setDifficulty(difficultySelected); cleanup(); dm.main.difficultySelected(); } function beginnerClicked(_arg1:MouseEvent):void{ difficultySelected = Difficulty.BEGINNER; updateHighlightedDifficulty(); } function standardClicked(_arg1:MouseEvent):void{ difficultySelected = Difficulty.STANDARD; updateHighlightedDifficulty(); } function extremeClicked(_arg1:MouseEvent):void{ difficultySelected = Difficulty.EXTREME; updateHighlightedDifficulty(); } private function updateDifficultyNumber():void{ var _local1:int = Difficulty.getMultiplier(difficultySelected, getMods()); totalModifierLabel.text = (String(_local1) + "%"); dmf.embolden(totalModifierLabel); } private function onFrame(_arg1:Event):void{ updateDifficultyNumber(); } public function cleanup():void{ standard.removeEventListener(MouseEvent.CLICK, standardClicked); beginner.removeEventListener(MouseEvent.CLICK, beginnerClicked); extreme.removeEventListener(MouseEvent.CLICK, extremeClicked); proceed.removeEventListener(MouseEvent.MOUSE_DOWN, continueClicked); optionsButton.cleanup(); removeEventListener(Event.ENTER_FRAME, onFrame); } } }//package
Section 103
//Dijkstra (Dijkstra) package { class Dijkstra { private var visited:Array; private var distance:Array; private var previousNode:Array; private var startNode:Number; private var map:Array; private var infiniteDistance:Number; private var numberOfNodes:Number; private var bestPath:Number; private var nodesLeft:Array; private var pathsFound:Boolean;// = false public static const NO_CONNECTION = 99999999; function Dijkstra(_arg1:Array, _arg2:Number){ this.infiniteDistance = NO_CONNECTION; this.startNode = _arg2; this.distance = new Array(); this.previousNode = new Array(); this.visited = new Array(); this.map = _arg1; this.numberOfNodes = this.map[0].length; this.bestPath = 0; this.nodesLeft = new Array(); } public function findShortestPath():void{ var _local1:* = 0; while (_local1 < this.numberOfNodes) { if (_local1 == this.startNode){ this.visited[_local1] = 1; this.distance[_local1] = 0; } else { this.visited[_local1] = 0; this.distance[_local1] = this.map[this.startNode][_local1]; }; this.previousNode[_local1] = this.startNode; _local1++; }; var _local2 = 300; var _local3:int; while (((this.somethingLeft(this.visited)) && ((_local3 < _local2)))) { this.nodesLeft = this.nodesNotVisited(this.visited); this.bestPath = this.findBestPath(this.distance, this.nodesLeft); this.updateDistanceAndPrevious(this.bestPath); this.visited[this.bestPath] = 1; _local3++; }; if (_local3 >= _local2){ }; pathsFound = true; } private function somethingLeft(_arg1:Array):Boolean{ var _local2:* = 0; while (_local2 < this.numberOfNodes) { if (!_arg1[_local2]){ return (true); }; _local2++; }; return (false); } private function nodesNotVisited(_arg1:Array):Array{ var _local2:* = new Array(); var _local3:* = 0; while (_local3 < this.numberOfNodes) { if (!_arg1[_local3]){ _local2.push(_local3); }; _local3++; }; return (_local2); } private function findBestPath(_arg1:Array, _arg2:Array):Number{ var _local3:* = this.infiniteDistance; var _local4:* = 0; var _local5:* = 0; while (_local5 < _arg2.length) { if (_arg1[_arg2[_local5]] < _local3){ _local3 = _arg1[_arg2[_local5]]; _local4 = _arg2[_local5]; }; _local5++; }; return (_local4); } private function updateDistanceAndPrevious(_arg1:Number):void{ var _local2:* = 0; while (_local2 < this.numberOfNodes) { if (((!((this.map[_arg1][_local2] == this.infiniteDistance))) || ((this.map[_arg1][_local2] == 0)))){ if ((this.distance[_arg1] + this.map[_arg1][_local2]) < this.distance[_local2]){ this.distance[_local2] = (this.distance[_arg1] + this.map[_arg1][_local2]); this.previousNode[_local2] = _arg1; }; }; _local2++; }; } public function findShortestPathTo(_arg1:Number, _arg2:int):Array{ if (!pathsFound){ this.findShortestPath(); }; var _local3:* = new Array(); var _local4:* = null; var _local5:* = _arg1; _local3.push(_arg1); var _local6 = 1; while (((!((_local4 == this.startNode))) && ((_local6 < _arg2)))) { _local3.push(this.previousNode[_local5]); _local4 = this.previousNode[_local5]; _local5 = this.previousNode[_local5]; _local6++; }; if (_local6 >= _arg2){ _local3.length = 0; } else { _local3.reverse(); }; return (_local3); } private function getResults():void{ var _local3:*; var _local4:*; var _local1:* = new Array(); var _local2:* = 0; while (_local2 < this.numberOfNodes) { _local1[_local2] = new Array(); _local3 = null; _local4 = _local2; _local1[_local2].push(_local2); while (_local3 != this.startNode) { _local1[_local2].push(this.previousNode[_local4]); _local3 = this.previousNode[_local4]; _local4 = this.previousNode[_local4]; }; _local1[_local2].reverse(); trace("---------------------------------------"); trace(((((("The shortest distance from the startNode: " + this.startNode) + ", to node ") + _local2) + ": is -> ") + this.distance[_local2])); trace(((((("The shortest path from the startNode: " + this.startNode) + ", to node ") + _local2) + ": is -> ") + _local1[_local2])); trace("---------------------------------------"); _local2++; }; } } }//package
Section 104
//disintegrate_effect (disintegrate_effect) package { import flash.display.*; public dynamic class disintegrate_effect extends MovieClip { public function disintegrate_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.disintegrate); } function frame45(){ this.stop(); } } }//package
Section 105
//disintegrate_sound (disintegrate_sound) package { import flash.media.*; public dynamic class disintegrate_sound extends Sound { } }//package
Section 106
//dm (dm) package { import flash.display.*; import flash.text.*; import flash.net.*; import flash.external.*; public class dm { static var sound:SoundControl; static var main:DungeonMain; static var stage:Stage; static var party:Party; static var kongregate; static var MeezGPF; public static function link(_arg1:String):void{ var url = _arg1; try { ExternalInterface.call("window.open", url, "_blank", ""); } catch(error) { navigateToURL(new URLRequest(url), "_blank"); }; } public static function randomNum(_arg1:int, _arg2:int):int{ var _local3:* = (Math.round((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public static function embolden(_arg1:TextField){ var _local2:TextFormat; _local2 = _arg1.getTextFormat(); _local2.bold = true; _arg1.setTextFormat(_local2); } public static function childToTop(_arg1:DisplayObjectContainer):void{ if ((((_arg1 == null)) || ((_arg1.parent == null)))){ return; }; var _local2:* = (_arg1.parent.numChildren - 1); _arg1.parent.setChildIndex(_arg1, _local2); } public static function shuffleArray(_arg1:Array):Array{ var _local5:Array; var _local2:Array = new Array(); var _local3:Array = new Array(_arg1.length); var _local4:* = 0; while (_local4 < _local3.length) { _local3[_local4] = _arg1[_local4]; _local4++; }; while (_local3.length) { _local4 = dmf.randomNum(0, (_local3.length - 1)); _local5 = _local3.splice(_local4, 1); _local2.push(_local5[0]); }; return (_local2); } public static function copyArray(_arg1:Array):Array{ var _local2:Array = new Array(_arg1.length); var _local3:* = 0; while (_local3 < _local2.length) { _local2[_local3] = _arg1[_local3]; _local3++; }; return (_local2); } public static function joinArrays(_arg1:Array, _arg2:Array):Array{ var _local4:*; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _arg1.length) { _local3.push(_arg1[_local4]); _local4++; }; _local4 = 0; while (_local4 < _arg2.length) { _local3.push(_arg2[_local4]); _local4++; }; return (_local3); } static function vector_length(_arg1:Number, _arg2:Number):Number{ return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)))); } static function dot(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg1 * _arg3) + (_arg2 * _arg4))); } static function radians_to_degrees(_arg1:Number):Number{ return ((_arg1 * (180 / Math.PI))); } static function vectors2angle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ var _local5:* = vector_length(_arg1, _arg2); var _local6:* = vector_length(_arg3, _arg4); if (_local5 != 0){ _arg1 = (_arg1 / _local5); _arg2 = (_arg2 / _local5); }; if (_local6 != 0){ _arg3 = (_arg3 / _local6); _arg4 = (_arg4 / _local6); }; var _local7:* = dot(_arg1, _arg2, _arg3, _arg4); var _local8:* = (_local7 / (Math.sqrt(vector_length(_arg1, _arg2)) * Math.sqrt(vector_length(_arg3, _arg4)))); var _local9:* = Math.acos(_local8); var _local10:* = dm.radians_to_degrees(_local9); return (_local10); } } }//package
Section 107
//dmf (dmf) package { import flash.display.*; import flash.text.*; import flash.net.*; import flash.external.*; import flash.geom.*; public class dmf { public static function link(_arg1:String):void{ var url = _arg1; try { ExternalInterface.call("window.open", url, "_blank", ""); } catch(error) { navigateToURL(new URLRequest(url), "_blank"); }; } public static function randomNum(_arg1:int, _arg2:int):int{ var _local3:* = (Math.round((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public static function getCurrentTimeString():String{ var _local1:Date = new Date(); return (String(((((_local1.getHours() + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds()))); } public static function embolden(_arg1:TextField){ boldText(_arg1); } public static function boldText(_arg1:TextField){ var _local2:TextFormat; _local2 = _arg1.getTextFormat(); _local2.bold = true; _arg1.setTextFormat(_local2); } public static function italicText(_arg1:TextField){ var _local2:TextFormat; _local2 = _arg1.getTextFormat(); _local2.italic = true; _arg1.setTextFormat(_local2); } public static function setLetterSpacing(_arg1:TextField, _arg2:int):void{ var _local3:TextFormat = _arg1.getTextFormat(); _local3.letterSpacing = _arg2; _arg1.setTextFormat(_local3); } public static function numberToText(_arg1:int, _arg2:Boolean=false):String{ var _local3 = "number"; if (_arg1 == 0){ _local3 = "zero"; } else { if (_arg1 == 1){ _local3 = "one"; } else { if (_arg1 == 2){ _local3 = "two"; } else { if (_arg1 == 3){ _local3 = "three"; } else { if (_arg1 == 4){ _local3 = "four"; } else { if (_arg1 == 5){ _local3 = "five"; } else { if (_arg1 == 6){ _local3 = "six"; } else { if (_arg1 == 7){ _local3 = "seven"; } else { if (_arg1 == 8){ _local3 = "eight"; } else { if (_arg1 == 9){ _local3 = "nine"; } else { if (_arg1 == 10){ _local3 = "ten"; }; }; }; }; }; }; }; }; }; }; }; if (_arg2){ _local3 = _local3.toUpperCase(); }; return (_local3); } public static function childToTop(_arg1:DisplayObjectContainer):void{ if ((((_arg1 == null)) || ((_arg1.parent == null)))){ return; }; var _local2:* = (_arg1.parent.numChildren - 1); _arg1.parent.setChildIndex(_arg1, _local2); } public static function shuffleArray(_arg1:Array):Array{ var _local5:Array; var _local2:Array = new Array(); if (_arg1 == null){ return (_local2); }; var _local3:Array = new Array(_arg1.length); var _local4:* = 0; while (_local4 < _local3.length) { _local3[_local4] = _arg1[_local4]; _local4++; }; while (_local3.length) { _local4 = randomNum(0, (_local3.length - 1)); _local5 = _local3.splice(_local4, 1); _local2.push(_local5[0]); }; return (_local2); } public static function copyArray(_arg1:Array):Array{ var _local2:Array = new Array(_arg1.length); var _local3:* = 0; while (_local3 < _local2.length) { _local2[_local3] = _arg1[_local3]; _local3++; }; return (_local2); } public static function joinArrays(_arg1:Array, _arg2:Array):Array{ var _local4:*; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _arg1.length) { _local3.push(_arg1[_local4]); _local4++; }; _local4 = 0; while (_local4 < _arg2.length) { _local3.push(_arg2[_local4]); _local4++; }; return (_local3); } public static function arrayContains(_arg1:Array, _arg2:Object):Boolean{ if ((((_arg1 == null)) || (!(_arg1.length)))){ return (false); }; var _local3:* = 0; while (_local3 < _arg1.length) { if (_arg1[_local3] == _arg2){ return (true); }; _local3++; }; return (false); } public static function randomString(_arg1:Array):String{ return (_arg1[randomNum(0, (_arg1.length - 1))]); } static function vector_length(_arg1:Number, _arg2:Number):Number{ return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)))); } static function dot(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg1 * _arg3) + (_arg2 * _arg4))); } public static function distanceBetween(_arg1:int, _arg2:int, _arg3:int, _arg4:int):int{ var _local5:* = Math.abs((_arg1 - _arg3)); var _local6:* = Math.abs((_arg2 - _arg4)); return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))); } static function radians_to_degrees(_arg1:Number):Number{ return ((_arg1 * (180 / Math.PI))); } static function vectors2angle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ var _local5:* = vector_length(_arg1, _arg2); var _local6:* = vector_length(_arg3, _arg4); if (_local5 != 0){ _arg1 = (_arg1 / _local5); _arg2 = (_arg2 / _local5); }; if (_local6 != 0){ _arg3 = (_arg3 / _local6); _arg4 = (_arg4 / _local6); }; var _local7:* = dot(_arg1, _arg2, _arg3, _arg4); var _local8:* = (_local7 / (Math.sqrt(vector_length(_arg1, _arg2)) * Math.sqrt(vector_length(_arg3, _arg4)))); var _local9:* = Math.acos(_local8); var _local10:* = radians_to_degrees(_local9); return (_local10); } public static function hasFlag(_arg1:uint, _arg2:uint):Boolean{ if ((_arg1 & _arg2) == _arg2){ return (true); }; return (false); } public static function getGlobalX(_arg1:DisplayObjectContainer):int{ var _local2:Point = _arg1.localToGlobal(new Point(0, 0)); return (_local2.x); } public static function getGlobalY(_arg1:DisplayObjectContainer):int{ var _local2:Point = _arg1.localToGlobal(new Point(0, 0)); return (_local2.y); } } }//package
Section 108
//DoorIcon (DoorIcon) package { import flash.display.*; public class DoorIcon extends MovieClip { var room1:DungeonRoom; var room2:DungeonRoom; public var door_gfx:MovieClip; public function DoorIcon(){ this.gotoAndStop(1); } public function setVert():void{ this.rotation = 90; } public function setAlpha(_arg1:Number):void{ this.door_gfx.alpha = _arg1; } public function getAlpha():Number{ return (this.door_gfx.alpha); } } }//package
Section 109
//DownLevelDialog (DownLevelDialog) package { import flash.events.*; import flash.display.*; import flash.ui.*; public class DownLevelDialog extends MovieClip { public var no_btn:MovieClip; public var yes_btn:MovieClip; public function DownLevelDialog(){ this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); this.no_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); no_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } function clickYes(_arg1:MouseEvent):void{ Dungeon(parent).descend(); cleanup(); } function clickNo(_arg1:MouseEvent):void{ if (parent != null){ cleanup(); parent.removeChild(this); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ clickYes(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ clickNo(null); }; }; } } }//package
Section 110
//Dungeon (Dungeon) package { import flash.events.*; import flash.display.*; import flash.ui.*; public class Dungeon extends Sprite { const tile_dungeon = 1; const tile_cave = 2; const hintLevel = 1; const hintInventory = 2; const hintDefeat = 4; const hintBattle = 8; const hintHorde = 16; const hintStart = 32; const hintTurn = 64; const hintSave = 128; const hintShop = 0x0100; const bar_max_width = 147; var dungeon_level:int;// = 1 var race:int;// = 0 var tileset:int; var pc_party:Party; var currentRoom:DungeonRoom; var bossRoom:DungeonRoom; var entryRoom:DungeonRoom; var exitRoom:DungeonRoom; public var portalScrollRoomIndex:int;// = -1 var currentRoomIcon:CurrentRoomIcon; var dinterface:DungeonInterface; var room_array:Array; var door_array:Array; var grid:Array; var hordes:Array; var shrines:Array; var chests:Array; var exit_found;// = false var previousLevelCleared;// = false var moveArrow:Sprite; var hint:HintDialog; private var search:Dijkstra; private var adjacencyMap:Array; private var search2:Dijkstra; private var adjacencyMap2:Array; private var dungeonSavePending:Boolean;// = false var a_corridors:Array; var a_cells:Array; var a_chambers:Array; var a_largerooms:Array; var a_galleries:Array; var a_tallrooms:Array; var a_widerooms:Array; private var travelling:Boolean;// = false private var currentRoute:Array; static const GRID_SIZE = 20; static const SCREEN_Y_OFFSET = 15; static const SCREEN_X_OFFSET = 15; static const grid_width = 26; static const grid_height = 15; public function Dungeon(_arg1:Party=null, _arg2:int=1, _arg3:int=0, _arg4:Boolean=false){ tileset = tile_dungeon; room_array = new Array(); door_array = new Array(); hordes = new Array(); shrines = new Array(); chests = new Array(); super(); if (_arg1 == null){ return; }; this.previousLevelCleared = _arg4; this.portalScrollRoomIndex = -1; dungeon_level = _arg2; pc_party = _arg1; dinterface = new DungeonInterface(); if (!_arg3){ race = Dungeon.getMonsterRace(_arg2, 0, _arg1.campaign); } else { race = _arg3; }; drawInterface(); addEventListener(Event.ENTER_FRAME, onFrame); if (DungeonMain.showHints){ if ((((_arg2 == 2)) && (!(hintShown(hintLevel))))){ hint = new HintDialog("Level Up!", "You have descended to the next level of the dungeon, and your characters have grown in power. \n\nEach level they will gain points to increase their statistics and buy new skills.\n\nClick on a portrait to enter the Inventory screen and spend these points."); DungeonMain.hints = (DungeonMain.hints + hintLevel); }; if ((((_arg2 == 1)) && (!(hintShown(hintStart))))){ hint = new HintDialog("The Dungeon Map", "This is the Dungeon Map. From here, you move your party from room to room, encountering monsters and finding treasure while searching for the entrance to the next level of the dungeon.\n\nThe brightest room shows the current position of your party, while slightly dimmer rooms are those you can move to from your current position. Simply click on a room to move there.\n\nIf you can't figure out where to explore next, try clicking the 'Map Hint' button."); DungeonMain.hints = (DungeonMain.hints + hintStart); }; }; } private function pointlessBusyWork():void{ } public function getIntroduction(_arg1:int):String{ var _local3:String; var _local6:*; var _local7:*; var _local2:* = false; _local3 = "The party descend to the next level.\n\n"; if (pc_party.members.length == 1){ return (""); }; if ((((dungeon_level > DungeonMain.MAX_LEVEL)) && ((_arg1 == Horde.special)))){ return ((_local3 + "An uneasy peace holds in this area, as the dungeon's denizens come together to plot and scheme.")); }; var _local4:* = dmf.randomNum(0, (pc_party.members.length - 1)); if (dmf.randomNum(0, 100) < 8){ _local2 = true; } else { _local2 = false; }; if ((pc_party.members[_local4] is PC_Cleric)){ if (_local2){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " performs a rite of battle.\n'") + Horde.nameForRace(_arg1, true)) + ", then? It makes little difference. Nothing may hinder the righteous.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local4].charname + " scowls.\n'This place bears the taint of the undead.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("'There is heresy here. The greenskins and their false gods hold\nsway,' spits " + pc_party.members[_local4].charname) + ", growing incensed.")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (("'The creatures here are base, soulless things: the work of no higher\npower,' mutters " + pc_party.members[_local4].charname) + ".")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (pc_party.members[_local4].charname + " appears distressed.\n'This place.. it is utterly corrupted by the heresies of the cultists.\nWe should not linger here.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (((("'The graven images of the dwarves. Those twisted parodies of true men lurk here.' says " + pc_party.members[_local4].charname) + ", disgust plain on ") + pc_party.members[_local4].genderPossessive()) + " face.")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Warrior)){ if (_local2){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " says 'An opportunity to test my prowess against ") + Horde.nameForRace(_arg1)) + " is welcome. To arms!'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (((("'It is plain that this is the domain of the undead. Be on your\nguard,' says " + pc_party.members[_local4].charname) + ", adjusting ") + pc_party.members[_local4].genderPossessive()) + " armor.")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (pc_party.members[_local4].charname + " points.\n'Look, there: the trappings of the orc. Stupid beasts, but\ndangerous. Stay close.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (pc_party.members[_local4].charname + " inhales, then spits.\n'The stench of carrion. Whatever monsters lurk here, they shall not\nfind us so easy a meal.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Ho, there- that emblem. The mark of the Cult of the Outward\nPath,' notes " + pc_party.members[_local4].charname) + ".\n'Our foes will not hail from this world alone.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'The stonework here is different. Could this area belong to the dwarves?' asks " + pc_party.members[_local4].charname) + ".")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Rogue)){ if (_local2){ _local3 = (_local3 + (((((((((pc_party.members[_local4].charname + " checks ") + pc_party.members[_local4].genderPossessive()) + " pack for provisions.\n'I just hope we're not fighting any more ") + Horde.nameForRace(_arg1)) + ".'\n") + pc_party.members[_local4].genderPronoun(true)) + " turns ") + pc_party.members[_local4].genderPossessive()) + " head sharply as a distinctive sound echoes down the corridor.\n'Well. I suppose I should have seen that coming.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (("'Did you hear that?' asks " + pc_party.members[_local4].charname) + ", peering nervously into the gloom.\n'I have a bad feeling we're dealing with walking corpses, here.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " sniffs the air.\n'Did we take a wrong turn into a sewer? Oh, right.. orcs.'\n") + pc_party.members[_local4].genderPronoun(true)) + " sighs.")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (pc_party.members[_local4].charname + " sits down heavily, taking a moment to rest.\n'Ugh, I think I may be sitting in monster droppings.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'This place doesn't feel right,' mutters " + pc_party.members[_local4].charname) + ".\n'It's those twisted cultists.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (pc_party.members[_local4].charname + " looks around appraisingly.\n'This is definitely dwarf work-- they can't live anywhere without embellishing it with their carvings. And where there are dwarves.. there's treasure.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Mage)){ if (_local2){ _local3 = (_local3 + (((("At a gesture from " + pc_party.members[_local4].charname) + ", a glyph appears fleetingly in the air.\n'") + Horde.nameForRace(_arg1, true)) + ". There can be no doubt: my mastery of detection spells\nis complete.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (("Warning glyphs flash in the air about " + pc_party.members[_local4].charname) + ".\n'The dark arts are at work in this place. The dead walk.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (pc_party.members[_local4].charname + " concentrates for a moment.\n'The mystic arts are being practiced here, but weakly. This place\nmust be home to the vile orcs and their kin.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " falters in ") + pc_party.members[_local4].genderPossessive()) + " preparation.\n'There is ancient power here. The creatures of the deep are drawn to\nit.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'The fabric of the aether has been rent,' states " + pc_party.members[_local4].charname) + ".\n'No doubt the work of those reckless amateurs, the Cult of the\nOutward Path.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'I sense runic energies. It can only be agents of the Earthern Nations,' says " + pc_party.members[_local4].charname) + ".\n'What a pity they have allied themselves with our enemy.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Ranger)){ if (_local2){ _local3 = (_local3 + (((("Examining the entrance, " + pc_party.members[_local4].charname) + " slowly nods.\n'There were ") + Horde.nameForRace(_arg1)) + " here, and recently. The signs of their passage\n are unmistakable.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local4].charname + " crouches, noting debris strewn on the dank stone floor.\n'Nothing but bonemeal and crypt-dust. Undead.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("'I've found something! Look here: the spoor of greenskins,' calls " + pc_party.members[_local4].charname) + ", after examining the area.")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " grows excited as ") + pc_party.members[_local4].genderPronoun()) + " scouts the immediate area.\n'There are tracks here.. creatures of many types. We have found\nourselves a hunt.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Human footprints,' remarks " + pc_party.members[_local4].charname) + ".\n'Cultists?'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'It doesn't take a master tracker to identify this place.' says " + pc_party.members[_local4].charname) + ".\n'There are definitely dwarves from the Eartern Nations nearby.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Barbarian)){ if (_local2){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " growls 'I will tear these ") + Horde.nameForRace(_arg1)) + " apart!'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (("'This place is crawling with the dead. Can't they stay killed?' growls " + pc_party.members[_local4].charname) + ".")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("'Greenskins. I begin to wonder if we'll ever find a real fight in this hole!' says " + pc_party.members[_local4].charname) + ", scowling.")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (("'What kind of sty is this?' demands " + pc_party.members[_local4].charname) + ", kicking at debris strewn on the ground.\n'Some strange manner of beast. Foul tasting, no doubt.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'The gaudy emblems of the fanatics,' notes " + pc_party.members[_local4].charname) + ".\n'I am ill at ease around such madness.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'I smell ale!' roars " + pc_party.members[_local4].charname) + ".\n'Let us take it from the half-men, come!'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local4] is PC_Conjuror)){ if (_local2){ _local3 = (_local3 + (((pc_party.members[_local4].charname + " stares fixedly into the empty air.\n'There are ") + Horde.nameForRace(_arg1, true)) + " nearby. I have it from a reliable source.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local4].charname + " falls silent.\n'Necromancy.. I can sense the souls in bondage. We will face the undead here.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("I've seen enough Orc-pits in my time to know the look of one,' remarks " + pc_party.members[_local4].charname) + "\n'Greenskins live here.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (("'Creatures. I can hear them.' says " + pc_party.members[_local4].charname) + "\n'It's not a sound I'm likely to forget.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Aetherbreachers,' sighs " + pc_party.members[_local4].charname) + ".\n'The signs are unmistakable. We will have to intervene- the dimensional boundary must be respected.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'This is familiar enough,' says " + pc_party.members[_local4].charname) + ".\n'A dwarf-den. What could they be looking for, here?'")); }; }; }; }; }; }; } else { _local3 = (_local3 + (((pc_party.members[_local4].charname + " says 'There are ") + Horde.nameForRace(_arg1)) + " here.'")); }; }; }; }; }; }; }; _local3 = (_local3 + "\n\n"); var _local5:* = _local4; while (_local5 == _local4) { _local5 = dmf.randomNum(0, (pc_party.members.length - 1)); }; if (dmf.randomNum(0, 100) < 8){ _local2 = true; } else { _local2 = false; }; if ((pc_party.members[_local5] is PC_Cleric)){ if (_local2){ _local3 = (_local3 + (pc_party.members[_local5].charname + " intones a sonorous prayer.\n'Let our faith be our shield!'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (((("'Those lost souls will find peace this day,' promises " + pc_party.members[_local5].charname) + ",\n") + pc_party.members[_local5].genderPossessive()) + " countenance grim.")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (((((pc_party.members[_local5].charname + " grimaces.\n'The beasts will not defile this place much longer. We shall make\ncertain of it,' ") + pc_party.members[_local5].genderPronoun()) + " growls, hefting ") + pc_party.members[_local5].genderPossessive()) + " weapon.")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " readies ") + pc_party.members[_local5].genderSelf()) + ".\n'Let us cleanse this foul menagerie.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Heretics!' snarls " + pc_party.members[_local5].charname) + ".\n'Their work here is an affront: we must make an end of it.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'Crude and misshapen things, a mockery of the divine!' snarls " + pc_party.members[_local5].charname) + ".")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Warrior)){ if (_local2){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " draws ") + pc_party.members[_local5].genderPossessive()) + " weapon.\n'Stay behind me. We will cut a path, no matter how many may come.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local5].charname + " nods slightly.\n'Then let us lay them to rest.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " sharpens ") + pc_party.members[_local5].genderPossessive()) + " blade.\n'The clumsy brawn of those ragged brutes is little match for the\nfighting arm of a seasoned warrior. Let them come.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " shifts ") + pc_party.members[_local5].genderPossessive()) + " weight.\n'It will take more than a monstrous rabble to slow us.\nCome, this way.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'The Cult of the Outward Path,' muses " + pc_party.members[_local5].charname) + ".\n'Let us see if the fiends they worship can protect them.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'Their small size belies their strength,' remarks " + pc_party.members[_local5].charname) + ".\n'Banish any thoughts of an easy battle.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Rogue)){ if (_local2){ _local3 = (_local3 + (pc_party.members[_local5].charname + " glances around.\n'Is it too late to go back?'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (("'Great. My favorite,' snorts " + pc_party.members[_local5].charname) + ".")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " holds ") + pc_party.members[_local5].genderPossessive()) + " nose.\n'I suppose they won't smell any better after we kill them..'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (pc_party.members[_local5].charname + " sighs.\n'More things that want to eat me.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (((("'Religious types,' mutters " + pc_party.members[_local5].charname) + ", rolling ") + pc_party.members[_local5].genderPossessive()) + " eyes.")); _local6 = 0; while (_local6 < pc_party.members.length) { if ((pc_party.members[_local6] is PC_Cleric)){ _local3 = (_local3 + (((("\n\n" + pc_party.members[_local6].charname) + " glares at ") + pc_party.members[_local5].charname) + ".")); break; }; _local6++; }; } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'Some people might feel guilty about taking from someone smaller than themselves,' muses " + pc_party.members[_local5].charname) + ".\n'Not me.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Mage)){ if (_local2){ _local3 = (_local3 + (pc_party.members[_local5].charname + " finishes an incantation.\n'I am prepared.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local5].charname + " frowns.\n'The spawn of the dark arts. Despicable.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (pc_party.members[_local5].charname + " nods.\n'Communers with spirits and petty dabblers in the art. Precious\nlittle here to challenge me.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " snaps shut ") + pc_party.members[_local5].genderPossessive()) + " spellbook.\n'Monsters and aberrations. I have some experience with their ilk.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Meddlers! Fools!' rages " + pc_party.members[_local5].charname) + ".\n'They cannot begin to comprehend the forces they toy with.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'Greed has ever been the downfall of the dwarves,' says " + pc_party.members[_local5].charname) + ".\n'No matter what bribes they have been offered, they will not halt us here.'")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Ranger)){ if (_local2){ _local3 = (_local3 + (pc_party.members[_local5].charname + " smiles.\n'Easy prey.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local5].charname + " nocks an arrow.\n'Unnatural foes, but they shall fall all the same.'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (pc_party.members[_local5].charname + " appears disappointed.\n'Savages. They lack all finesse.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (((pc_party.members[_local5].charname + " tests ") + pc_party.members[_local5].genderPossessive()) + " bowstring.\n'At last, worthy prey.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Perhaps here I can find a fresh challenge,' remarks " + pc_party.members[_local5].charname) + ".")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'The dwarves are hardy foes, don't underestimate them,' says " + pc_party.members[_local5].charname) + ".")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Barbarian)){ if (_local2){ _local3 = (_local3 + (("'My blade cries out for blood!' says " + pc_party.members[_local5].charname) + ", a little too loudly.")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (pc_party.members[_local5].charname + " grunts.\n'I will show these corpses how to die!'")); } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("'Orcs?' " + pc_party.members[_local5].charname) + " spits.\n'Let us see who is the stronger.'")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (("'In my youth I wrestled many beasts,' says " + pc_party.members[_local5].charname) + "\n'I have only gotten stronger.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'Pah! Weaklings!' mutters " + pc_party.members[_local5].charname) + ".")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'The dwarves are hardy foes, don't underestimate them,' says " + pc_party.members[_local5].charname) + ".")); }; }; }; }; }; }; } else { if ((pc_party.members[_local5] is PC_Conjuror)){ if (_local2){ _local3 = (_local3 + (pc_party.members[_local5].charname + " mutters in an ancient tongue, and a faint glow suffuses the air around him.\n'Let's get this over with.'")); } else { if (_arg1 == Horde.undead){ _local3 = (_local3 + (("'Necromancy. It shames me to admit I dabbled with it in my youth,' says " + pc_party.members[_local5].charname) + " sadly.\n'I was a fool.'")); _local7 = 0; while (_local7 < pc_party.members.length) { if ((pc_party.members[_local7] is PC_Mage)){ _local3 = (_local3 + (((("\n\n" + pc_party.members[_local7].charname) + " scowls at ") + pc_party.members[_local5].charname) + ". 'Indeed.'")); break; }; _local7++; }; } else { if (_arg1 == Horde.greenskins){ _local3 = (_local3 + (("'Greenskins? Be wary of their shamans, and the dark power they wield. I know it only too well.' says " + pc_party.members[_local5].charname) + " enigmatically.\n")); } else { if (_arg1 == Horde.creatures){ _local3 = (_local3 + (pc_party.members[_local5].charname + " looks up.\n'I have an interest in the creatures of the deep places. Perhaps I can learn something here.'")); } else { if (_arg1 == Horde.cultists){ _local3 = (_local3 + (("'They are so close to the truth, but so woefully misguided,' sighs " + pc_party.members[_local5].charname) + ".\n'I pity them, more than anything. And yet they must be stopped.'")); } else { if (_arg1 == Horde.dwarves){ _local3 = (_local3 + (("'The Earthen Nations? Here?' asks " + pc_party.members[_local5].charname) + ".\n'I suppose they were always difficult to trust.'")); }; }; }; }; }; }; } else { _local3 = (_local3 + (((pc_party.members[_local5].charname + " says 'We will defeat the ") + Horde.nameForRace(_arg1)) + ".'")); }; }; }; }; }; }; }; return (_local3); } public function createFromDataArray(_arg1:Array, _arg2:int, _arg3:Array, _arg4:Boolean=false):Boolean{ var _local6:DungeonRoom; var _local7:Boolean; var _local8:*; var _local9:Horde; this.race = race; this.tileset = tileset; this.previousLevelCleared = _arg4; initGrid(); initRoomArrays(); var _local5:* = 0; while (_local5 < _arg1.length) { _local6 = DungeonRoomData(_arg1[_local5]).toRoom(_arg4); PlaceRoom(_local6); if ((_local6 is rDemonRoom)){ bossRoom = _local6; }; if (_arg1[_local5].treasure){ _local7 = false; if (_local5 == portalScrollRoomIndex){ _local7 = true; }; if (pc_party.attrition){ _local7 = false; }; addTreasureToRoom(_local6, _local7); } else { if (_arg1[_local5].shrine){ if (_arg1[_local5].shrine == RecoveryShrine.TYPE_ID){ addRecoveryShrineToRoom(_local6); } else { addSpecialShrineToRoom(_local6, _arg1[_local5].shrine); }; } else { if (_arg1[_local5].special){ addSpecialIconToRoom(_local6); } else { _local8 = 0; while (_local8 < _arg3.length) { if (HordeData(_arg3[_local8]).roomIndex == _local5){ _local9 = HordeData(_arg3[_local8]).toHorde(); room_array[_local5].setHorde(_local9); hordes.push(_local9); _local9.mask = null; if (_local9.boss){ bossRoom = _local6; }; break; }; _local8++; }; }; }; }; _local5++; }; TestAllRoomEdges(); generateDoors(); _local5 = 0; while (_local5 < room_array.length) { if (_arg1[_local5].isEntrance){ room_array[_local5].addEntrance(_arg4); entryRoom = room_array[_local5]; } else { if (_arg1[_local5].isExit){ room_array[_local5].addExit(); exitRoom = room_array[_local5]; }; }; _local5++; }; setIndices(); drawRooms(); drawDoors(); currentRoom = room_array[_arg2]; currentRoom.travelTo(true); roomHighlights(true); updateDemonRoom(); if (((previousLevelCleared) || ((dungeon_level == 10)))){ addRestButton(); } else { removeRestButton(); }; addRoomListeners(); return (true); } public function retreatFromMonsters(_arg1:Horde):void{ if (_arg1 == null){ return; }; if (!_arg1.parent){ return; }; _arg1.gotoAndStop("normal"); var _local2:* = 0; while (_local2 < DungeonRoom.max_adjacent) { if (currentRoom.adjacent[_local2] == currentRoom){ } else { if (currentRoom.adjacent[_local2] == null){ } else { if (currentRoom.adjacent[_local2].explored){ currentRoom.travelFrom(); currentRoom.adjacent[_local2].travelTo(); currentRoom = currentRoom.adjacent[_local2]; roomHighlights(true); return; }; }; }; _local2++; }; } public function roomHighlights(_arg1:Boolean=true):void{ var _local8:*; var _local9:*; trace("call to roomHighlights"); var _local2:int; var _local3:int; var _local4:* = 0; while (_local4 < room_array.length) { if (room_array[_local4] == null){ } else { if (room_array[_local4].explored){ room_array[_local4].setAlpha(0.3); _local3++; } else { if (room_array[_local4].seen){ room_array[_local4].setAlpha(0.2); } else { room_array[_local4].setAlpha(0); }; }; }; _local4++; }; currentRoom.setAlpha(1); if (currentRoomIcon == null){ currentRoomIcon = new CurrentRoomIcon(); }; if (currentRoomIcon.parent != null){ currentRoomIcon.parent.removeChild(currentRoomIcon); }; currentRoomIcon.x = currentRoom.getCenterHorz(); currentRoomIcon.y = currentRoom.getCenterVert(); currentRoomIcon.width = ((currentRoom.getGridWidth() * GRID_SIZE) - 4); currentRoomIcon.height = ((currentRoom.getGridHeight() * GRID_SIZE) - 4); if (currentRoom.hasSpecial()){ currentRoom.addChildAt(currentRoomIcon, (currentRoom.numChildren - 2)); } else { currentRoom.addChild(currentRoomIcon); }; var _local5:int; while (_local5 < currentRoom.num_adjacent) { currentRoom.adjacent[_local5].setAlpha(0.6); _local5++; }; var _local6:int; while (_local6 < door_array.length) { if (((DungeonRoom(door_array[_local6].room1).seen) && (DungeonRoom(door_array[_local6].room2).seen))){ _local8 = door_array[_local6].room1.getAlpha(); _local9 = door_array[_local6].room2.getAlpha(); if ((((door_array[_local6] is CorridorConnectorH)) || ((door_array[_local6] is CorridorConnectorV)))){ door_array[_local6].setAlpha(Math.min(_local8, _local9)); } else { door_array[_local6].setAlpha(((_local8 + _local9) / 2)); }; } else { door_array[_local6].setAlpha(0); }; _local6++; }; _local2 = Math.round(((_local3 / room_array.length) * 100)); dinterface.explored_bar.label.text = (("EXPLORED " + String(_local2)) + "% "); dinterface.explored_bar.bar_mask.width = Math.ceil(((_local2 / 100) * bar_max_width)); var _local7 = "normal"; if (_local2 >= 100){ _local7 = "complete"; }; dinterface.explored_bar.holder.gotoAndStop(_local7); updateCleared(); updateDemonRoom(); updateRating(); if (_arg1){ if (((!((currentRoom.horde == null))) && (!(currentRoom.horde.defeated)))){ dungeonSavePending = false; } else { dungeonSavePending = true; trace("set save pending = true"); }; }; if (DungeonMain.pathfinding){ buildAdjacencyMaps(); }; } private function dungeonSave():void{ trace("dungeonSave"); dm.main.saveParty(); dm.main.saveDungeon(false); } private function onFrame(_arg1:Event):void{ if (dungeonSavePending){ trace("on frame - save pending"); dungeonSavePending = false; dungeonSave(); }; } private function getHordesDefeated():int{ var _local1:* = 0; var _local2:* = 0; while (_local2 < hordes.length) { if (hordes[_local2].defeated){ _local1++; }; _local2++; }; return (_local1); } private function getClearedPercent():int{ var _local1:* = hordes.length; if (_local1 <= 0){ return (0); }; var _local2:* = getHordesDefeated(); return (Math.ceil(((_local2 / _local1) * 100))); } private function updateCleared():void{ var _local1:int = getClearedPercent(); dinterface.cleared_bar.label.text = ((" " + String(_local1)) + "% CLEARED"); dinterface.cleared_bar.bar_mask.width = Math.ceil(((_local1 / 100) * bar_max_width)); var _local2:* = "normal"; if (_local1 == 100){ _local2 = "complete"; }; dinterface.cleared_bar.holder.gotoAndStop(_local2); } public function fullyCleared():Boolean{ var _local1:*; if (getHordesDefeated() == hordes.length){ _local1 = 0; while (_local1 < room_array.length) { if (room_array[_local1].explored == false){ return (false); }; _local1++; }; return (true); }; return (false); } function CloseTreasureReport():void{ var _local1:* = getChildByName("treasure_report"); if (_local1 != null){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, treasureReportKeyDown); if (_local1.chest != null){ if (!_local1.chest.looted){ _local1.chest.fade(); }; }; _local1.take_btn.removeEventListener(MouseEvent.MOUSE_DOWN, treasureTakeClick); _local1.discard_btn.removeEventListener(MouseEvent.MOUSE_DOWN, treasureDiscardClick); _local1.cleanup(); removeChild(_local1); _local1 = null; }; if (parent != null){ DungeonMain(parent).saveInventory(); DungeonMain(parent).saveDungeon(false); }; updateInventoryCount(); } function treasureReportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ treasureTakeClick(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ treasureDiscardClick(null); }; }; } function GoToInventory():void{ CloseTreasureReport(); dm.main.InventoryClick(null); } function treasureDiscardClick(_arg1:MouseEvent):void{ CloseTreasureReport(); dm.sound.play(SoundControl.destroyItem); } function treasureTakeClick(_arg1:MouseEvent){ var _local2:TreasureReport = TreasureReport(getChildByName("treasure_report")); if (_local2 == null){ return; }; var _local3:* = 0; while (_local3 < _local2.icons.length) { if (_local2.icons[_local3].taking){ pc_party.addToInventory(_local2.icons[_local3].item_ref); }; _local3++; }; CloseTreasureReport(); dm.sound.play(SoundControl.lootItem); if (pc_party.overflow.length){ GoToInventory(); }; } private function showDescendDialog():void{ var _local1:*; if (getChildByName("downlevel_dlg") == null){ _local1 = new DownLevelDialog(); _local1.name = "downlevel_dlg"; addChild(_local1); }; } public function descend():void{ if (parent != null){ DungeonMain(parent).descendClick(null); }; } private function descendClick(_arg1:MouseEvent):void{ showDescendDialog(); } public function addTreasureReport(_arg1:TreasureChest, _arg2:Boolean=false):void{ var _local3:String; if (_arg1.looted){ return; }; if (_arg2){ _local3 = "drop"; } else { _local3 = "chest"; }; var _local4:* = new TreasureReport(_local3); _local4.name = "treasure_report"; _local4.chest = _arg1; var _local5:* = 0; while (_local5 < _arg1.loot.length) { _local4.addItemRef(_arg1.loot[_local5]); _local5++; }; _local4.take_btn.addEventListener(MouseEvent.MOUSE_DOWN, treasureTakeClick); _local4.discard_btn.addEventListener(MouseEvent.MOUSE_DOWN, treasureDiscardClick); stage.addEventListener(KeyboardEvent.KEY_DOWN, treasureReportKeyDown); addChild(_local4); _local4.drawIcons(); } public function foundExit():void{ exit_found = true; dinterface.addChild(dinterface.descend_button); dinterface.descend_button.addEventListener(MouseEvent.MOUSE_DOWN, descendClick); } private function showRestDialog():void{ var _local1:*; if (!previousLevelCleared){ return; }; if (this.getChildByName("rest_dlg") == null){ _local1 = new RestDialog(); _local1.name = "rest_dlg"; this.addChild(_local1); }; } function restButtonClick(_arg1:MouseEvent):void{ showRestDialog(); } private function enterBattle(_arg1:Horde):void{ if (dm.main != null){ dm.main.beginBattle(_arg1); } else { if (parent != null){ DungeonMain(parent).beginBattle(_arg1); }; }; } private function encounter(_arg1:DungeonRoom):Boolean{ var _local2:*; var _local3:*; var _local4:String; var _local5:String; var _local6:*; var _local7:AdventurerJoinDialog; var _local8:SpecialEncounterIcon; var _local9:Boolean; var _local10:SatyrQuestDialog; trace("encounter"); if (_arg1.isEntrance){ _local2 = _arg1.getEntrance(); if (_local2 == null){ return (false); }; if (_local2.enableRest){ showRestDialog(); return (true); }; } else { if (_arg1.isExit){ foundExit(); showDescendDialog(); return (true); }; if (_arg1.horde != null){ if (_arg1.horde.defeated){ return (false); }; if (pc_party.sneaking){ pc_party.sneaking = 1; return (false); }; _local3 = stage.getChildByName("tooltip_horde"); if (_local3 != null){ stage.removeChild(_local3); }; enterBattle(_arg1.horde); return (true); } else { if (_arg1.treasure != null){ addTreasureReport(_arg1.treasure); return (true); }; if (_arg1.shrine != null){ if (_arg1.shrine.used){ return (false); }; if (getChildByName("shrine_dlg") == null){ if (_arg1.shrine.type == RecoveryShrine.TYPE_ID){ _local5 = "Altar of Restoration"; _local4 = "Praying at the altar will fully recover your party's health and power, and revive any fallen. Each altar may be used only once.\n\nUse this altar now?"; } else { if (_arg1.shrine.type == SpecialShrine.EQUIPMENT_BUFF){ _local5 = "Mysterious Altar"; _local4 = "This altar is engraved with the words\n'MUNDANE BECOMES EXTRAORDINARY'\n\nUse this altar now?"; } else { if (_arg1.shrine.type == SpecialShrine.POTION_BUFF){ _local5 = "Mysterious Altar"; _local4 = "This altar is engraved with the words\n'TEMPORARY BECOMES PERMANENT'\n\nUse this altar now?"; } else { if (_arg1.shrine.type == SpecialShrine.ENCHANTMENT){ _local5 = "Mysterious Altar"; _local4 = "This altar is engraved with the words\n'A GIFT OF MAGIC'\n\nUse this altar now?"; }; }; }; }; _local6 = new ShrineUseDialog(_local5, _local4); _local6.name = "shrine_dlg"; addChild(_local6); return (true); }; } else { if (_arg1.special){ trace("special encounter"); if (_arg1.special == Encounter.RESCUE){ _local7 = new AdventurerJoinDialog(this.race); _local7.name = "adv_dlg"; addChild(_local7); _local8 = SpecialEncounterIcon(_arg1.getChildByName("specialIcon")); if (_local8 != null){ _arg1.removeChild(_local8); }; _arg1.special = 0; dm.main.saveDungeon(false); return (true); } else { if (_arg1.special == Encounter.LURKER){ _local9 = (getHordesDefeated() == hordes.length); _local10 = new SatyrQuestDialog(_local9); addChild(_local10); return (true); }; }; }; }; }; }; return (false); } public function satyrQuestComplete():void{ currentRoom.special = 0; dm.main.saveDungeon(false); var _local1:SpecialEncounterIcon = SpecialEncounterIcon(currentRoom.getChildByName("specialIcon")); if (_local1 != null){ currentRoom.removeChild(_local1); }; var _local2:TreasureChest = new TreasureChest(pc_party, (pc_party.level + 1), 4, 1, false); addTreasureReport(_local2, false); } function debugHeal(_arg1:MouseEvent):void{ pc_party.fullRecovery(); updateChars(); } public function useShrine():void{ var _local2:*; var _local3:*; var _local4:Array; var _local5:Item; var _local6:*; var _local7:*; var _local8:Consumable; var _local9:Array; var _local10:Enchantment; if ((((currentRoom.shrine == null)) || (currentRoom.shrine.used))){ return; }; var _local1:* = getChildByName("shrine_dlg"); if (_local1 != null){ removeChild(_local1); }; if ((currentRoom.shrine is RecoveryShrine)){ pc_party.fullRecovery(); pc_party.stat_shrines_used++; _local2 = 0; while (_local2 < pc_party.members.length) { _local3 = dinterface.getChildByName(("char" + (_local2 + 1))); if (_local3 == null){ } else { CharacterPortrait(_local3).addPortraitAnimation(PortraitAnimation.heal); }; _local2++; }; } else { if (currentRoom.shrine.type == SpecialShrine.EQUIPMENT_BUFF){ _local4 = new Array(); for each (_local5 in pc_party.inventory) { if ((_local5 is Equipment)){ if (_local5.item_rarity != Item.white){ continue; } else { _local4.push(_local5); }; }; }; if (_local4.length){ _local6 = _local4[dmf.randomNum(0, (_local4.length - 1))]; _local7 = new _local6.constructor(dungeon_level, Item.purple); pc_party.removeFromInventory(_local6); pc_party.addToInventory(_local7); dm.sound.play(SoundControl.heal); }; } else { if (currentRoom.shrine.type == SpecialShrine.POTION_BUFF){ pc_party.addToInventory(new PotionBody()); _local9 = new Array(); _local8 = pc_party.getHealthPotion(false); if (((!((_local8 == null))) && ((_local8.stack >= 5)))){ _local9.push(_local8); }; _local8 = pc_party.getHealthPotion(true); if (((!((_local8 == null))) && ((_local8.stack >= 10)))){ _local9.push(_local8); }; _local8 = pc_party.getPowerPotion(false); if (((!((_local8 == null))) && ((_local8.stack >= 5)))){ _local9.push(_local8); }; _local8 = pc_party.getPowerPotion(true); if (((!((_local8 == null))) && ((_local8.stack >= 10)))){ _local9.push(_local8); }; if (!_local9.length){ } else { _local8 = _local9[dmf.randomNum(0, (_local9.length - 1))]; if ((_local8 is PotionPowerSmall)){ _local8.stack = (_local8.stack - 10); pc_party.addToInventory(new PotionWits()); } else { if ((_local8 is PotionPower)){ _local8.stack = (_local8.stack - 5); pc_party.addToInventory(new PotionWits()); } else { if ((_local8 is PotionHealthSmall)){ _local8.stack = (_local8.stack - 10); pc_party.addToInventory(new PotionBody()); } else { if ((_local8 is PotionHealth)){ _local8.stack = (_local8.stack - 5); pc_party.addToInventory(new PotionBody()); }; }; }; }; if (_local8.stack <= 0){ pc_party.removeFromInventory(_local8); }; dm.sound.play(SoundControl.heal); }; } else { if (currentRoom.shrine.type == SpecialShrine.ENCHANTMENT){ _local10 = new Enchantment(dungeon_level, 0, true); pc_party.addToInventory(_local10); dm.sound.play(SoundControl.heal); }; }; }; }; currentRoom.shrine.used = true; currentRoom.shrine.fade(); dm.main.saveParty(); dm.main.saveDungeon(false); updateChars(); } public function removeRestButton():void{ if (dinterface.contains(dinterface.rest_button)){ dinterface.removeChild(dinterface.rest_button); }; } public function addRestButton():void{ if (!dinterface.contains(dinterface.rest_button)){ dinterface.addChild(dinterface.rest_button); }; } public function useRest():void{ var _local1:* = getChildByName("rest_dlg"); if (_local1 != null){ removeChild(_local1); }; if (entryRoom == null){ return; }; var _local2:* = entryRoom.getEntrance(); if (_local2 == null){ return; }; var _local3:* = new RestScreen(); addChild(_local3); pc_party.fullRecovery(); _local2.enableRest = false; _local2.removeGlow(); previousLevelCleared = false; if (parent != null){ DungeonMain(parent).saveParty(); DungeonMain(parent).saveDungeon(false); }; } public function exploreAll(_arg1:MouseEvent):void{ foundExit(); var _local2:* = 0; while (_local2 < room_array.length) { if (room_array[_local2] == null){ } else { room_array[_local2].explored = true; room_array[_local2].seen = true; }; _local2++; }; roomHighlights(true); } function TestForAdjacentCorridorV(_arg1:DungeonRoom):Boolean{ if (_arg1 == null){ return (false); }; if ((_arg1 is rCorridorV)){ return (true); }; return (false); } function TestForAdjacentCorridorH(_arg1:DungeonRoom):Boolean{ if (_arg1 == null){ return (false); }; if ((_arg1 is rCorridorH)){ return (true); }; return (false); } private function initGrid():void{ var _local2:*; grid = new Array(grid_width); var _local1:* = 0; while (_local1 < grid_width) { grid[_local1] = new Array(grid_height); _local2 = 0; while (_local2 < grid_height) { grid[_local1][_local2] = null; _local2++; }; _local1++; }; } private function isDungeonTooSmall():Boolean{ trace(((("isDungeonTooSmall: room_array.length=" + room_array.length) + " getRoomCount()=") + getRoomCount())); if (room_array.length < 40){ return (true); }; if (getRoomCount() < 10){ return (true); }; return (false); } public function generateDungeon():Boolean{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local11:*; var _local12:DungeonRoom; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; trace("starting new dungeon generation"); room_array = new Array(); door_array = new Array(); bossRoom = null; currentRoom = null; entryRoom = null; exitRoom = null; initGrid(); initRoomArrays(); var _local8:* = false; var _local9:* = 0; var _local10:* = 0; if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == DungeonMain.MAX_LEVEL)))){ _local12 = new rDemonRoom(); _local14 = ((grid_width - _local12.getGridWidth()) / 2); _local15 = ((grid_height - _local12.getGridHeight()) / 2); _local12.grid_x = dmf.randomNum((_local14 - 2), (_local14 + 2)); _local12.grid_y = dmf.randomNum((_local15 - 2), (_local15 + 2)); PlaceRoom(_local12); bossRoom = _local12; }; _local1 = 0; while (_local1 < grid_width) { _local2 = 0; while (_local2 < grid_height) { if (grid[_local1][_local2] != null){ } else { if (dmf.randomNum(1, 100) > 50){ _local16 = dmf.randomNum(0, 100); _local17 = (a_corridors.length > Math.round((room_array.length / 2))); if ((((_local17 == false)) && ((_local16 > 70)))){ if (dmf.randomNum(1, 100) > 50){ _local8 = false; } else { _local8 = true; }; if (_local8){ _local12 = new rCorridorV(); } else { _local12 = new rCorridorH(); }; _local12.grid_x = _local1; _local12.grid_y = _local2; PlaceCorridor(DungeonCorridor(_local12), true); } else { if (_local16 > 65){ _local12 = new rCell(); } else { if (_local16 > 50){ _local12 = new rChamber(); } else { if (_local16 > 35){ _local12 = new rTallRoom(); } else { if (_local16 > 20){ _local12 = new rWideRoom(); } else { if (_local16 > 10){ _local12 = new rLargeRoom(); } else { _local12 = new rGallery(); }; }; }; }; }; _local12.grid_x = _local1; _local12.grid_y = _local2; PlaceRoom(_local12); }; }; }; _local2++; }; _local1++; }; if (isDungeonTooSmall()){ return (false); }; TestAllRoomEdges(); var _local13:* = false; while (!(_local13)) { _local18 = ValidateDungeonLayout(false); if (isDungeonTooSmall()){ return (false); }; if (_local18){ TestAllRoomEdges(); } else { _local13 = true; }; }; refreshRoomArrays(); generateDoors(); entryRoom = findEntryPoint(); if ((((entryRoom == null)) || (!(entryRoom.num_adjacent)))){ return (false); }; entryRoom.addEntrance(previousLevelCleared); currentRoom = entryRoom; if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == DungeonMain.MAX_LEVEL)))){ } else { exit_found = false; exitRoom = findExitPoint(entryRoom); if (exitRoom == null){ return (false); }; exitRoom.addExit(); }; setIndices(); findCriticalPath(); GenerateSpecialEncounter(); GenerateShrines(); GenerateTreasure(); GenerateMonsters(); drawRooms(); drawDoors(); pc_party.stat_rooms_total = (pc_party.stat_rooms_total + room_array.length); pc_party.stat_rooms_explored++; currentRoom.travelTo(true); roomHighlights(true); updateDemonRoom(); addRoomListeners(); return (true); } private function findCriticalPath():void{ var _local5:int; var _local6:*; if ((((entryRoom == null)) || ((exitRoom == null)))){ return; }; trace(((("finding critical path: entryRoom.index = " + entryRoom.index) + ", exitRoom.index = ") + exitRoom.index)); var _local1:* = new Array(room_array.length); var _local2:* = 0; while (_local2 < room_array.length) { _local1[_local2] = new Array(room_array.length); _local6 = 0; while (_local6 < room_array.length) { if (_local2 == _local6){ _local1[_local2][_local6] = 0; } else { if (room_array[_local2].isAdjacentTo(room_array[_local6])){ _local1[_local2][_local6] = 1; } else { _local1[_local2][_local6] = Dijkstra.NO_CONNECTION; }; }; _local6++; }; _local2++; }; var _local3:Dijkstra = new Dijkstra(_local1, entryRoom.index); _local3.findShortestPath(); var _local4:Array = _local3.findShortestPathTo(exitRoom.index, 999); trace(("path_indices: " + String(_local4))); for each (_local5 in _local4) { DungeonRoom(room_array[_local5]).criticalPath = true; }; } private function addRoomListeners():void{ var _local1:* = 0; while (_local1 < room_array.length) { room_array[_local1].addEventListener(MouseEvent.MOUSE_DOWN, roomClick); room_array[_local1].addEventListener(MouseEvent.MOUSE_OVER, roomOver); room_array[_local1].addEventListener(MouseEvent.MOUSE_OUT, roomOut); _local1++; }; } private function isExistingRoomConnection(_arg1:DungeonRoom, _arg2:DungeonRoom):Boolean{ var _local3:* = 0; while (_local3 < _arg1.doors.length) { if ((((_arg1.doors[_local3].room1 == _arg2)) || ((_arg1.doors[_local3].room2 == _arg2)))){ return (true); }; _local3++; }; return (false); } private function drawRooms():void{ var _local1:DungeonRoom; for each (_local1 in room_array) { if (_local1 != null){ this.addChild(_local1); }; }; } private function setIndices():void{ var _local1:* = 0; while (_local1 < room_array.length) { room_array[_local1].index = _local1; _local1++; }; } private function drawDoors():void{ var _local1:* = 0; while (_local1 < door_array.length) { addChild(door_array[_local1]); _local1++; }; } private function generateDoors():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:DoorIcon; var _local7:*; var _local8:*; var _local9:*; var _local12:*; var _local13:*; var _local10:* = -1; var _local11:* = -1; _local1 = 0; while (_local1 < room_array.length) { _local2 = 0; for (;_local2 < room_array[_local1].adjacent.length;_local2++) { if (room_array[_local1] == null){ } else { if (room_array[_local1].adjacent[_local2] == room_array[_local1]){ } else { _local8 = room_array[_local1]; _local7 = room_array[_local1].adjacent[_local2]; if ((((_local7 is DungeonCorridor)) && ((room_array[_local1] is DungeonCorridor)))){ addCorridorConnection(_local7, room_array[_local1]); } else { _local6 = new DoorIcon(); _local6.x = 0; _local6.y = 0; _local6.room1 = _local8; _local6.room2 = _local7; _local12 = 0; _local13 = 0; if (_local7.grid_x >= (_local8.grid_x + _local8.getGridWidth())){ _local6.setVert(); _local12 = (_local8.grid_x + _local8.getGridWidth()); _local13 = _local8.grid_y; if ((((_local12 >= grid_width)) || ((_local13 >= grid_height)))){ continue; }; _local6.x = (SCREEN_X_OFFSET + (GRID_SIZE * (_local8.grid_x + _local8.getGridWidth()))); _local10 = -1; _local11 = -1; _local3 = 0; while (_local3 < _local8.getGridHeight()) { _local9 = grid[_local12][(_local13 + _local3)]; if (_local9 == null){ } else { if (_local9 == _local7){ if (_local10 == -1){ _local10 = _local3; }; _local11 = _local3; }; }; _local3++; }; _local5 = ((_local10 + _local11) / 2); _local6.y = (SCREEN_Y_OFFSET + (GRID_SIZE * (_local8.grid_y + _local5))); } else { if (_local7.grid_y >= (_local8.grid_y + _local8.getGridHeight())){ _local12 = _local8.grid_x; _local13 = (_local8.grid_y + _local8.getGridHeight()); if ((((_local12 >= grid_width)) || ((_local13 >= grid_height)))){ continue; }; _local6.y = Math.round((SCREEN_Y_OFFSET + (GRID_SIZE * (_local8.grid_y + _local8.getGridHeight())))); _local10 = -1; _local11 = -1; _local3 = 0; while (_local3 < _local8.getGridWidth()) { _local9 = grid[(_local12 + _local3)][_local13]; if (_local9 == null){ } else { if (_local9 == _local7){ if (_local10 == -1){ _local10 = _local3; }; _local11 = _local3; }; }; _local3++; }; _local5 = ((_local10 + _local11) / 2); _local6.x = (SCREEN_X_OFFSET + (GRID_SIZE * (_local8.grid_x + _local5))); }; }; if ((((_local6.x > 0)) && ((_local6.y > 0)))){ door_array.push(_local6); DungeonRoom(_local6.room1).addDoor(_local6); DungeonRoom(_local6.room2).addDoor(_local6); }; }; }; }; }; _local1++; }; } private function newCorridorConnection(_arg1:Boolean, _arg2:int, _arg3:int, _arg4:DungeonRoom, _arg5:DungeonRoom):void{ var _local6:*; if (_arg1){ _local6 = new CorridorConnectorV(); } else { _local6 = new CorridorConnectorH(); }; _local6.room1 = _arg4; _local6.room2 = _arg5; _local6.y = _arg3; _local6.x = _arg2; _local6.setFloorTint(Campaign.getTintFrame(pc_party.campaign)); _arg4.addDoor(_local6); _arg5.addDoor(_local6); door_array.push(_local6); } private function addCorridorConnection(_arg1:DungeonRoom, _arg2:DungeonRoom):void{ var _local3:*; var _local4:*; var _local5:* = 0; var _local6:* = 0; var _local7:* = false; if (isExistingRoomConnection(_arg1, _arg2)){ return; }; if ((_arg1 is rCorridorV)){ if ((_arg2 is rCorridorV)){ _local7 = true; _local5 = _arg1.x; _local6 = Math.max(_arg1.y, _arg2.y); newCorridorConnection(_local7, _local5, _local6, _arg1, _arg2); } else { if ((_arg2 is rCorridorH)){ if (_arg2.y < _arg1.y){ _local7 = true; } else { if (Math.abs((_arg1.y - _arg2.y)) >= 40){ _local7 = true; } else { _local7 = false; }; }; _local5 = Math.max(_arg1.x, _arg2.x); _local6 = Math.max(_arg1.y, _arg2.y); newCorridorConnection(_local7, _local5, _local6, _arg1, _arg2); }; }; } else { if ((_arg2 is rCorridorH)){ _local7 = false; _local5 = Math.max(_arg1.x, _arg2.x); _local6 = _arg1.y; newCorridorConnection(_local7, _local5, _local6, _arg1, _arg2); }; }; } private function ClearAllRoomEdges(){ var _local1:* = 0; while (_local1 < room_array.length) { if (room_array[_local1] == null){ } else { room_array[_local1].clearAdjacent(); }; _local1++; }; } private function TestAllRoomEdges(){ ClearAllRoomEdges(); var _local1:* = 0; while (_local1 < room_array.length) { if (room_array[_local1] == null){ } else { if (room_array[_local1].num_adjacent == DungeonRoom.max_adjacent){ } else { TestRoomEdges(_local1); }; }; _local1++; }; specialEdgeTests(); } private function specialEdgeTests():void{ var _local2:DungeonCorridor; var _local3:DungeonRoom; var _local4:*; var _local1:* = 0; while (_local1 < room_array.length) { if ((((room_array[_local1] is DungeonCorridor)) && ((room_array[_local1].num_adjacent == 2)))){ _local4 = 0; while (_local4 < room_array[_local1].num_adjacent) { if ((room_array[_local1].adjacent[_local4] is DungeonCorridor)){ _local2 = room_array[_local1].adjacent[_local4]; } else { _local3 = room_array[_local1].adjacent[_local4]; }; _local4++; }; if (((((!((_local2 == null))) && (!((_local3 == null))))) && (_local2.isAdjacentTo(_local3)))){ room_array[_local1].setNotAdjacentTo(_local3, true); }; }; _local1++; }; } private function ConnectRooms(_arg1:DungeonRoom, _arg2:DungeonRoom, _arg3:int){ if ((((_arg2 == null)) || ((_arg1 == null)))){ return; }; if (_arg2.num_adjacent == DungeonRoom.max_adjacent){ return; }; if (_arg1.num_adjacent == DungeonRoom.max_adjacent){ return; }; if ((_arg1 is DungeonCorridor)){ if ((_arg2 is DungeonCorridor)){ _arg1.setAdjacentTo(_arg2); return; }; }; if (_arg2.num_adjacent == 0){ _arg1.setAdjacentTo(_arg2); return; }; if ((_arg1 is DungeonCorridor)){ if (_arg1.num_adjacent < 2){ _arg1.setAdjacentTo(_arg2); return; }; }; if ((_arg2 is DungeonCorridor)){ if (_arg2.num_adjacent < 2){ _arg1.setAdjacentTo(_arg2); return; }; }; var _local4:* = ((((_arg3 * room_array.length) + _arg2.floor_frame_number) + (_arg1.grid_x * _arg2.grid_y)) + (_arg2.grid_x * _arg1.grid_y)); var _local5:* = (_local4 % 10); if (_arg1.num_adjacent == 0){ _arg1.setAdjacentTo(_arg2); } else { if (_arg1.num_adjacent == 1){ if (_local5 >= 4){ _arg1.setAdjacentTo(_arg2); }; } else { if (_arg1.num_adjacent == 2){ if (_local5 >= 8){ _arg1.setAdjacentTo(_arg2); }; } else { if (_local5 >= 9){ _arg1.setAdjacentTo(_arg2); }; }; }; }; } private function PlaceCorridor(_arg1:DungeonCorridor, _arg2:Boolean=false):int{ var _local6:DungeonRoom; var _local3:* = 0; var _local4:* = _arg1.grid_x; var _local5:* = _arg1.grid_y; var _local7:* = (_arg1 is rCorridorV); var _local8:* = checkFootprintEmpty(_arg1); if (!_local8){ return (0); }; var _local9:Boolean; if (_local7){ _local3 = 0; while (_local3 < 2) { if (((((_local4 - 1) < 0)) || (((_local5 + _local3) >= grid_height)))){ return (0); }; _local6 = grid[(_local4 - 1)][(_local5 + _local3)]; _local9 = ((_local9) || (TestForAdjacentCorridorV(_local6))); if (((((_local4 + 1) >= grid_width)) || (((_local5 + _local3) >= grid_height)))){ return (0); }; _local6 = grid[(_local4 + 1)][(_local5 + _local3)]; _local9 = ((_local9) || (TestForAdjacentCorridorV(_local6))); _local3++; }; } else { _local3 = 0; while (_local3 < 2) { if (((((_local4 + _local3) >= grid_width)) || (((_local5 - 1) < 0)))){ return (0); }; _local6 = grid[(_local4 + _local3)][(_local5 - 1)]; _local9 = ((_local9) || (TestForAdjacentCorridorH(_local6))); if (((((_local4 + _local3) >= grid_width)) || (((_local5 + 1) >= grid_height)))){ return (0); }; _local6 = grid[(_local4 + _local3)][(_local5 + 1)]; _local9 = ((_local9) || (TestForAdjacentCorridorH(_local6))); _local3++; }; }; if (_local9){ return (0); }; _arg1.x = (SCREEN_X_OFFSET + (_local4 * GRID_SIZE)); _arg1.y = (SCREEN_Y_OFFSET + (_local5 * GRID_SIZE)); fillGridForRoom(_arg1); room_array.push(_arg1); addRoomToTypeArray(_arg1); _arg1.setFloorTint(Campaign.getTintFrame(pc_party.campaign)); var _local10:* = 1; if (((_arg2) || ((dmf.randomNum(1, 100) > 20)))){ if (_local7){ _local5 = (_local5 + rCorridorV.grid_height); } else { _local4 = (_local4 + rCorridorH.grid_width); }; if (dmf.randomNum(1, 100) > 70){ _local7 = !(_local7); if (!_local7){ _local5 = (_local5 + (rCorridorV.grid_height - 1)); }; }; if (_local7){ _arg1 = new rCorridorV(); } else { _arg1 = new rCorridorH(); }; _arg1.grid_x = _local4; _arg1.grid_y = _local5; _local10 = (_local10 + PlaceCorridor(_arg1, false)); }; return (_local10); } private function fillGridForRoom(_arg1:DungeonRoom):void{ var _local3:*; var _local2:* = 0; while (_local2 < _arg1.getGridWidth()) { _local3 = 0; while (_local3 < _arg1.getGridHeight()) { grid[(_arg1.grid_x + _local2)][(_arg1.grid_y + _local3)] = _arg1; _local3++; }; _local2++; }; } private function checkFootprintEmpty(_arg1:DungeonRoom):Boolean{ var _local3:*; var _local2:* = 0; while (_local2 < _arg1.getGridWidth()) { _local3 = 0; while (_local3 < _arg1.getGridHeight()) { if (((((_arg1.grid_x + _local2) >= grid_width)) || (((_arg1.grid_y + _local3) >= grid_height)))){ return (false); }; if (grid[(_arg1.grid_x + _local2)][(_arg1.grid_y + _local3)] != null){ return (false); }; _local3++; }; _local2++; }; return (true); } private function initRoomArrays():void{ a_corridors = new Array(); a_cells = new Array(); a_chambers = new Array(); a_largerooms = new Array(); a_galleries = new Array(); a_tallrooms = new Array(); a_widerooms = new Array(); } private function refreshRoomArrays():void{ initRoomArrays(); var _local1:* = 0; while (_local1 < room_array.length) { addRoomToTypeArray(DungeonRoom(room_array[_local1])); _local1++; }; } private function addRoomToTypeArray(_arg1:DungeonRoom):void{ if ((((_arg1 is rCorridorV)) || ((_arg1 is rCorridorH)))){ a_corridors.push(_arg1); } else { if ((_arg1 is rCell)){ a_cells.push(_arg1); } else { if ((_arg1 is rChamber)){ a_chambers.push(_arg1); } else { if ((_arg1 is rLargeRoom)){ a_largerooms.push(_arg1); } else { if ((_arg1 is rGallery)){ a_galleries.push(_arg1); } else { if ((_arg1 is rTallRoom)){ a_tallrooms.push(_arg1); } else { if ((_arg1 is rWideRoom)){ a_widerooms.push(_arg1); }; }; }; }; }; }; }; } private function PlaceRoom(_arg1:DungeonRoom):Boolean{ var _local2:*; var _local3:*; var _local4:* = checkFootprintEmpty(_arg1); if (!_local4){ return (false); }; _arg1.x = (SCREEN_X_OFFSET + (_arg1.grid_x * GRID_SIZE)); _arg1.y = (SCREEN_Y_OFFSET + (_arg1.grid_y * GRID_SIZE)); fillGridForRoom(_arg1); room_array.push(_arg1); _arg1.setFloor(); _arg1.setFloorTint(Campaign.getTintFrame(pc_party.campaign)); _arg1.addFurniture(); addRoomToTypeArray(_arg1); return (true); } private function RemoveUselessCorridors():Boolean{ var _local1:* = false; var _local2:* = 0; while (_local2 < room_array.length) { if ((((room_array[_local2] is DungeonCorridor)) && ((room_array[_local2].num_adjacent == 1)))){ if (room_array[_local2].getChildByName("entrance") != null){ } else { if (room_array[_local2].getChildByName("exit") != null){ } else { DeleteRoom(_local2); _local1 = true; }; }; }; _local2++; }; return (_local1); } private function isValidEntryPoint(_arg1:DungeonRoom):Boolean{ if (_arg1 == null){ return (false); }; if ((((_arg1 is DungeonCorridor)) && ((_arg1.num_adjacent > 1)))){ return (false); }; return (true); } private function findEntryPoint():DungeonRoom{ var _local1:* = 0; _local1 = 0; while (_local1 < a_corridors.length) { if (!isValidEntryPoint(a_corridors[_local1])){ } else { if (a_corridors[_local1].num_adjacent == 1){ return (a_corridors[_local1]); }; }; _local1++; }; return (null); } private function isRoomValidExit(_arg1:DungeonRoom, _arg2:DungeonRoom):Boolean{ var _local3:* = 6; if (_arg1 == null){ return (false); }; if (_arg1 == _arg2){ return (false); }; if (Math.abs((_arg1.grid_x - _arg2.grid_x)) < _local3){ return (false); }; if (Math.abs((_arg1.grid_y - _arg2.grid_y)) < _local3){ return (false); }; if ((((_arg1 is DungeonCorridor)) && ((_arg1.num_adjacent > 1)))){ return (false); }; return (true); } private function findExitPoint(_arg1:DungeonRoom):DungeonRoom{ var _local2:Array = getRandomRoomListIncreasingSize(true); var _local3:* = 0; while (_local3 < _local2.length) { if (!isRoomValidExit(_local2[_local3], _arg1)){ } else { if (_local2[_local3].num_adjacent == 1){ return (_local2[_local3]); }; }; _local3++; }; return (null); } private function TestRoomEdges(_arg1:int){ var _local4:*; var _local2:* = 0; var _local3:* = 0; var _local5:* = room_array[_arg1].getGridWidth(); var _local6:* = room_array[_arg1].getGridHeight(); var _local7:* = (room_array[_arg1].grid_x - 1); var _local8:* = room_array[_arg1].grid_y; if ((((_local7 >= 0)) && ((_local8 >= 0)))){ _local2 = 0; while (_local2 < _local6) { if (grid[_local7][(_local8 + _local2)] != null){ _local4 = grid[_local7][(_local8 + _local2)]; ConnectRooms(room_array[_arg1], _local4, _arg1); }; _local2++; }; }; _local7 = room_array[_arg1].grid_x; _local8 = (room_array[_arg1].grid_y - 1); if ((((_local8 >= 0)) && ((_local7 >= 0)))){ _local2 = 0; while (_local2 < _local5) { if (grid[(_local7 + _local2)][_local8] != null){ _local4 = grid[(_local7 + _local2)][_local8]; ConnectRooms(room_array[_arg1], _local4, _arg1); }; _local2++; }; }; } private function DeleteRoom(_arg1:int){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; if (_arg1 >= room_array.length){ return; }; if (_arg1 < 0){ return; }; if (room_array[_arg1] != null){ _local2 = room_array[_arg1].grid_x; _local3 = room_array[_arg1].grid_y; _local4 = 0; while (_local4 < room_array[_arg1].getGridWidth()) { _local6 = 0; while (_local6 < room_array[_arg1].getGridHeight()) { grid[(_local2 + _local4)][(_local3 + _local6)] = null; _local6++; }; _local4++; }; _local5 = 0; while (_local5 < room_array[_arg1].num_adjacent) { DungeonRoom(room_array[_arg1]).setNotAdjacentTo(room_array[_arg1].adjacent[_local5]); _local5++; }; }; room_array.splice(_arg1, 1); } private function getRoomAtGridPos(_arg1:int, _arg2:int):DungeonRoom{ if (_arg1 >= grid_width){ return (null); }; if (_arg2 >= grid_height){ return (null); }; if (_arg1 < 0){ return (null); }; if (_arg2 < 0){ return (null); }; return (DungeonRoom(grid[_arg1][_arg2])); } private function ValidateDungeonLayout(_arg1:Boolean=false):Boolean{ var _local9:*; var _local10:*; var _local11:*; var _local2:* = 0; var _local3:* = 0; var _local4:* = false; var _local5:* = 0; var _local6:Array = new Array(); var _local7:* = 0; var _local8:* = 0; _local3 = 0; while (_local3 < room_array.length) { room_array[_local3].validate_id = -1; _local3++; }; while ((((_local5 < room_array.length)) && ((_local2 < room_array.length)))) { if (room_array[_local2].validate_id > -1){ _local2++; } else { _local6[_local8] = room_array[_local2].validate(_local8); _local5 = (_local5 + _local6[_local8]); if (_local6[_local8] > _local6[_local7]){ _local7 = _local8; }; _local8++; _local2++; }; }; _local3 = 0; for (;_local3 < room_array.length;_local3++) { if (room_array[_local3].validate_id != _local7){ if ((((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == DungeonMain.MAX_LEVEL)))) && ((room_array[_local3] == bossRoom)))){ room_array.length = 0; return (true); }; DeleteRoom(_local3); _local3--; _local4 = true; continue; } else { if (_arg1){ if ((((room_array[_local3] is DungeonCorridor)) && ((room_array[_local3].num_adjacent == 1)))){ DeleteRoom(_local3); _local3--; _local4 = true; continue; }; } else { if ((((((room_array[_local3] is DungeonCorridor)) && ((room_array[_local3].num_adjacent == 1)))) && (!((room_array[_local3].adjacent[0] is DungeonCorridor))))){ _local9 = room_array[_local3].adjacent[0]; _local10 = room_array[_local3].grid_x; _local11 = room_array[_local3].grid_y; if ((room_array[_local3] is rCorridorH)){ if ((((getRoomAtGridPos(_local10, (_local11 - 1)) == _local9)) || ((getRoomAtGridPos((_local10 + 1), (_local11 - 1)) == _local9)))){ DeleteRoom(_local3); _local3--; _local4 = true; continue; }; if ((((getRoomAtGridPos(_local10, (_local11 + 1)) == _local9)) || ((getRoomAtGridPos((_local10 + 1), (_local11 + 1)) == _local9)))){ DeleteRoom(_local3); _local3--; _local4 = true; continue; }; } else { if ((room_array[_local3] is rCorridorV)){ if ((((getRoomAtGridPos((_local10 - 1), _local11) == _local9)) && ((getRoomAtGridPos((_local10 - 1), (_local11 + 1)) == _local9)))){ DeleteRoom(_local3); _local3--; _local4 = true; } else { if ((((getRoomAtGridPos((_local10 + 1), _local11) == _local9)) && ((getRoomAtGridPos((_local10 + 1), (_local11 + 1)) == _local9)))){ DeleteRoom(_local3); _local3--; _local4 = true; continue; }; }; }; }; }; }; }; }; return (_local4); } private function debugReport(_arg1:MouseEvent):void{ var _local2:DungeonRoom = currentRoom; if (_local2 == null){ return; }; trace(((("current room x = " + _local2.grid_x) + " y = ") + _local2.grid_y)); trace(("adjacent to " + _local2.num_adjacent)); trace(((((("(c is DungeonCorridor)" + (_local2 is DungeonCorridor)) + "(c.num_adjacent == 1)") + (_local2.num_adjacent == 1)) + "(!( c.adjacent[0] is DungeonCorridor))") + !((_local2.adjacent[0] is DungeonCorridor)))); if ((((((_local2 is DungeonCorridor)) && ((_local2.num_adjacent == 1)))) && (!((_local2.adjacent[0] is DungeonCorridor))))){ trace("room looks like one of those stupid corridors we should kill"); }; } private function inventoryClick(_arg1:MouseEvent):void{ DungeonMain(parent).InventoryClick(_arg1); } private function newDungeonClick(_arg1:MouseEvent):void{ DungeonMain(parent).NewDungeonClick(_arg1); } private function saveClick(_arg1:MouseEvent):void{ if (parent != null){ DungeonMain(parent).saveClick(_arg1); }; } private function menuClick(_arg1:MouseEvent):void{ var _local2:FadeToBlack = new FadeToBlack(); this.addChild(_local2); dm.main.dungeonMenuClick(_arg1); } public function updateChars():void{ var _local1:CharacterPortrait; updateCleared(); updateRating(); updateInventoryCount(); var _local2:int; while (_local2 < pc_party.members.length) { _local1 = CharacterPortrait(dinterface.getChildByName(("char" + (_local2 + 1)))); if ((((_local1 == null)) || (!((_local1 is CharacterPortrait))))){ } else { pc_party.members[_local2].portraitRef = _local1; CharacterPortrait(_local1).update(); CharacterPortrait(_local1).setGlow(); CharacterPortrait(_local1).setHiding((pc_party.sneaking > 0)); }; _local2++; }; if (parent != null){ DungeonMain(parent).saveParty(); DungeonMain(parent).saveChars(); }; } private function updateInventoryCount():void{ dinterface.items_label.text = ((String((pc_party.inventory.length + pc_party.overflow.length)) + "/") + String(Party.MAX_INVENTORY)); if (pc_party.overflow.length){ dinterface.items_label.textColor = 0xFF0000; } else { dinterface.items_label.textColor = 0xFFFFFF; }; dm.embolden(dinterface.items_label); } public function updateRating():void{ dinterface.rating_label.text = String(pc_party.getScore()); dm.embolden(dinterface.rating_label); } function hintClick(_arg1:Event):void{ var _local2:* = 0; while (_local2 < room_array.length) { if (room_array[_local2].explored){ } else { if (room_array[_local2].seen){ room_array[_local2].hintFlash(); }; }; _local2++; }; } function showCriticalPath(_arg1:Event):void{ var _local2:* = 0; while (_local2 < room_array.length) { if (room_array[_local2].criticalPath){ room_array[_local2].hintFlash(); }; _local2++; }; } function ratingClick(_arg1:Event):void{ var _local2:* = new RatingDialog(pc_party); addChild(_local2); } private function drawInterface():void{ var _local1:CharacterPortrait; var _local3:*; dinterface.x = 0; dinterface.y = 0; this.addChild(dinterface); dinterface.campaign_label.mouseEnabled = false; dinterface.campaign_label.text = Campaign.getName(pc_party.campaign); dm.embolden(dinterface.campaign_label); dinterface.level_label.mouseEnabled = false; dinterface.level_label.text = ("Level " + dungeon_level); dm.embolden(dinterface.level_label); if (DungeonMain.debug){ dinterface.explore_btn.addEventListener(MouseEvent.MOUSE_DOWN, exploreAll); dinterface.newdungeon_btn.addEventListener(MouseEvent.MOUSE_DOWN, newDungeonClick); dinterface.clear_btn.addEventListener(MouseEvent.MOUSE_DOWN, clearHordes); dinterface.gear_btn.addEventListener(MouseEvent.MOUSE_DOWN, addDebugGear); dinterface.heal_btn.addEventListener(MouseEvent.MOUSE_DOWN, debugHeal); dinterface.critical_btn.addEventListener(MouseEvent.MOUSE_DOWN, showCriticalPath); dinterface.level_debug.text = ((("Health: " + MonsterCharacter.getHealthMax(dungeon_level)) + " | Damage: ") + MonsterCharacter.getBaseDamage(dungeon_level)); } else { if (dinterface.contains(dinterface.explore_btn)){ dinterface.removeChild(dinterface.explore_btn); }; if (dinterface.contains(dinterface.newdungeon_btn)){ dinterface.removeChild(dinterface.newdungeon_btn); }; if (dinterface.contains(dinterface.clear_btn)){ dinterface.removeChild(dinterface.clear_btn); }; if (dinterface.contains(dinterface.gear_btn)){ dinterface.removeChild(dinterface.gear_btn); }; if (dinterface.contains(dinterface.heal_btn)){ dinterface.removeChild(dinterface.heal_btn); }; if (dinterface.contains(dinterface.level_debug)){ dinterface.removeChild(dinterface.level_debug); }; if (dinterface.contains(dinterface.critical_btn)){ dinterface.removeChild(dinterface.critical_btn); }; }; if (DungeonMain.BETA){ if (!dinterface.contains(dinterface.betaFunctions)){ dinterface.addChild(dinterface.betaFunctions); }; dinterface.betaFunctions.betaLevel.addEventListener(MouseEvent.MOUSE_DOWN, descendClick); dinterface.betaFunctions.betaEquipment.addEventListener(MouseEvent.MOUSE_DOWN, addBetaGear); dinterface.betaFunctions.betaHeal.addEventListener(MouseEvent.MOUSE_DOWN, debugHeal); } else { if (dinterface.contains(dinterface.betaFunctions)){ dinterface.removeChild(dinterface.betaFunctions); }; }; dinterface.rest_button.addEventListener(MouseEvent.MOUSE_DOWN, restButtonClick); dinterface.inventory_btn.addEventListener(MouseEvent.MOUSE_DOWN, inventoryClick); dinterface.menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, menuClick); dinterface.hint_btn.addEventListener(MouseEvent.MOUSE_DOWN, hintClick); dinterface.rating_btn.addEventListener(MouseEvent.MOUSE_DOWN, ratingClick); this.addEventListener(Event.ADDED_TO_STAGE, added); this.addEventListener(Event.REMOVED_FROM_STAGE, removed); updateInventoryCount(); var _local2:* = 0; while (_local2 < pc_party.members.length) { _local3 = dinterface.getChildByName(("slot" + (_local2 + 1))); if (_local3 == null){ } else { if ((pc_party.members[_local2] is PC_Adventurer)){ } else { _local1 = new CharacterPortrait(); _local1.x = _local3.x; _local1.y = _local3.y; _local1.setChar(pc_party.members[_local2]); _local1.name = ("char" + (_local2 + 1)); _local1.setGlow(); dinterface.addChild(_local1); pc_party.members[_local2].portraitRef = _local1; dinterface.removeChild(_local3); _local1.addEventListener(MouseEvent.MOUSE_DOWN, portraitClick); }; }; _local2++; }; if (!exit_found){ if (dinterface.getChildByName("descend_button") != null){ dinterface.removeChild(dinterface.descend_button); }; }; if (((!(previousLevelCleared)) && (!((dungeon_level == 10))))){ removeRestButton(); }; } function addDebugGear(_arg1:MouseEvent):void{ var _local2:Item; if (DungeonMain.debug == false){ return; }; pc_party.addDeluxeLoot(); pc_party.addAllOrangesFrom(new mGorgon(pc_party.level)); while (pc_party.inventory.length < Party.MAX_INVENTORY) { _local2 = TreasureChest.getItem(dungeon_level, Item.purple); if (TreasureChest.testItemSuitable(_local2, pc_party)){ pc_party.addToInventory(_local2); }; }; updateInventoryCount(); } function addBetaGear(_arg1:MouseEvent):void{ var _local2:Item; if (!DungeonMain.BETA){ return; }; while (pc_party.inventory.length < Party.MAX_INVENTORY) { _local2 = TreasureChest.getItem(dungeon_level, dmf.randomNum(Item.green, Item.blue)); if (TreasureChest.testItemSuitable(_local2, pc_party)){ pc_party.addToInventory(_local2); }; }; updateInventoryCount(); } function portraitClick(_arg1:MouseEvent):void{ if (_arg1.currentTarget == null){ return; }; if (!(_arg1.currentTarget is CharacterPortrait)){ return; }; var _local2:* = PlayerCharacter(CharacterPortrait(_arg1.currentTarget).char_ref); dm.main.goToInventory(_local2); } private function roomValidForMonster(_arg1:DungeonRoom):Boolean{ if (_arg1 == null){ return (false); }; if (_arg1.horde != null){ return (false); }; if (_arg1.shrine != null){ return (false); }; if (_arg1.treasure != null){ return (false); }; if (_arg1.isExit){ return (false); }; if (_arg1.isEntrance){ return (false); }; if (_arg1.special){ return (false); }; if ((_arg1 is DungeonCorridor)){ if (dmf.randomNum(0, 1000) < 700){ return (false); }; }; var _local2:* = 0; while (_local2 < DungeonRoom.max_adjacent) { if (_arg1.adjacent[_local2] == null){ } else { if (_arg1.adjacent[_local2] == _arg1){ } else { if (_arg1.adjacent[_local2].horde != null){ return (false); }; if (_arg1.adjacent[_local2].isEntrance){ return (false); }; }; }; _local2++; }; return (true); } private function getRandomRoomList(_arg1:Boolean=false):Array{ var _local2:Array = new Array(); _local2 = dm.joinArrays(_local2, a_largerooms); _local2 = dm.joinArrays(_local2, a_galleries); _local2 = dm.joinArrays(_local2, a_widerooms); _local2 = dm.joinArrays(_local2, a_tallrooms); _local2 = dm.joinArrays(_local2, a_chambers); _local2 = dm.joinArrays(_local2, a_cells); if (_arg1){ _local2 = dm.joinArrays(_local2, a_corridors); }; return (dm.shuffleArray(_local2)); } private function getRandomRoomListIncreasingSize(_arg1:Boolean=false):Array{ var _local2:Array = new Array(); if (_arg1){ _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_corridors)); }; _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_cells)); _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_chambers)); _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_widerooms)); _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_tallrooms)); _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_galleries)); _local2 = dm.joinArrays(_local2, dm.shuffleArray(a_largerooms)); return (_local2); } private function getBossRoom():DungeonRoom{ var _local1:Array; var _local4:DungeonRoom; var _local2:int; var _local3:Array = new Array(); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_largerooms)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_galleries)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_widerooms)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_tallrooms)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_chambers)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_cells)); _local3 = dm.joinArrays(_local3, dm.shuffleArray(a_corridors)); for each (_local4 in _local3) { if (_local4.criticalPath){ continue; } else { if (!roomValidForMonster(_local4)){ continue; } else { return (_local4); }; }; }; return (room_array[0]); } private function getRoomCount():int{ return ((room_array.length - a_corridors.length)); } private function GenerateMonsters():void{ var _local1:DungeonRoom; var _local7:*; var _local8:MonsterCharacter; var _local9:Horde; var _local2:* = 0; if (DungeonMain.nobaddies){ return; }; var _local3:int = (10 - hordes.length); var _local4:int; if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == DungeonMain.MAX_LEVEL)))){ _local3--; } else { _local7 = getBossRoom(); addHordeToRoom(_local7, 1); bossRoom = _local7; _local4++; }; var _local5:Array = getRandomRoomList(true); var _local6:* = 0; for (;_local6 < _local5.length;_local6++) { if (roomValidForMonster(_local5[_local6])){ addHordeToRoom(_local5[_local6]); _local4++; } else { continue; }; if (_local4 >= _local3){ break; }; }; trace(((((("placed monsters: wanted " + _local3) + ", placed ") + _local4) + ", tested ") + _local5.length)); if (pc_party.campaign == Campaign.DELUXE){ _local8 = new mFearSower(dungeon_level); for each (_local9 in hordes) { if ((((_local9.members.length == 6)) || ((_local9.members.length < 3)))){ } else { if (_local9.legendary){ } else { _local8.pos = _local9.findEmptySlot(true); _local9.members.push(_local8); trace(("found horde for fearsower, placed in pos " + _local8.pos)); break; }; }; }; }; } private function addHordeToRoom(_arg1:DungeonRoom, _arg2:int=0):void{ var _local3:Horde = new Horde(this.race, this.dungeon_level, _arg2, _arg1); _arg1.setHorde(_local3); hordes.push(_local3); _local3.mask = null; } private function roomValidForShrine(_arg1:DungeonRoom):Boolean{ var _local4:*; if (_arg1 == null){ return (false); }; if (_arg1.horde != null){ return (false); }; if (_arg1.treasure != null){ return (false); }; if (_arg1.shrine != null){ return (false); }; if (_arg1.special){ return (false); }; if (_arg1.isExit){ return (false); }; if (_arg1.isEntrance){ return (false); }; if ((_arg1 is DungeonCorridor)){ return (false); }; if ((_arg1 is rCell)){ return (false); }; var _local2:* = 5; var _local3:* = 0; for (;_local3 < shrines.length;_local3++) { if (shrines[_local3].room == null){ continue; } else { _local4 = shrines[_local3].room; }; if (Math.abs((_arg1.grid_x - _local4.grid_x)) < _local2){ return (false); }; if (Math.abs((_arg1.grid_y - _local4.grid_y)) < _local2){ return (false); }; }; return (true); } private function GenerateSpecialEncounter():void{ var _local6:Array; var _local7:int; var _local8:DungeonRoom; var _local9:Horde; var _local10:int; var _local1:int; if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == 9)))){ return; }; var _local2 = 33; var _local3 = 45; var _local4 = 25; var _local5 = 30; if (DungeonMain.BETA){ _local2 = 100; _local3 = 0; _local4 = 100; _local5 = 0; }; if (dmf.randomNum(0, 99) <= _local2){ _local7 = dmf.randomNum(0, 99); if (_local7 < _local3){ _local6 = getRandomRoomList(false); _local1 = 0; while (_local1 < _local6.length) { if (roomValidForShrine(_local6[_local1])){ addSpecialShrineToRoom(_local6[_local1]); break; }; _local1++; }; trace("placed special encounter - shrine"); } else { if (_local7 < (_local3 + _local4)){ if (dungeon_level == 1){ return; }; _local6 = getRandomRoomList(true); for each (_local8 in _local6) { if (_local8.criticalPath){ } else { if (roomValidForMonster(_local8)){ _local9 = new Horde(this.race, this.dungeon_level, 0, _local8, false, true); _local8.setHorde(_local9); hordes.push(_local9); _local9.mask = null; break; }; }; }; trace("placed special encounter - monster"); } else { if (_local7 < ((_local3 + _local4) + _local5)){ _local10 = dmf.randomNum(Encounter.RESCUE, Encounter.LURKER); if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((dungeon_level == DungeonMain.MAX_LEVEL)))){ return; }; if ((((pc_party.members.length > 4)) || (pc_party.hasAlly()))){ _local10 = Encounter.LURKER; }; _local6 = getRandomRoomList(true); _local1 = 0; while (_local1 < _local6.length) { if (roomValidForShrine(_local6[_local1])){ _local6[_local1].special = _local10; addSpecialIconToRoom(_local6[_local1]); break; }; _local1++; }; trace("placed special encounter - special"); }; }; }; }; } private function addSpecialIconToRoom(_arg1:DungeonRoom):void{ var _local2:SpecialEncounterIcon = new SpecialEncounterIcon(); _local2.name = "specialIcon"; _local2.x = _arg1.getCenterHorz(); _local2.y = _arg1.getCenterVert(); _arg1.setChild(_local2); } private function GenerateShrines():void{ var _local1 = 2; if ((((dungeon_level > 3)) && ((dmf.randomNum(0, 99) < 35)))){ _local1 = 1; }; var _local2:Array = getRandomRoomList(false); var _local3:* = 0; var _local4:int; for (;_local4 < _local2.length;_local4++) { if (roomValidForShrine(_local2[_local4])){ addRecoveryShrineToRoom(_local2[_local4]); _local3++; } else { continue; }; if (_local3 >= _local1){ break; }; }; trace(((((("placed shrines: wanted " + _local1) + ", placed ") + _local3) + ", tested ") + _local2.length)); } private function addRecoveryShrineToRoom(_arg1:DungeonRoom):void{ var _local2:* = new RecoveryShrine(); _local2.x = _arg1.getCenterHorz(); _local2.y = _arg1.getCenterVert(); _arg1.shrine = _local2; _local2.room = _arg1; _arg1.setChild(_local2); shrines.push(_local2); _local2.mask = null; } private function addSpecialShrineToRoom(_arg1:DungeonRoom, _arg2:int=-1):void{ var _local3:* = new SpecialShrine(_arg2); _local3.x = _arg1.getCenterHorz(); _local3.y = _arg1.getCenterVert(); _arg1.shrine = _local3; _local3.room = _arg1; _arg1.setChild(_local3); shrines.push(_local3); _local3.mask = null; } private function portalScrollOnLevel():Boolean{ if (pc_party.attrition){ return (false); }; if ((dungeon_level % 2) != 0){ return (true); }; return (false); } private function GenerateTreasure():void{ var _local6:DungeonRoom; var _local1:int = dmf.randomNum(4, 6); var _local2:Array = getRandomRoomList(false); var _local3:* = 0; var _local4:Boolean = portalScrollOnLevel(); if (((!(pc_party.attrition)) && (!(_local4)))){ if (dmf.randomNum(0, 99) < 20){ _local4 = true; }; }; var _local5:* = 0; while (_local5 < _local2.length) { _local6 = _local2[_local5]; if (((_local6.isExit) || (_local6.isEntrance))){ } else { if (_local6.horde != null){ } else { if (_local6.shrine != null){ } else { if (_local6.treasure != null){ } else { if (_local6.special){ } else { addTreasureToRoom(_local6, _local4); _local4 = false; _local3++; if (_local3 >= _local1){ break; }; }; }; }; }; }; _local5++; }; trace(((((("placed treasure: wanted " + _local1) + ", placed ") + _local3) + ", tested ") + _local2.length)); } private function addTreasureToRoom(_arg1:DungeonRoom, _arg2:Boolean):void{ var _local3:* = new TreasureChest(pc_party, dungeon_level); if (_arg2){ _local3.loot.push(new PortalScroll()); portalScrollRoomIndex = _arg1.index; }; _local3.x = _arg1.getCenterHorz(); _local3.y = _arg1.getCenterVert(); _arg1.treasure = _local3; chests.push(_local3); _arg1.setChild(_local3); _local3.mask = null; } function linkClick(_arg1:MouseEvent):void{ dm.link("http://www.maxgames.com"); } public function cleanup():void{ var _local2:*; removeEventListener(Event.ENTER_FRAME, onFrame); dinterface.explore_btn.removeEventListener(MouseEvent.MOUSE_DOWN, exploreAll); dinterface.newdungeon_btn.removeEventListener(MouseEvent.MOUSE_DOWN, newDungeonClick); dinterface.clear_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clearHordes); dinterface.gear_btn.removeEventListener(MouseEvent.MOUSE_DOWN, addDebugGear); dinterface.heal_btn.removeEventListener(MouseEvent.MOUSE_DOWN, debugHeal); dinterface.critical_btn.removeEventListener(MouseEvent.MOUSE_DOWN, showCriticalPath); dinterface.rating_btn.removeEventListener(MouseEvent.MOUSE_DOWN, ratingClick); dinterface.inventory_btn.removeEventListener(MouseEvent.MOUSE_DOWN, inventoryClick); dinterface.menu_btn.removeEventListener(MouseEvent.MOUSE_DOWN, menuClick); dinterface.hint_btn.removeEventListener(MouseEvent.MOUSE_DOWN, hintClick); dinterface.descend_button.removeEventListener(MouseEvent.MOUSE_DOWN, descendClick); dinterface.rest_button.removeEventListener(MouseEvent.MOUSE_DOWN, restButtonClick); this.removeEventListener(Event.ADDED_TO_STAGE, added); this.removeEventListener(Event.REMOVED_FROM_STAGE, removed); dinterface.help_btn.cleanup(); dinterface.options_btn.cleanup(); var _local1:int; while (_local1 < pc_party.members.length) { _local2 = dinterface.getChildByName(("char" + (_local1 + 1))); if (_local2 != null){ _local2.removeEventListener(MouseEvent.MOUSE_DOWN, portraitClick); }; _local1++; }; _local1 = 0; while (_local1 < hordes.length) { hordes[_local1].cleanup(); _local1++; }; _local1 = 0; while (_local1 < room_array.length) { room_array[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, roomClick); room_array[_local1].removeEventListener(MouseEvent.MOUSE_OVER, roomOver); room_array[_local1].removeEventListener(MouseEvent.MOUSE_OUT, roomOut); _local1++; }; dinterface.betaFunctions.betaLevel.removeEventListener(MouseEvent.MOUSE_DOWN, descendClick); dinterface.betaFunctions.betaEquipment.removeEventListener(MouseEvent.MOUSE_DOWN, addBetaGear); dinterface.betaFunctions.betaHeal.removeEventListener(MouseEvent.MOUSE_DOWN, debugHeal); } function added(_arg1:Event):void{ var _local3:*; stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); var _local2 = 1; while (_local2 <= 4) { _local3 = CharacterPortrait(dinterface.getChildByName(("char" + _local2))); if (_local3 != null){ _local3.addHoverListeners(); }; _local2++; }; if (hint != null){ stage.addChild(hint); hint = null; }; } function removed(_arg1:Event):void{ stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.SPACE){ hintClick(_arg1); }; } private function clearHordes(_arg1:MouseEvent=null):void{ if (!DungeonMain.debug){ return; }; var _local2:* = 0; while (_local2 < hordes.length) { hordes[_local2].fade(); _local2++; }; hordeDefeated(null); } private function updateDemonRoom():void{ var _local1:*; var _local2:*; if (pc_party.campaign != Campaign.ORIGINAL){ return; }; if (dungeon_level != DungeonMain.MAX_LEVEL){ return; }; if (bossRoom == null){ return; }; if ((bossRoom is rDemonRoom)){ _local1 = (getHordesDefeated() + 1); _local2 = Math.min((getHordesDefeated() + 1), bossRoom.totalFrames); if (bossRoom.currentFrame != _local2){ rDemonRoom(bossRoom).toFrame(_local2); }; if (demonSpawnCheck()){ addHordeToRoom(bossRoom, 1); }; }; } private function demonSpawnCheck():Boolean{ if (((!((bossRoom == null))) && (!((bossRoom.horde == null))))){ return (false); }; if (getHordesDefeated() == hordes.length){ return (true); }; return (false); } public function hordeDefeated(_arg1:Horde):void{ updateCleared(); updateDemonRoom(); buildAdjacencyMaps(); } private function buildAdjacencyMaps():void{ trace("build adjacency maps"); adjacencyMap = getAdjacencyMap(true); adjacencyMap2 = getAdjacencyMap(false); search = new Dijkstra(adjacencyMap, currentRoom.index); search.findShortestPath(); search2 = new Dijkstra(adjacencyMap2, currentRoom.index); search2.findShortestPath(); } private function getAdjacencyMap(_arg1:Boolean):Array{ var _local4:Boolean; var _local5:int; var _local2:Array = new Array(room_array.length); var _local3:int; while (_local3 < room_array.length) { _local2[_local3] = new Array(room_array.length); _local4 = false; if (((((_arg1) && (!((room_array[_local3].horde == null))))) && (!(room_array[_local3].horde.defeated)))){ _local4 = true; }; _local5 = 0; while (_local5 < room_array.length) { if (((_local4) || (((((_arg1) && (!((room_array[_local5].horde == null))))) && (!(room_array[_local5].horde.defeated)))))){ _local2[_local3][_local5] = Dijkstra.NO_CONNECTION; } else { if (_local3 == _local5){ _local2[_local3][_local5] = 0; } else { if (room_array[_local3].isAdjacentTo(room_array[_local5])){ if (((!(room_array[_local3].seen)) || (!(room_array[_local5].seen)))){ _local2[_local3][_local5] = Dijkstra.NO_CONNECTION; } else { _local2[_local3][_local5] = 1; }; } else { _local2[_local3][_local5] = Dijkstra.NO_CONNECTION; }; }; }; _local5++; }; _local3++; }; return (_local2); } private function validPathIndices(_arg1:Array):Boolean{ var _local3:int; var _local2:Array = new Array(); for each (_local3 in _arg1) { _local2.push(room_array[_local3]); }; return (validPathRooms(_local2)); } private function validPathRooms(_arg1:Array):Boolean{ if (_arg1.length == 0){ return (false); }; if ((((_arg1.length == 2)) && (!(_arg1[0].isAdjacentTo(_arg1[1]))))){ return (false); }; return (true); } private function findRouteTo(_arg1:DungeonRoom, _arg2:Boolean=true):Array{ var _local5:Array; var _local6:int; var _local3:* = 120; var _local4:Array = new Array(); if (currentRoom.isAdjacentTo(_arg1)){ _local4.push(currentRoom); _local4.push(_arg1); return (_local4); }; if (!DungeonMain.pathfinding){ return (_local4); }; if (search == null){ buildAdjacencyMaps(); }; _local5 = search.findShortestPathTo(_arg1.index, _local3); if (((_arg2) && (!(validPathIndices(_local5))))){ _local5 = search2.findShortestPathTo(_arg1.index, _local3); }; for each (_local6 in _local5) { _local4.push(room_array[_local6]); }; return (_local4); } public function drawMovementArrow(_arg1:Array):void{ var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local15:DoorIcon; removeMovementArrow(); if ((((_arg1 == null)) || (!(_arg1.length)))){ return; }; var _local2:* = 0xFFFFFF; moveArrow = new Sprite(); moveArrow.name = "arrow"; moveArrow.mouseEnabled = false; moveArrow.mouseChildren = false; var _local3:DungeonRoom = _arg1[(_arg1.length - 1)]; var _local4:* = new MovementArrowHead(); var _local5:int; var _local6:* = 0; while (_local6 < _arg1.length) { if (((!((_arg1[_local6].horde == null))) && (!(_arg1[_local6].horde.defeated)))){ _local5++; if (!pc_party.sneaking){ _local2 = 0xFF0000; _local4.gotoAndStop("red"); break; }; }; _local6++; }; if (_local5 > 1){ _local2 = 0xFF0000; _local4.gotoAndStop("red"); }; if (_local2 == 0xFFFFFF){ if (!_local3.explored){ _local2 = 39423; _local4.gotoAndStop("blue"); } else { _local2 = 26367; _local4.gotoAndStop("blue"); }; }; _local6 = 0; while (_local6 < (_arg1.length - 1)) { _local7 = (_arg1[_local6].x + Math.round(((_arg1[_local6].getGridWidth() * GRID_SIZE) / 2))); _local8 = (_arg1[_local6].y + Math.round(((_arg1[_local6].getGridHeight() * GRID_SIZE) / 2))); _local9 = _local7; _local10 = _local8; _local15 = _arg1[_local6].findDoorTo(_arg1[(_local6 + 1)]); if (_local15 != null){ if ((((_local15 is CorridorConnectorH)) || ((((_local15 is DoorIcon)) && (!((_local15.rotation == 0))))))){ _local9 = _local15.x; _local10 = (_local15.y + 10); } else { if ((((_local15 is CorridorConnectorV)) || ((((_local15 is DoorIcon)) && ((_local15.rotation == 0)))))){ _local9 = (_local15.x + 10); _local10 = _local15.y; } else { _local9 = (_local15.x + Math.round((_local15.width / 2))); _local10 = (_local15.y + Math.round((_local15.height / 2))); }; }; }; _local11 = (_arg1[(_local6 + 1)].x + Math.round(((_arg1[(_local6 + 1)].getGridWidth() * GRID_SIZE) / 2))); _local12 = (_arg1[(_local6 + 1)].y + Math.round(((_arg1[(_local6 + 1)].getGridHeight() * GRID_SIZE) / 2))); moveArrow.graphics.lineStyle(4, _local2, 0.9); moveArrow.graphics.moveTo(_local7, _local8); moveArrow.graphics.lineTo(_local9, _local10); moveArrow.graphics.lineTo(_local11, _local12); _local6++; }; _local4.x = _local11; _local4.y = _local12; var _local13:* = Math.round(dm.vectors2angle((_local11 - _local9), (_local12 - _local10), 1, 0)); if (_local12 < _local8){ _local13 = -(_local13); }; _local4.rotation = _local13; var _local14:* = this; moveArrow.addChild(_local4); _local14.addChild(moveArrow); dm.childToTop(moveArrow); } public function removeMovementArrow():void{ var _local1:* = this; if (moveArrow == null){ moveArrow = _local1.getChildByName("arrow"); }; if (((!((moveArrow == null))) && (_local1.contains(moveArrow)))){ _local1.removeChild(moveArrow); moveArrow = null; }; } function roomOver(_arg1:MouseEvent):void{ var _local5:DungeonRoom; var _local6:Array; if (travelling){ return; }; var _local2:DungeonRoom = DungeonRoom(_arg1.currentTarget); if (_local2 == currentRoom){ return; }; if (!_local2.seen){ return; }; if (!DungeonMain.pathfinding){ if (currentRoom.isAdjacentTo(_local2)){ currentRoute = new Array(); currentRoute.push(currentRoom); currentRoute.push(_local2); drawMovementArrow(currentRoute); } else { removeMovementArrow(); return; }; }; var _local3:Array = new Array(); var _local4 = 999; if (((!((_local2.horde == null))) && (!(_local2.horde.defeated)))){ for each (_local5 in _local2.adjacent) { if (!_local5.seen){ } else { _local6 = findRouteTo(_local5, false); if (_local6.length < _local4){ _local4 = _local6.length; _local3 = _local6; }; }; }; }; if (validPathRooms(_local3)){ _local3.push(_local2); currentRoute = _local3; } else { currentRoute = findRouteTo(_local2); }; drawMovementArrow(currentRoute); } function roomOut(_arg1:MouseEvent):void{ if (travelling){ return; }; var _local2:DungeonRoom = DungeonRoom(_arg1.currentTarget); if (!_local2.seen){ return; }; currentRoute = null; removeMovementArrow(); } private function finishMove(_arg1:int=0):void{ removeMovementArrow(); travelling = false; currentRoute = null; if (_arg1){ if (pc_party.roomMovedRegen(_arg1)){ updateChars(); } else { dm.main.saveParty(); }; }; roomHighlights((_arg1 > 0)); } private function roomClick(_arg1:MouseEvent):void{ var _local5:*; var _local6:*; var _local7:*; var _local2:DungeonRoom = DungeonRoom(_arg1.currentTarget); if (!_local2.seen){ return; }; if (pc_party.overflow.length){ _local5 = new WarningDialog("You are carrying too many items. You must enter the Inventory screen and discard some."); this.addChild(_local5); return; }; travelling = true; if (currentRoute == null){ currentRoute = findRouteTo(_local2); }; var _local3:int; var _local4:* = 1; while (_local4 < currentRoute.length) { currentRoute[(_local4 - 1)].travelFrom(); currentRoom = currentRoute[_local4]; if (!currentRoom.explored){ dm.party.stat_rooms_explored++; _local3++; }; if (pc_party.sneaking == 1){ pc_party.sneaking = 0; _local6 = 0; while (_local6 < pc_party.members.length) { _local7 = dinterface.getChildByName(("char" + (_local6 + 1))); if ((((_local7 == null)) || (!((_local7 is CharacterPortrait))))){ } else { _local7.setHiding((pc_party.sneaking > 0)); }; _local6++; }; }; if (currentRoom.travelTo()){ if (_local4 == (currentRoute.length - 1)){ finishMove(_local3); encounter(currentRoom); return; }; if (((!((currentRoom.horde == null))) && (!(currentRoom.horde.defeated)))){ if (encounter(currentRoom)){ finishMove(_local3); return; }; }; }; _local4++; }; finishMove(_local3); } public static function hintShown(_arg1:int):Boolean{ return (((DungeonMain.hints & _arg1) == _arg1)); } public static function getMonsterRace(_arg1:int, _arg2:int, _arg3:int):int{ if (((!((_arg3 == Campaign.DELUXE))) && (((_arg1 % DungeonMain.MAX_LEVEL) == 0)))){ return (Horde.special); }; if (_arg1 == 1){ if (_arg3 == Campaign.ORIGINAL){ return (Horde.undead); }; }; var _local4:Array = new Array(); var _local5 = 1; while (_local5 <= 16) { if ((_arg2 & _local5) != _local5){ if ((((_local5 == Horde.dwarves)) && ((_arg3 == Campaign.ORIGINAL)))){ } else { if ((((_local5 == Horde.special)) && ((_arg3 == Campaign.DELUXE)))){ } else { _local4.push(_local5); }; }; }; _local5 = (_local5 * 2); }; if (!_local4.length){ return (Horde.undead); }; return (_local4[dmf.randomNum(0, (_local4.length - 1))]); } } }//package
Section 111
//DungeonCorridor (DungeonCorridor) package { public class DungeonCorridor extends DungeonRoom { public function DungeonCorridor(){ isCorridor = true; } } }//package
Section 112
//DungeonInterface (DungeonInterface) package { import flash.display.*; import flash.text.*; public dynamic class DungeonInterface extends MovieClip { public var rating_btn:MovieClip; public var inventory_btn:MovieClip; public var menu_btn:MovieClip; public var help_btn:HelpButton; public var campaign_label:TextField; public var items_label:TextField; public var critical_btn:TextField; public var level_debug:TextField; public var gear_btn:TextField; public var level_label:TextField; public var rest_button:MovieClip; public var slot1:EmptyPortrait; public var explore_btn:TextField; public var slot2:EmptyPortrait; public var rating_label:TextField; public var slot3:EmptyPortrait; public var heal_btn:TextField; public var descend_button:MovieClip; public var cleared_bar:ProgressCleared; public var slot4:EmptyPortrait; public var hint_btn:MovieClip; public var betaFunctions:MovieClip; public var clear_btn:TextField; public var options_btn:OptionsButton; public var newdungeon_btn:TextField; public var explored_bar:ProgressExplored; } }//package
Section 113
//DungeonLoading (DungeonLoading) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.media.*; import flash.ui.*; public class DungeonLoading extends Sprite { private var text_contents:String; private var proceed_fn:Function; public var prose:TextField; public var proceed_btn:NewProceedButton; public var blinker:MovieClip; var anim_frame:int;// = 0 var channel:SoundChannel; public function DungeonLoading(){ this.addEventListener(Event.REMOVED_FROM_STAGE, removed); } function removed(_arg1:Event):void{ this.removeEventListener(Event.REMOVED_FROM_STAGE, removed); if (proceed_fn != null){ proceed_btn.removeEventListener(MouseEvent.MOUSE_DOWN, proceed_fn); }; this.removeEventListener(Event.ENTER_FRAME, frameAnim); dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); endWriteSound(); } public function allowProceed():void{ if (!this.contains(proceed_btn)){ addChild(proceed_btn); }; if (this.contains(blinker)){ removeChild(blinker); }; setChildIndex(proceed_btn, (numChildren - 1)); if (proceed_fn != null){ proceed_btn.addEventListener(MouseEvent.MOUSE_DOWN, proceed_fn); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); }; } public function setCallback(_arg1:Function):void{ proceed_fn = _arg1; } function reportKeyDown(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.ENTER)) || ((_arg1.keyCode == Keyboard.ESCAPE)))){ proceed_fn(null); }; } public function setText(_arg1:String):int{ text_contents = _arg1; prose.text = _arg1; var _local2:int = prose.textHeight; prose.text = ""; this.addEventListener(Event.ENTER_FRAME, frameAnim); return (_local2); } function frameAnim(_arg1:Event):void{ if (anim_frame == 1){ startWriteSound(); }; var _local2:* = 4; var _local3:* = Math.min((_local2 * anim_frame), text_contents.length); prose.text = text_contents.substr(0, _local3); if (_local3 >= text_contents.length){ this.removeEventListener(Event.ENTER_FRAME, frameAnim); endWriteSound(); }; anim_frame++; } private function startWriteSound():void{ channel = new writing_sound().play(0, 999); channel.soundTransform = new SoundTransform(SoundControl.volumeSetting); } private function endWriteSound():void{ if (channel != null){ channel.stop(); }; } } }//package
Section 114
//DungeonMain (DungeonMain) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.external.*; public class DungeonMain extends MovieClip { private const LOOT_PER_ENEMY:Number = 0.75; var pc_party:Party; var level:int;// = 1 var creation:PartyCreation; var dungeon:Dungeon; var battle:Battlefield; var inventory:Inventory; var loading:DungeonLoading; var recent_monsters:uint;// = 0 public var debug_label:TextField; public var version_label:TextField; private var mochi:MochiBot; private var kongLoaded:Boolean;// = false var dungeon_theme:DungeonMusic; var battle_theme:BattleMusic; var title_theme:TitleMusic; private var creationSlot:int;// = 0 var infiniteTransition:Boolean;// = false var suspendSaving:Boolean;// = false var dungeonTimer:Timer; private var battleTimer:Timer; private var enterSavedBattleTimer:Timer; private var interfaceSettings:SharedObject; private var cacheParty:SharedObject; private var cacheInventory:SharedObject; private var cacheDungeon:SharedObject; private var test1:int;// = 1 private var test2:int;// = 2 private var saveRating:int; private var saveGold:int; private var saveLevel:int; static const debug = false; static const debugitems = false; static const instantKill = false; static const skillsUnlocked = false; static const nobaddies = false; static const nosaving = false; static const startAtLevel = 1; static const BETA:Boolean = false; static const GAME_VERSION:String = "1.86"; static const cacheSaves:Boolean = true; static const APP_WIDTH:int = 550; static const APP_HEIGHT:int = 450; static const MAX_LEVEL:int = 9; static var LOCKED:Boolean = true; static var KONGREGATE:Boolean = false; static var ARMORGAMES:Boolean = false; static var ANDKON:Boolean = false; static var OURWORLD:Boolean = false; static var combatBlur:Boolean = true; static var portraitHighlight:Boolean = true; static var showHints:Boolean = true; static var hints:uint = 0; static var tooltipDelay:uint = 1; static var pathfinding:Boolean = true; static var highScore:int = 0; static var highLevel:int = 0; static var bestSurvival:int = 0; public static var kongregateSWF; public function DungeonMain():void{ addEventListener(Event.ADDED_TO_STAGE, added); debug_label.text = "Constructing.."; trace("constructor"); version_label.text = ((("FLASH PLAYER VERSION: " + String(Capabilities.version)) + " ") + String(Capabilities.playerType)); debug_label.text = "Initializing sound.."; dm.sound = new SoundControl(); debug_label.text = "Initializing game.."; dm.main = this; if (stage != null){ dm.stage = stage; }; if (kongCheck()){ KONGREGATE = true; } else { if (hostUrlContains("armorgames.com")){ ARMORGAMES = true; } else { if (hostUrlContains("andkon.com")){ ANDKON = true; } else { if (hostUrlContains("ourworld.com")){ OURWORLD = true; }; }; }; }; if (((((((((KONGREGATE) || (ARMORGAMES))) || (ANDKON))) || (OURWORLD))) || (debug))){ LOCKED = false; }; if (KONGREGATE){ initKongregateAPI(); }; mochi = MochiBot.track(this, "a94f5633"); debug_label.text = "Registering aliases.."; registerAliases(); loadInterface(); bookIntro(); } private function kongCheck():Boolean{ if (dm.stage == null){ return (false); }; var _local1:String = dm.stage.loaderInfo.url; var _local2:int = (_local1.indexOf("://") + 3); var _local3:int = _local1.indexOf("/", _local2); var _local4:String = _local1.substring(_local2, _local3); var _local5:int = (_local4.lastIndexOf(".") - 1); var _local6:int = (_local4.lastIndexOf(".", _local5) + 1); _local4 = _local4.substring(_local6, _local4.length); var _local7:* = dm.stage.loaderInfo.parameters; if ((((_local4 == "kongregate.com")) && ((_local7.kongregate == "true")))){ return (true); }; return (false); } private function hostUrlContains(_arg1:String):Boolean{ if ((((dm.stage == null)) && ((stage == null)))){ return (false); }; if (dm.stage.loaderInfo.loaderURL.indexOf(_arg1) != -1){ return (true); }; return (false); } private function added(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, added); if (stage != null){ dm.stage = stage; }; trace("added"); } public function bookIntro():void{ var intro:Intro; trace("bookintro"); debug_label.text = "Starting intro.."; try { intro = new Intro(); intro.name = "intro"; addChild(intro); musicTitleTheme(false); } catch(e:Error) { if (((!((intro == null))) && (contains(intro)))){ removeChild(intro); }; trace("caught Intro error"); mainMenu(false, true); }; } private function initKongregateAPI():void{ debug_label.text = "Init Kongregate API.."; if (kongLoaded){ return; }; Security.allowDomain("kongregate.com"); Security.allowDomain("http://www.kongregate.com/flash/API_AS3_Local.swf"); var _local1:Object = LoaderInfo(root.loaderInfo).parameters; var _local2:String = ((_local1.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf")); var _local3:URLRequest = new URLRequest(_local2); var _local4:Loader = new Loader(); _local4.contentLoaderInfo.addEventListener(Event.COMPLETE, kLoadComplete); _local4.load(_local3); this.addChild(_local4); } function kLoadComplete(_arg1:Event):void{ kongregateSWF = _arg1.target.content; kongregateSWF.services.connect(); kongLoaded = true; } function maxGamesClick(_arg1:MouseEvent):void{ dmf.link("http://www.maxgames.com"); } public function musicTitleTheme(_arg1:Boolean=false):void{ if (((!((title_theme == null))) && (title_theme.active))){ return; }; stopMusic(); title_theme = new TitleMusic(true, _arg1); } private function musicDungeonTheme(_arg1:Boolean=false):void{ stopMusic(); dungeon_theme = new DungeonMusic(_arg1); } private function musicBattleTheme(_arg1:Horde):void{ stopMusic(); battle_theme = new BattleMusic(true, _arg1); } private function stopMusic(_arg1:int=0):void{ if (_arg1){ if (title_theme != null){ title_theme.fadeOut(_arg1); }; if (battle_theme != null){ battle_theme.fadeOut(_arg1); }; if (dungeon_theme != null){ dungeon_theme.fadeOut(_arg1); }; } else { if (title_theme != null){ title_theme.stop(); title_theme = null; }; if (battle_theme != null){ battle_theme.stop(); battle_theme = null; }; if (dungeon_theme != null){ dungeon_theme.stop(); dungeon_theme = null; }; }; } public function setMusicVolume(_arg1:Number):void{ Music.volumeSetting = _arg1; if (((!((dungeon_theme == null))) && (dungeon_theme.active))){ dungeon_theme.setVolume(_arg1); }; if (((!((battle_theme == null))) && (battle_theme.active))){ battle_theme.setVolume(_arg1); }; if (((!((title_theme == null))) && (title_theme.active))){ title_theme.setVolume(_arg1); }; } public function mainMenu(_arg1:Boolean=false, _arg2:Boolean=false):void{ var _local5:String; var _local6:HintDialog; debug_label.text = "Accessing main menu.."; suspendSaving = false; clearSaveCache(); var _local3:* = getChildByName("intro"); if (((!((_local3 == null))) && (contains(_local3)))){ removeChild(_local3); }; if (battle_theme != null){ battle_theme.fadeOut(500); }; if (dungeon_theme != null){ dungeon_theme.fadeOut(500); }; if (title_theme == null){ musicTitleTheme(); }; var _local4:* = new TitleScreen(); _local4.name = "title"; addChild(_local4); if (!_arg2){ _local4.closeCover(); }; if (_arg1){ _local5 = "The quest has been completed, but the adventure is not over. \n\nYou may continue with your party, gaining power and items, as long as you wish.\n\nCheck the party inventory for bonus rewards!"; _local6 = new HintDialog("Infinite Mode Unlocked", _local5, false, true); stage.addChild(_local6); }; } public function dungeonMenuClick(_arg1:MouseEvent):void{ saveAll(false); mainMenu(); } public function removeDungeon():void{ if (dungeon != null){ if (this.contains(dungeon)){ removeChild(dungeon); }; dungeon.cleanup(); dungeon = null; }; } public function removeInventory():void{ if (inventory != null){ inventory.cleanup(); if (this.contains(inventory)){ removeChild(inventory); }; inventory = null; }; } public function startGame(_arg1:int=1){ clearSaveCache(); this.creationSlot = _arg1; loadInterface(); var _local2:* = new CampaignSelect(); var _local3:PageTurn = new PageTurn(_local2); _local3.name = "campaignPage"; this.addChildAt(_local3, (this.numChildren - 1)); var _local4:* = getChildByName("loadPage"); if (_local4 != null){ PageTurn(_local4).animate(); }; } public function loadGameMenu(){ var _local1:* = new LoadParty(); _local1.name = "LoadParty"; var _local2:PageTurn = new PageTurn(_local1); _local2.name = "loadPage"; this.addChildAt(_local2, (this.numChildren - 1)); } public function creationFinished(_arg1:Party):void{ var _local3:PageTurn; var _local4:int; var _local5:*; var _local6:*; _arg1.version = GAME_VERSION; pc_party = _arg1; dm.party = _arg1; if (DungeonMain.debugitems){ _local4 = 0; _local4 = 0; while (_local4 < 5) { _arg1.addToInventory(new PortalScroll()); _local4++; }; _local4 = 0; while (_local4 < 9) { _arg1.addToInventory(new CampaignItemFragment()); _local4++; }; _local4 = 0; while (_local4 < 10) { _arg1.addToInventory(new Enchantment(1)); _local4++; }; }; var _local2:* = getChildByName("creationPage"); if (_local2 != null){ PageTurn(_local2).animate(); }; if (pc_party.campaign == Campaign.SURVIVAL){ levelTo(10); pc_party.gold = 100000; pc_party.inventory.length = 0; _local5 = new SurvivalPrep(); _local3 = new PageTurn(_local5); _local3.name = "survivalPage"; this.addChildAt(_local3, (this.numChildren - 1)); stopMusic(1500); } else { _local6 = new DifficultySelect(pc_party); _local3 = new PageTurn(_local6); _local3.name = "difficultyPage"; this.addChildAt(_local3, (this.numChildren - 1)); }; } public function campaignSelected(_arg1:int):void{ var _local2:* = getChildByName("campaignPage"); if (_local2 != null){ PageTurn(_local2).animate(); }; level = 1; creation = new PartyCreation(); creation.pc_party.save_slot = creationSlot; creation.pc_party.campaign = _arg1; var _local3:PageTurn = new PageTurn(creation); _local3.name = "creationPage"; this.addChildAt(_local3, (this.numChildren - 1)); } public function difficultySelected():void{ var _local5:*; recent_monsters = 0; var _local1:* = Dungeon.getMonsterRace(1, recent_monsters, pc_party.campaign); addToRecentMonsters(_local1); level = 1; if (DungeonMain.debug){ level = startAtLevel; pc_party.level = level; _local5 = 1; while (_local5 < level) { pc_party.levelUp(); _local5++; }; pc_party.gold = 100000; }; dungeon = new Dungeon(pc_party, level, _local1, false); var _local2:* = getChildByName("difficultyPage"); if (_local2 != null){ PageTurn(_local2).animate(); }; var _local3:String = Campaign.getIntroText(pc_party.campaign); if (_local3 == ""){ _local3 = ("Could not retrieve intro text for campaign " + pc_party.campaign); }; var _local4:PageTurn = getLoadingScreen(_local3, this.proceedClick); this.addChildAt(_local4, (this.numChildren - 1)); startDungeonTimer(); } private function campaignBossDefeated(_arg1:int):void{ var campaign = _arg1; if (dungeon != null){ dungeon.cleanup(); if (dungeon.parent != null){ dungeon.parent.removeChild(dungeon); }; }; dungeon = null; infiniteTransition = true; pc_party.campaign = Campaign.INFINITE; pc_party.fullRecovery(); levelUp(); pc_party.removeQuestItems(); if (campaign == Campaign.ORIGINAL){ pc_party.addDemonLoot(); } else { if (campaign == Campaign.DELUXE){ pc_party.addDeluxeLoot(); }; }; checkRecentMonsters(); trace(("infinite transition: new level = " + level)); var new_monsters:* = Dungeon.getMonsterRace(level, recent_monsters, pc_party.campaign); addToRecentMonsters(new_monsters); dungeon = new Dungeon(pc_party, level, new_monsters, true); addLoadingScreen(Campaign.getOutroText(campaign), this.proceedClick, true); updateHighScores(); try { if (((KONGREGATE) && (!((kongregateSWF == null))))){ if (campaign == Campaign.ORIGINAL){ kongregateSWF.stats.submit("original_quest_complete", 1); } else { if (campaign == Campaign.DELUXE){ kongregateSWF.stats.submit("deluxe_quest_complete", 1); }; }; kongregateSWF.stats.submit("any_quest_complete", 1); }; } catch(e:Error) { } finally { startDungeonTimer(); }; } private function updateHighScores(_arg1:int=-1):void{ if (_arg1 == -1){ _arg1 = pc_party.getScore(); }; var _local2:Boolean; if (_arg1 > highScore){ highScore = _arg1; _local2 = true; }; if (level > highLevel){ highLevel = level; _local2 = true; }; if (_local2){ saveInterface(); }; } private function checkRecentMonsters():void{ var _local1:uint; if (pc_party.campaign == Campaign.ORIGINAL){ _local1 = (((Horde.greenskins + Horde.undead) + Horde.cultists) + Horde.creatures); } else { _local1 = ((((Horde.greenskins + Horde.undead) + Horde.cultists) + Horde.creatures) + Horde.dwarves); }; if (recent_monsters == _local1){ recent_monsters = 0; }; } private function addToRecentMonsters(_arg1:int):void{ if ((recent_monsters & _arg1) == _arg1){ recent_monsters = 0; } else { recent_monsters = (recent_monsters + _arg1); }; } private function levelUp():void{ level++; pc_party.level++; var _local1:* = 0; while (_local1 < pc_party.members.length) { if (level > pc_party.members[_local1].level){ pc_party.members[_local1].levelUp(); }; _local1++; }; pc_party.fullRecovery(); pc_party.usedTeleportItemThisLevel = false; } private function levelTo(_arg1:int):void{ var _local2:PlayerCharacter; trace((("DungeonMain.levelTo(" + _arg1) + ")")); pc_party.level = _arg1; this.level = _arg1; for each (_local2 in pc_party.members) { _local2.levelTo(_arg1); }; } public function descendClick(_arg1:MouseEvent):void{ saveAll(false); suspendSaving = true; levelUp(); dungeon.cleanup(); removeChild(dungeon); var _local2:* = dungeon.race; var _local3:* = dungeon.fullyCleared(); dungeon = null; checkRecentMonsters(); var _local4:* = Dungeon.getMonsterRace(level, recent_monsters, pc_party.campaign); addToRecentMonsters(_local4); dungeon = new Dungeon(pc_party, level, _local4, _local3); if ((((pc_party.campaign == Campaign.ORIGINAL)) && ((level == MAX_LEVEL)))){ addLoadingScreen("The party descend to the next level.\n\nIn their quest they have battled many and experienced much, but\nthey find themselves unprepared for what awaits them here. Never\nyet have they encountered so palpable a sense of evil. It pervades\nthese halls, and lesser men would flee in terror at its touch.\n\nThese few, though, have not come so far only to falter at the last. They sense that they have reached their destination and victory\nnow lies within their grasp.\n\nWithout exchanging a word, the heroes know what they must do. Nothing in this place may be suffered to live.", this.proceedClick, true); } else { addLoadingScreen(dungeon.getIntroduction(_local4), this.proceedClick); }; startDungeonTimer(); } private function startDungeonTimer():void{ dungeonTimer = new Timer(50, 1); dungeonTimer.addEventListener(TimerEvent.TIMER_COMPLETE, generateDungeon); dungeonTimer.start(); } private function getLoadingScreen(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:Boolean=false):PageTurn{ var _local7:*; loading = new DungeonLoading(); loading.name = "dungeonloading"; loading.setCallback(_arg2); var _local5:* = loading.setText(_arg1); loading.prose.y = ((APP_HEIGHT - _local5) / 2); if (_arg3){ _local7 = (((loading.prose.y + loading.prose.textHeight) + 15) - loading.proceed_btn.y); if (_local7 > 0){ loading.prose.y = Math.max(0, (loading.prose.y - _local7)); }; }; if (_arg4){ loading.allowProceed(); } else { loading.removeChild(loading.proceed_btn); }; var _local6:PageTurn = new PageTurn(loading); _local6.name = "loadingPage"; return (_local6); } private function addLoadingScreen(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:Boolean=false):void{ trace("addLoadingScreen"); stopMusic(200); var _local5:PageTurn = getLoadingScreen(_arg1, _arg2, _arg3, _arg4); addChild(_local5); } public function generateDungeon(_arg1:TimerEvent=null):void{ if (dungeonTimer != null){ dungeonTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, generateDungeon); }; var _local2:* = false; var _local3:* = 0; while (((!(_local2)) && ((_local3 < 5)))) { _local2 = dungeon.generateDungeon(); _local3++; }; trace((_local3 + " dungeons generated")); if (_local2){ dungeonLoadingFinished(); } else { startDungeonTimer(); }; } private function dungeonLoadingFinished():void{ suspendSaving = false; saveAll(false); loading.allowProceed(); } private function proceedAnimate(_arg1:Boolean=false):void{ var _local3:FadeFromPage; var _local2:* = getChildByName("loadingPage"); if (_local2 != null){ _local2.animate(); }; if (!_arg1){ _local3 = new FadeFromPage(); addChildAt(_local3, (numChildren - 1)); }; } public function proceedClick(_arg1:MouseEvent):void{ addChildAt(dungeon, (numChildren - 1)); proceedAnimate(); if (infiniteTransition){ saveAll(); infiniteTransition = false; mainMenu(true); } else { musicDungeonTheme(true); }; } public function InventoryClick(_arg1:MouseEvent){ goToInventory(); } public function goToInventory(_arg1:PlayerCharacter=null){ inventory = new Inventory(pc_party); if (((!((dungeon == null))) && (this.contains(dungeon)))){ removeChild(dungeon); }; addChild(inventory); inventory.init(); if (_arg1 != null){ inventory.selectChar(_arg1); }; } public function closeInventory():void{ inventory.cleanup(); removeChild(inventory); if (pc_party.campaign == Campaign.SURVIVAL){ } else { addChild(dungeon); saveParty(); saveInventory(); dungeon.updateChars(); }; } public function goToShop():void{ inventory.cleanup(); trace("go to shop"); saveAll(); clearSaveCache(); var _local1:Shop = new Shop(pc_party); _local1.name = "shop"; var _local2:* = new TeleportTransition(inventory, _local1); stage.addChild(_local2); _local2.setReady(); } public function leaveShop(_arg1:int):void{ var _local3:*; var _local2:* = getChildByName("shop"); pc_party.gold = _arg1; if (_local2 != null){ inventory = new Inventory(pc_party); _local3 = new TeleportTransition(_local2, inventory); stage.addChild(_local3); saveParty(); saveChars(); saveInventory(); _local3.setReady(); }; } public function setupLegendaryBattle():void{ trace("setupLegendaryBattle"); if (inventory){ inventory.cleanup(); }; saveParty(); saveChars(); saveInventory(); var _local1:Horde = new Horde(Horde.special, level, 0, null, false, true); battle = new Battlefield(); battle.pc_party = pc_party; battle.horde = _local1; battle.layoutBoard(); musicBattleTheme(_local1); var _local2:FadeScreenTransition = new FadeScreenTransition(inventory, battle); stage.addChild(_local2); _local2.setReady(); } public function setupPandoraBattle():void{ trace("setupPandoraBattle"); if (inventory){ inventory.cleanup(); }; saveParty(); saveChars(); saveInventory(); var _local1:Horde = new Horde(Horde.special, level, 0, null, false, true); _local1.setAsPandoraBattle(level); battle = new Battlefield(); battle.pc_party = pc_party; battle.horde = _local1; battle.layoutBoard(); musicBattleTheme(_local1); var _local2:FadeScreenTransition = new FadeScreenTransition(inventory, battle); stage.addChild(_local2); _local2.setReady(); } public function goToSanctum():void{ inventory.cleanup(); saveParty(); saveChars(); saveInventory(); var _local1:Horde = new Horde(Horde.special, level, 1, null, true, false); _local1.addDeluxeBoss(); battle = new Battlefield(); battle.pc_party = pc_party; battle.horde = _local1; battle.layoutBoard(); musicBattleTheme(_local1); var _local2:* = new TeleportTransition(inventory, battle); stage.addChild(_local2); _local2.setReady(); } public function beginSurvivalMode():void{ suspendSaving = false; saveAll(); clearSaveCache(); suspendSaving = true; pc_party.fullRecovery(); battle = new Battlefield(); battle.pc_party = pc_party; battle.horde = new Horde(); battle.horde.members.length = 0; battle.layoutBoard(); musicBattleTheme(battle.horde); this.addChildAt(battle, (this.numChildren - 1)); var _local1:FadeFromPage = new FadeFromPage(); addChildAt(_local1, (this.numChildren - 1)); var _local2:* = getChildByName("survivalPage"); if (_local2 != null){ PageTurn(_local2).animate(); }; } public function survivalDefeat(_arg1:int):void{ var _local2:String; if (battle != null){ battle.cleanup(); battle = null; }; if (_arg1 > 1){ _local2 = (("The defenders fall, and the city is put to the torch.\n\nSongs will be written about the brave adventurers who stood in its\ndefense until the last, and the heroic deeds performed this day.\n\nThe task set before them was impossible, and yet " + String((_arg1 - 1))) + " waves of\nattackers were slain. The enemy's victory was not without a price."); } else { _local2 = "The defenders fall, and the city is put to the torch.\n\nThe townsfolk had pinned their hopes on the ragged group of\nadventurers. Those hopes were woefully misplaced.\n\nNot a single wave of attackers were felled, and the enemy took\nthe city unopposed."; }; addLoadingScreen(_local2, this.closeHardcoreDefeatDialog, false, true); if (_arg1 > bestSurvival){ bestSurvival = _arg1; saveInterface(); }; try { if (((KONGREGATE) && (!((kongregateSWF == null))))){ kongregateSWF.stats.submit("HighestSurvivalWave", _arg1); }; } catch(e:Error) { }; } public function beginBattle(_arg1:Horde, _arg2:Boolean=false):void{ var err_txt:*; var err_dlg:ErrorDialog; var h = _arg1; var skipSave = _arg2; try { dungeon.mouseEnabled = false; dungeon.mouseChildren = false; battle = new Battlefield(); battle.pc_party = pc_party; battle.horde = h; if (!skipSave){ saveAll(true); }; suspendSaving = true; } catch(error:Error) { if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ err_txt = "An error has occurred. Please submit a bug report with the following information:\n\n"; err_txt = (err_txt + (("Init Battlefield error: " + error.name) + "\n")); if (h != null){ err_txt = (err_txt + (("horde: " + h) + "\n")); }; err_txt = (err_txt + (("suspend: " + suspendSaving) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; try { battleTimer = new Timer(1000, 1); battleTimer.addEventListener(TimerEvent.TIMER_COMPLETE, battleTimerFinished); battleTimer.start(); if (h.room != null){ dmf.childToTop(h.room); }; h.battleAnim(); } catch(error:Error) { battleTimerFinished(null); }; } function battleTimerFinished(_arg1:TimerEvent):void{ battleTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, battleTimerFinished); battle.layoutBoard(); if (this.contains(dungeon)){ removeChild(dungeon); }; addChild(battle); dungeon.mouseEnabled = true; dungeon.mouseChildren = true; musicBattleTheme(battle.horde); } function closeHardcoreDefeatDialog(_arg1:MouseEvent):void{ if (((!((loading == null))) && (!((loading.parent == null))))){ loading.parent.removeChild(loading); }; if (((!((dungeon == null))) && (!((dungeon.parent == null))))){ dungeon.parent.removeChild(dungeon); }; mainMenu(); } function closeDefeatDialog(_arg1:MouseEvent):void{ var _local3:*; proceedAnimate(); musicDungeonTheme(); var _local2:* = 4; if (((((!(pc_party.beginner)) && (DungeonMain.showHints))) && ((Dungeon.hintShown(_local2) == false)))){ _local3 = new HintDialog("Defeat!", "You suffer a penalty for the defeat of the entire party.\n\nEach character loses an item of equipment, and up to two items are lost from party inventory."); DungeonMain.hints = (DungeonMain.hints + _local2); stage.addChild(_local3); saveInterface(); }; } public function PostBattle(_arg1:Horde, _arg2:Party):void{ var _local6:int; var _local7:AllyDiedDialog; var _local8:*; var _local9:Boolean; var _local10:String; var _local11:TreasureChest; var _local12:Array; var _local13:Item; var _local14:MonsterCharacter; var _local3:* = false; battle.cleanup(); removeChild(battle); battle = null; suspendSaving = false; var _local4:PlayerCharacter = PlayerCharacter(pc_party.getAlly()); if (_local4 != null){ _local6 = dmf.randomNum(0, 99); trace(("check if ally should die : roll = " + _local6)); if (_local4.health > 0){ if (_local6 < 25){ trace("time to die"); _local7 = new AllyDiedDialog(_local4); dungeon.addChild(_local7); _local4.health = 0; }; }; }; var _local5:int = (pc_party.members.length - 1); while (_local5 >= 0) { if (pc_party.members[_local5].summoned){ pc_party.members.splice(_local5, 1); } else { if ((((pc_party.members[_local5] is PC_Adventurer)) && ((pc_party.members[_local5].health <= 0)))){ pc_party.members.splice(_local5, 1); } else { pc_party.members[_local5].clearStatusEffects(); }; }; _local5--; }; _arg1.resetMembers(); _arg1.tooltip = null; addChild(dungeon); if (pc_party.isPartyDead()){ pc_party.stat_party_defeats++; if (pc_party.hardcore){ beginStatSubmit(); deleteSave(pc_party.save_slot); pc_party = null; _local8 = "The heroes have fallen. Jubilant shouts ring through the ancient\nhalls as the enemy celebrate their victory.\n\nThough the adventurers fought bravely and endured much, in the\nend it was not enough-- the forces of darkness proving too strong.\n\nThe only hope that remains is that another group of brave souls\nmay be found, to attempt once more to enter the monsters' den\nand penetrate its dark heart."; addLoadingScreen(_local8, this.closeHardcoreDefeatDialog, false, true); return; }; _local9 = pc_party.deathPenalty(); if ((((pc_party.campaign == Campaign.DELUXE)) && (_arg1.isCampaignBoss()))){ saveAll(); } else { dungeon.retreatFromMonsters(_arg1); }; if (pc_party.beginner){ _local10 = "The party has been defeated in battle. The enemy cheer over\nthe fallen bodies, exultant in their victory.\n\nTime passes.\n\nEventually, the bodies begin to stir. Were the enemy less successful\nthan they hoped, or is this a miracle-- an act of divine provenance?\n\nWhatever the explanation may be, our heroes have survived to\ncontinue their quest. There is hope yet."; } else { _local10 = "The party has been defeated in battle. The enemy pick over the\nfallen bodies, claiming a few choice items as trophies of their\nvictory.\n\nTime passes.\n\nEventually, the bodies begin to stir. Were the enemy less successful\nthan they hoped, or is this a miracle-- an act of divine provenance?\n\nWhatever the explanation may be, our heroes have survived to\ncontinue their quest. There is hope yet."; }; addLoadingScreen(_local10, this.closeDefeatDialog, false, true); if (_local9){ trace("death penalty: items lost"); }; _local3 = true; } else { if (!_arg1.defeated){ if ((((pc_party.campaign == Campaign.DELUXE)) && (_arg1.isCampaignBoss()))){ saveAll(); } else { dungeon.retreatFromMonsters(_arg1); }; }; }; dungeon.updateChars(); if (_arg1.defeated){ _arg1.fade(); if (((_arg1.parent) || (_arg1.isCampaignBoss()))){ pc_party.stat_hordes_defeated++; if (_arg1.boss){ pc_party.stat_leaders_defeated++; }; }; if (_arg1.isCampaignBoss()){ campaignBossDefeated(pc_party.campaign); return; }; dungeon.hordeDefeated(_arg1); _local11 = new TreasureChest(pc_party, level, Math.round((_arg1.members.length * LOOT_PER_ENEMY)), _arg1.boss, true); if (((((_arg1.legendary) || ((_arg1.boss > 1)))) || (((((_arg1.boss) && ((pc_party.campaign == Campaign.INFINITE)))) && ((_arg1.race == Horde.special)))))){ _local12 = new Array(); trace("adding legendary loot"); for each (_local14 in _arg1.members) { if (((!((_local14 == null))) && ((((((((((_local14 is mHydraBody)) || ((_local14 is mGorgon)))) || ((_local14 is mMinotaur)))) || ((_local14 is mDreadfather)))) || ((_local14 is mDemon)))))){ trace(("found legendary monster: " + _local14.charname)); _local13 = _local14.getOrangeLoot(); if (_local13 != null){ _local12.push(_local13); }; }; }; if (!_local12.length){ _local13 = _arg1.members[0].getOrangeLoot(); if (_local13 != null){ _local12 = [_local13]; }; }; if (_local12.length){ if ((((_local12.length == 1)) && ((_arg1.boss <= 2)))){ _local13 = (_local12[0] as Item); if (_local13 != null){ _local11.loot.length = 0; _local11.loot.push(_local13); }; } else { if (_local12.length > 1){ for each (_local13 in _local12) { if (_local13 != null){ _local11.loot.push(_local13); }; }; }; }; trace("orange loot added"); } else { trace("no valid legendary loot found"); }; }; if ((((pc_party.campaign == Campaign.DELUXE)) && (_arg1.hasFearSower()))){ trace("do we need to add fearsower loot?"); if (pc_party.needCampaignFragment()){ _local11.loot.push(new CampaignItemFragment()); }; }; if (_local11.loot.length){ dungeon.addTreasureReport(_local11, true); }; }; dungeon.updateRating(); if (!_local3){ musicDungeonTheme(); }; saveAll(false); } public function NewDungeonClick(_arg1:MouseEvent){ removeChild(dungeon); dungeon.cleanup(); var _local2:* = dungeon.race; dungeon = null; dungeon = new Dungeon(pc_party, level); var _local3:* = false; while (!(_local3)) { _local3 = dungeon.generateDungeon(); }; addChild(dungeon); } function saveClick(_arg1:MouseEvent):void{ saveAll(false); } public function loadInterface():void{ var _local1:ErrorDialog; debug_label.text = "Loading interface settings.."; interfaceSettings = SharedObject.getLocal("interface"); if (interfaceSettings.size > 0){ GlobalVolume.setVolume(interfaceSettings.data.globalVolumeSetting); SoundControl.volumeSetting = interfaceSettings.data.sfxVolumeSetting; setMusicVolume(interfaceSettings.data.musicVolumeSetting); if (interfaceSettings.data.quality != null){ QualitySelector.setQuality(interfaceSettings.data.quality); }; showHints = interfaceSettings.data.showHints; hints = interfaceSettings.data.hints; combatBlur = interfaceSettings.data.combatBlur; portraitHighlight = interfaceSettings.data.portraitHighlight; pathfinding = interfaceSettings.data.pathfinding; tooltipDelay = interfaceSettings.data.tooltipDelay; highScore = Math.max(highScore, interfaceSettings.data.highScore); highLevel = Math.max(highLevel, interfaceSettings.data.highLevel); bestSurvival = Math.max(bestSurvival, interfaceSettings.data.bestSurvival); }; } public function loadGame(_arg1:int):void{ var _local2:int; var _local3:int; var _local5:SharedObject; var _local6:ErrorDialog; var _local7:PlayerCharacter; var _local8:PC_Adventurer; var _local9:*; var _local10:*; var _local11:FadeFromPage; var _local12:*; var _local13:*; var _local14:PageTurn; trace((("DungeonMain.loadGame(" + _arg1) + ")")); if ((((_arg1 <= 0)) || ((_arg1 > 3)))){ return; }; var _local4:Boolean; loadInterface(); clearSaveCache(); _local5 = SharedObject.getLocal((("slot" + _arg1) + "_party")); if (((!((_local5 == null))) && ((_local5.size > 0)))){ trace("loaded party"); if (cacheSaves){ cacheParty = _local5; }; _local4 = _local5.data.battle; pc_party = Party(_local5.data.pc_party); dm.party = pc_party; pc_party.save_slot = _arg1; this.level = pc_party.level; } else { _local6 = new ErrorDialog("Error!", "The party information could not be loaded."); dm.stage.addChild(_local6); }; _local5 = SharedObject.getLocal((("slot" + _arg1) + "_chars")); if (((!((_local5 == null))) && ((_local5.size > 0)))){ trace("loaded chars"); if (_local5.data.char1 != null){ pc_party.members[0] = _local5.data.char1; _local2 = 0; while (_local2 < _local5.data.char1_skills_active.length) { pc_party.members[0].skills[_local2].active = _local5.data.char1_skills_active[_local2]; pc_party.members[0].skills[_local2].position = _local5.data.char1_skills_position[_local2]; pc_party.members[0].skills[_local2].unlocked = _local5.data.char1_skills_unlocked[_local2]; _local2++; }; _local2 = 0; while (_local2 < Equipment.gearSlots) { pc_party.members[0].gear[_local2] = _local5.data.char1_equipment[_local2]; _local2++; }; pc_party.members[0].party = pc_party; }; if (_local5.data.char2 != null){ pc_party.members[1] = _local5.data.char2; _local2 = 0; while (_local2 < _local5.data.char2_skills_active.length) { pc_party.members[1].skills[_local2].active = _local5.data.char2_skills_active[_local2]; pc_party.members[1].skills[_local2].position = _local5.data.char2_skills_position[_local2]; pc_party.members[1].skills[_local2].unlocked = _local5.data.char2_skills_unlocked[_local2]; _local2++; }; _local2 = 0; while (_local2 < Equipment.gearSlots) { pc_party.members[1].gear[_local2] = _local5.data.char2_equipment[_local2]; _local2++; }; pc_party.members[1].party = pc_party; }; if (_local5.data.char3 != null){ pc_party.members[2] = _local5.data.char3; _local2 = 0; while (_local2 < _local5.data.char3_skills_active.length) { pc_party.members[2].skills[_local2].active = _local5.data.char3_skills_active[_local2]; pc_party.members[2].skills[_local2].position = _local5.data.char3_skills_position[_local2]; pc_party.members[2].skills[_local2].unlocked = _local5.data.char3_skills_unlocked[_local2]; _local2++; }; _local2 = 0; while (_local2 < Equipment.gearSlots) { pc_party.members[2].gear[_local2] = _local5.data.char3_equipment[_local2]; _local2++; }; pc_party.members[2].party = pc_party; }; if (_local5.data.char4 != null){ pc_party.members[3] = _local5.data.char4; _local2 = 0; while (_local2 < _local5.data.char4_skills_active.length) { pc_party.members[3].skills[_local2].active = _local5.data.char4_skills_active[_local2]; pc_party.members[3].skills[_local2].position = _local5.data.char4_skills_position[_local2]; pc_party.members[3].skills[_local2].unlocked = _local5.data.char4_skills_unlocked[_local2]; _local2++; }; _local2 = 0; while (_local2 < Equipment.gearSlots) { pc_party.members[3].gear[_local2] = _local5.data.char4_equipment[_local2]; _local2++; }; pc_party.members[3].party = pc_party; }; for each (_local7 in pc_party.members) { _local7.loadCustomPortrait(); }; if (_local5.data.ally != null){ _local8 = _local5.data.ally; _local8.party = pc_party; _local8.initAdvSkills(); pc_party.members.push(_local8); }; } else { _local6 = new ErrorDialog("Error!", "The character information could not be loaded."); dm.stage.addChild(_local6); }; _local5 = SharedObject.getLocal((("slot" + _arg1) + "_inventory")); if (((!((_local5 == null))) && ((_local5.size > 0)))){ trace("loaded inventory"); if (cacheSaves){ cacheInventory = _local5; }; pc_party.inventory = _local5.data.inventory; pc_party.overflow = _local5.data.overflow; } else { _local6 = new ErrorDialog("Error!", "The inventory information could not be loaded."); dm.stage.addChild(_local6); }; _local5 = SharedObject.getLocal((("slot" + _arg1) + "_dungeon")); if (((!((_local5 == null))) && ((_local5.size > 0)))){ trace("loaded dungeon"); if (cacheSaves){ cacheDungeon = _local5; }; recent_monsters = _local5.data.recent_monsters; if (_local5.data.hordes.length >= 1){ _local5.data.hordes[0].members = _local5.data.h0_members; }; if (_local5.data.hordes.length >= 2){ _local5.data.hordes[1].members = _local5.data.h1_members; }; if (_local5.data.hordes.length >= 3){ _local5.data.hordes[2].members = _local5.data.h2_members; }; if (_local5.data.hordes.length >= 4){ _local5.data.hordes[3].members = _local5.data.h3_members; }; if (_local5.data.hordes.length >= 5){ _local5.data.hordes[4].members = _local5.data.h4_members; }; if (_local5.data.hordes.length >= 6){ _local5.data.hordes[5].members = _local5.data.h5_members; }; if (_local5.data.hordes.length >= 7){ _local5.data.hordes[6].members = _local5.data.h6_members; }; if (_local5.data.hordes.length >= 8){ _local5.data.hordes[7].members = _local5.data.h7_members; }; if (_local5.data.hordes.length >= 9){ _local5.data.hordes[8].members = _local5.data.h8_members; }; if (_local5.data.hordes.length >= 10){ _local5.data.hordes[9].members = _local5.data.h9_members; }; dungeon = new Dungeon(pc_party, this.level, _local5.data.race); dungeon.portalScrollRoomIndex = _local5.data.portalScrollRoomIndex; _local9 = dungeon.createFromDataArray(_local5.data.rooms, _local5.data.currentRoomIndex, _local5.data.hordes, _local5.data.previous_cleared); if (!_local9){ trace("Error loading Dungeon"); } else { if (_local5.data.exit_found){ dungeon.foundExit(); }; _local10 = getChildByName("loadPage"); if (_local10 != null){ _local10.animate(); }; addChildAt(dungeon, (numChildren - 1)); _local11 = new FadeFromPage(); addChildAt(_local11, (numChildren - 1)); if (((((_local4) && (!((dungeon.currentRoom.horde == null))))) && (!(dungeon.currentRoom.horde.defeated)))){ dungeon.currentRoom.horde.resetMembers(); dungeon.mouseEnabled = false; dungeon.mouseChildren = false; enterSavedBattleTimer = new Timer(2000, 1); enterSavedBattleTimer.addEventListener(TimerEvent.TIMER_COMPLETE, enterSavedBattleTimerExpired); enterSavedBattleTimer.start(); } else { musicDungeonTheme(true); }; }; } else { if (pc_party.campaign != Campaign.SURVIVAL){ _local6 = new ErrorDialog("Error!", "The dungeon information could not be loaded."); dm.stage.addChild(_local6); }; }; if (pc_party.campaign == Campaign.SURVIVAL){ _local12 = getChildByName("loadPage"); if (_local12 != null){ _local12.animate(); }; _local13 = new SurvivalPrep(); _local14 = new PageTurn(_local13); _local14.name = "survivalPage"; this.addChildAt(_local14, (this.numChildren - 1)); } else { beginStatSubmit(); }; } private function enterSavedBattleTimerExpired(_arg1:Event):void{ enterSavedBattleTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, enterSavedBattleTimerExpired); var _local2:Horde = dungeon.currentRoom.horde; beginBattle(_local2, true); } public function clearSaveCache():void{ cacheParty = null; cacheInventory = null; cacheDungeon = null; } public function saveParty(_arg1:Boolean=false):void{ var _local2:SharedObject; var _local3:int; if (((nosaving) || (suspendSaving))){ return; }; trace("saveParty"); if (((!(cacheSaves)) || ((((cacheParty == null)) || ((cacheParty.size == 0)))))){ _local2 = SharedObject.getLocal((("slot" + pc_party.save_slot) + "_party")); trace("accessing party object"); if (cacheSaves){ cacheParty = _local2; }; } else { _local2 = cacheParty; }; _local2.data.battle = _arg1; if (_arg1){ _local2.data.pc_party = pc_party.duplicate(); } else { _local2.data.pc_party = pc_party; }; if (pc_party.campaign != Campaign.SURVIVAL){ _local3 = pc_party.getScore(); updateHighScores(_local3); }; if (!cacheSaves){ trace("flushing party object"); _local2.flush(); _local2.close(); }; } public function beginStatSubmit():void{ var _local1:TextField; if (pc_party.campaign == Campaign.SURVIVAL){ return; }; saveRating = Math.round(pc_party.getScore()); saveGold = Math.round(pc_party.gold); saveLevel = Math.round(pc_party.level); try { trace("begin stat submit"); if (((((KONGREGATE) || (debug))) && (!((kongregateSWF == null))))){ trace("submitting stats"); kongregateSWF.stats.submit("HighestRating", saveRating); kongregateSWF.stats.submit("HighestGold", saveGold); kongregateSWF.stats.submit("HighestLevel", saveLevel); kongregateSWF.stats.submit("HighestSurvivalWave", bestSurvival); if (pc_party.campaign == Campaign.INFINITE){ kongregateSWF.stats.submit("any_quest_complete", 1); }; if (debug){ _local1 = TextField(stage.getChildByName("kongTF")); if (_local1 == null){ _local1 = new TextField(); }; _local1.name = "kongTF"; _local1.text = ((((((dmf.getCurrentTimeString() + " Level: ") + saveLevel) + ", Rating: ") + saveRating) + ", Gold: ") + saveGold); _local1.width = 450; _local1.textColor = 1048575; _local1.mouseEnabled = false; _local1.x = 3; _local1.y = 3; if (!stage.contains(_local1)){ stage.addChild(_local1); }; }; }; } catch(error:Error) { }; } private function saveChar(_arg1:int, _arg2:SharedObject):void{ var _local4:Array; var _local5:Array; var _local6:Array; var _local7:Skill; var _local8:Array; var _local9:int; var _local3:PlayerCharacter = pc_party.members[_arg1]; if (_local3 != null){ _local4 = new Array(); _local5 = new Array(); _local6 = new Array(); for each (_local7 in _local3.skills) { _local4.push(_local7.active); _local5.push(_local7.position); _local6.push(_local7.unlocked); }; _local8 = new Array(Equipment.gearSlots); _local9 = 0; while (_local9 < Equipment.gearSlots) { _local8[_local9] = _local3.gear[_local9]; _local9++; }; if (_arg1 == 0){ _arg2.data.char1_skills_active = _local4; _arg2.data.char1_skills_position = _local5; _arg2.data.char1_skills_unlocked = _local6; _arg2.data.char1_equipment = _local8; _arg2.data.char1 = _local3; } else { if (_arg1 == 1){ _arg2.data.char2_skills_active = _local4; _arg2.data.char2_skills_position = _local5; _arg2.data.char2_skills_unlocked = _local6; _arg2.data.char2_equipment = _local8; _arg2.data.char2 = _local3; } else { if (_arg1 == 2){ _arg2.data.char3_skills_active = _local4; _arg2.data.char3_skills_position = _local5; _arg2.data.char3_skills_unlocked = _local6; _arg2.data.char3_equipment = _local8; _arg2.data.char3 = _local3; } else { if (_arg1 == 3){ _arg2.data.char4_skills_active = _local4; _arg2.data.char4_skills_position = _local5; _arg2.data.char4_skills_unlocked = _local6; _arg2.data.char4_equipment = _local8; _arg2.data.char4 = _local3; }; }; }; }; }; } public function saveChars():void{ var _local2:PlayerCharacter; var _local3:PlayerCharacter; if (((nosaving) || (suspendSaving))){ return; }; trace("saveChars"); var _local1:SharedObject = SharedObject.getLocal((("slot" + pc_party.save_slot) + "_chars")); for each (_local3 in pc_party.members) { if ((_local3 is PC_Adventurer)){ _local2 = _local3; }; }; if (_local2 != null){ _local1.data.ally = _local2; } else { _local1.data.ally = null; }; var _local4:int; while (_local4 < 4) { saveChar(_local4, _local1); _local4++; }; trace("flushing chars object"); _local1.flush(); _local1.close(); } public function saveInventory():void{ var _local1:SharedObject; if (((nosaving) || (suspendSaving))){ return; }; trace("saveInventory"); if (((!(cacheSaves)) || ((((cacheInventory == null)) || ((cacheInventory.size == 0)))))){ trace("accessing inventory object"); _local1 = SharedObject.getLocal((("slot" + pc_party.save_slot) + "_inventory")); if (cacheSaves){ cacheInventory = _local1; }; } else { _local1 = cacheInventory; }; _local1.data.inventory = new Array(pc_party.inventory.length); var _local2:* = 0; while (_local2 < pc_party.inventory.length) { _local1.data.inventory[_local2] = pc_party.inventory[_local2]; _local2++; }; _local1.data.overflow = new Array(pc_party.overflow.length); _local2 = 0; while (_local2 < pc_party.overflow.length) { _local1.data.overflow[_local2] = pc_party.overflow[_local2]; _local2++; }; if (!cacheSaves){ trace("flushing inventory object"); _local1.flush(); _local1.close(); }; } public function saveDungeon(_arg1:Boolean=true):void{ var _local2:SharedObject; var _local3:DungeonRoom; var _local4:Horde; if (((nosaving) || (suspendSaving))){ return; }; if (pc_party.campaign == Campaign.SURVIVAL){ return; }; if (((!(cacheSaves)) || ((((cacheDungeon == null)) || ((cacheDungeon.size == 0)))))){ trace("accessing dungeon object"); _local2 = SharedObject.getLocal((("slot" + pc_party.save_slot) + "_dungeon")); if (cacheSaves){ cacheDungeon = _local2; }; _arg1 = true; } else { _local2 = cacheDungeon; }; trace(("saveDungeon slot " + pc_party.save_slot)); _local2.data.recent_monsters = recent_monsters; _local2.data.race = dungeon.race; _local2.data.tileset = dungeon.tileset; _local2.data.exit_found = dungeon.exit_found; _local2.data.previous_cleared = dungeon.previousLevelCleared; _local2.data.portalScrollRoomIndex = dungeon.portalScrollRoomIndex; _local2.data.currentRoomIndex = dungeon.currentRoom.index; _local2.data.rooms = new Array(); for each (_local3 in dungeon.room_array) { _local2.data.rooms.push(_local3.roomData()); }; if (_arg1){ _local2.data.hordes = new Array(); for each (_local4 in dungeon.hordes) { _local2.data.hordes.push(_local4.hordeData()); }; if (dungeon.hordes.length >= 1){ _local2.data.h0_members = dungeon.hordes[0].members; }; if (dungeon.hordes.length >= 2){ _local2.data.h1_members = dungeon.hordes[1].members; }; if (dungeon.hordes.length >= 3){ _local2.data.h2_members = dungeon.hordes[2].members; }; if (dungeon.hordes.length >= 4){ _local2.data.h3_members = dungeon.hordes[3].members; }; if (dungeon.hordes.length >= 5){ _local2.data.h4_members = dungeon.hordes[4].members; }; if (dungeon.hordes.length >= 6){ _local2.data.h5_members = dungeon.hordes[5].members; }; if (dungeon.hordes.length >= 7){ _local2.data.h6_members = dungeon.hordes[6].members; }; if (dungeon.hordes.length >= 8){ _local2.data.h7_members = dungeon.hordes[7].members; }; if (dungeon.hordes.length >= 9){ _local2.data.h8_members = dungeon.hordes[8].members; }; if (dungeon.hordes.length >= 10){ _local2.data.h9_members = dungeon.hordes[9].members; }; }; if (!cacheSaves){ trace("flushing dungeon object"); _local2.flush(); _local2.close(); }; } public function saveInterface():void{ if (nosaving){ return; }; if ((((interfaceSettings == null)) || ((interfaceSettings.size == 0)))){ interfaceSettings = SharedObject.getLocal("interface"); }; interfaceSettings.data.globalVolumeSetting = GlobalVolume.volumeSetting; interfaceSettings.data.sfxVolumeSetting = SoundControl.volumeSetting; interfaceSettings.data.musicVolumeSetting = Music.volumeSetting; interfaceSettings.data.quality = QualitySelector.quality; interfaceSettings.data.showHints = showHints; interfaceSettings.data.hints = hints; interfaceSettings.data.combatBlur = combatBlur; interfaceSettings.data.portraitHighlight = portraitHighlight; interfaceSettings.data.pathfinding = pathfinding; interfaceSettings.data.tooltipDelay = tooltipDelay; interfaceSettings.data.highScore = highScore; interfaceSettings.data.highLevel = highLevel; interfaceSettings.data.bestSurvival = bestSurvival; interfaceSettings.flush(); } public function saveAll(_arg1:Boolean=false):void{ var _local2:int; var _local3:int; if (((nosaving) || (suspendSaving))){ return; }; var _local4:int; beginStatSubmit(); try { saveInterface(); _local4 = 1; saveParty(_arg1); _local4 = 2; saveChars(); _local4 = 3; saveInventory(); _local4 = 4; saveDungeon(); _local4 = 5; if (cacheSaves){ if (((!((cacheParty == null))) && ((cacheParty.size > 0)))){ cacheParty.flush(); }; if (((!((cacheInventory == null))) && ((cacheInventory.size > 0)))){ cacheInventory.flush(); }; if (((!((cacheDungeon == null))) && ((cacheDungeon.size > 0)))){ cacheDungeon.flush(); }; }; } catch(error:Error) { }; } private static function clearObject(_arg1:String):void{ var _local2:SharedObject = SharedObject.getLocal(_arg1); if (_local2.size > 0){ _local2.clear(); _local2.flush(); _local2.close(); }; } public static function deleteSave(_arg1:int):void{ if (DungeonMain.debug){ trace(("Deleting party info for slot " + _arg1)); }; clearObject((("slot" + _arg1) + "_party")); clearObject((("slot" + _arg1) + "_chars")); clearObject((("slot" + _arg1) + "_inventory")); clearObject((("slot" + _arg1) + "_dungeon")); } public static function RandomNum(_arg1:int, _arg2:int):int{ var _local3:* = (Math.round((Math.random() * (_arg2 - _arg1))) + _arg1); return (_local3); } public static function registerAliases():void{ registerClassAlias("PartyAlias", Party); registerClassAlias("PlayerCharacterAlias", PlayerCharacter); registerClassAlias("PC_ClericAlias", PC_Cleric); registerClassAlias("PC_RogueAlias", PC_Rogue); registerClassAlias("PC_MageAlias", PC_Mage); registerClassAlias("PC_WarriorAlias", PC_Warrior); registerClassAlias("PC_RangerAlias", PC_Ranger); registerClassAlias("PC_ConjurorAlias", PC_Conjuror); registerClassAlias("PC_BarbarianAlias", PC_Barbarian); registerClassAlias("PC_AdventurerAlias", PC_Adventurer); registerClassAlias("DungeonRoomDataAlias", DungeonRoomData); registerClassAlias("HordeDataAlias", HordeData); registerClassAlias("MonsterCharacterAlias", MonsterCharacter); registerClassAlias("mDemonAlias", mDemon); registerClassAlias("mDreadfatherAlias", mDreadfather); registerClassAlias("mFearSower", mFearSower); registerClassAlias("mDeathKnightAlias", mDeathKnight); registerClassAlias("mNecromancerAlias", mNecromancer); registerClassAlias("mOrcJuggernaut", mOrcJuggernaut); registerClassAlias("mOrcWarlordAlias", mOrcWarlord); registerClassAlias("mDragonAlias", mDragon); registerClassAlias("mBeholderAlias", mBeholder); registerClassAlias("mCultEngineAlias", mCultEngine); registerClassAlias("mAscendantAlias", mAscendant); registerClassAlias("mZombieAlias", mZombie); registerClassAlias("mBoneHorrorAlias", mBoneHorror); registerClassAlias("mGhostAlias", mGhost); registerClassAlias("mSkeletonAlias", mSkeleton); registerClassAlias("mLichAlias", mLich); registerClassAlias("mVampireAlias", mVampire); registerClassAlias("mSkeletonArcherAlias", mSkeletonArcher); registerClassAlias("mTrollAlias", mTroll); registerClassAlias("mOrcBerserkerAlias", mOrcBerserker); registerClassAlias("mOrcChampionAlias", mOrcChampion); registerClassAlias("mOrcSavageAlias", mOrcSavage); registerClassAlias("mOrcShamanAlias", mOrcShaman); registerClassAlias("mGoblinArtificerAlias", mGoblinArtificer); registerClassAlias("mBasiliskAlias", mBasilisk); registerClassAlias("mArachnoidAlias", mArachnoid); registerClassAlias("mGreeblerAlias", mGreebler); registerClassAlias("mGargoyleAlias", mGargoyle); registerClassAlias("mPoisonDrakeAlias", mPoisonDrake); registerClassAlias("mLightningDrakeAlias", mLightningDrake); registerClassAlias("mCultWarriorAlias", mCultWarrior); registerClassAlias("mCultArcherAlias", mCultArcher); registerClassAlias("mCultChosenAlias", mCultChosen); registerClassAlias("mCultPriestAlias", mCultPriest); registerClassAlias("mCultNeophyteAlias", mCultNeophyte); registerClassAlias("mVoidstalkerAlias", mVoidstalker); registerClassAlias("mAetherguardAlias", mAetherguard); registerClassAlias("mDwarfManiacAlias", mDwarfManiac); registerClassAlias("mDwarfWarriorAlias", mDwarfWarrior); registerClassAlias("mDwarfVeteranAlias", mDwarfVeteran); registerClassAlias("mDwarfCrossbowAlias", mDwarfCrossbow); registerClassAlias("mDwarfRunecasterAlias", mDwarfRunecaster); registerClassAlias("mDwarfWarleaderAlias", mDwarfWarleader); registerClassAlias("mDwarfPrinceAlias", mDwarfPrince); registerClassAlias("mGorgonAlias", mGorgon); registerClassAlias("mMinotaurAlias", mMinotaur); registerClassAlias("mHydraBodyAlias", mHydraBody); registerClassAlias("mHydraHeadAlias", mHydraHead); registerClassAlias("mWhirlwindAlias", mWhirlwind); registerClassAlias("iDaggerAlias", iDagger); registerClassAlias("iSwordAlias", iSword); registerClassAlias("iAxeAlias", iAxe); registerClassAlias("iMaceAlias", iMace); registerClassAlias("iSpearAlias", iSpear); registerClassAlias("iBowAlias", iBow); registerClassAlias("iCrossbowAlias", iCrossbow); registerClassAlias("iStaffAlias", iStaff); registerClassAlias("iPlateHelmetAlias", iPlateHelmet); registerClassAlias("iPlateGlovesAlias", iPlateGloves); registerClassAlias("iPlateGreavesAlias", iPlateGreaves); registerClassAlias("iPlateBootsAlias", iPlateBoots); registerClassAlias("iPlateBreastplateAlias", iPlateBreastplate); registerClassAlias("iLeatherHatAlias", iLeatherHat); registerClassAlias("iLeatherGlovesAlias", iLeatherGloves); registerClassAlias("iLeatherLegsAlias", iLeatherLegs); registerClassAlias("iLeatherBootsAlias", iLeatherBoots); registerClassAlias("iLeatherChestAlias", iLeatherChest); registerClassAlias("iCLothHat", iClothHat); registerClassAlias("iClothGloves", iClothGloves); registerClassAlias("iClothlegs", iClothLegs); registerClassAlias("iClothShows", iClothShoes); registerClassAlias("iClothRobe", iClothRobe); registerClassAlias("iRingAlias", iRing); registerClassAlias("iCloakAlias", iCloak); registerClassAlias("iQuiverAlias", iQuiver); registerClassAlias("iParryingDaggerAlias", iParryingDagger); registerClassAlias("iShieldBucklerAlias", iShieldBuckler); registerClassAlias("iShieldTowerAlias", iShieldTower); registerClassAlias("iCenserAlias", iCenser); registerClassAlias("OffhandAlias", Offhand); registerClassAlias("pothealthsmall", PotionHealthSmall); registerClassAlias("potpowersmall", PotionPowerSmall); registerClassAlias("potrejuvesmall", PotionRejuveSmall); registerClassAlias("potreviveweak", PotionReviveWeak); registerClassAlias("pothealth", PotionHealth); registerClassAlias("potpower", PotionPower); registerClassAlias("potrejuve", PotionRejuve); registerClassAlias("potrevive", PotionRevive); registerClassAlias("potresist", PotionPoisonResist); registerClassAlias("potshield", PotionShield); registerClassAlias("potquickness", PotionQuickness); registerClassAlias("potbody", PotionBody); registerClassAlias("potwits", PotionWits); registerClassAlias("sneakscroll", SneakyScroll); registerClassAlias("tabula", CleanSlate); registerClassAlias("townportal", PortalScroll); registerClassAlias("enchant", Enchantment); registerClassAlias("CampaignItemFragmentAlias", CampaignItemFragment); registerClassAlias("CampaignItemStoneAlias", CampaignItemStone); registerClassAlias("lure", LegendaryLure); registerClassAlias("shop_teleport_item", ShopTeleportItem); registerClassAlias("pandoras_box", PandorasBox); } } }//package
Section 115
//DungeonMusic (DungeonMusic) package { import flash.media.*; public class DungeonMusic extends Music { var segment1:Sound; var segment2:Sound; var playingSegment:int;// = 0 public function DungeonMusic(_arg1:Boolean=true):void{ if (dm.main.pc_party.campaign == Campaign.ORIGINAL){ segment1 = new return_of_the_knights_b(); } else { if (dm.main.pc_party.campaign == Campaign.DELUXE){ segment1 = new fields_of_honor_loop01(); } else { if ((dm.main.pc_party.level % 2) == 1){ segment1 = new return_of_the_knights_b(); } else { segment1 = new fields_of_honor_loop01(); }; }; }; channel = segment1.play(0, 99999); if (channel == null){ return; }; active = true; if (_arg1){ this.fadeIn(); } else { this.setVolume(volumeSetting); }; } } }//package
Section 116
//DungeonRoom (DungeonRoom) package { import flash.display.*; public class DungeonRoom extends MovieClip { public var floor:MovieClip; public var tint:MovieClip; public var adjacent:Array; var doors:Array; private var _grid_x:int;// = 0 private var _grid_y:int;// = 0 private var _furniture_frame_number:int;// = 0 private var _floor_frame_number:int;// = 0 private var _seen:Boolean;// = false private var _explored:Boolean;// = false public var treasure:TreasureChest; public var horde:Horde; public var shrine:MovieClip; public var special:int;// = 0 private var _isExit:Boolean;// = false private var _isEntrance:Boolean;// = false private var _index:int;// = 0 var isCorridor:Boolean; var isCorridorH:Boolean; public var criticalPath:Boolean;// = false var validate_id:int;// = -1 static const max_adjacent = 6; public function DungeonRoom(){ adjacent = new Array(); doors = new Array(max_adjacent); super(); isCorridor = false; isCorridorH = false; } public function get num_adjacent():int{ return (this.adjacent.length); } public function get grid_x():int{ return (this._grid_x); } public function set grid_x(_arg1:int):void{ this._grid_x = _arg1; } public function get grid_y():int{ return (this._grid_y); } public function set grid_y(_arg1:int):void{ this._grid_y = _arg1; } public function get furniture_frame_number():int{ return (this._furniture_frame_number); } public function set furniture_frame_number(_arg1:int):void{ this._furniture_frame_number = _arg1; } public function get floor_frame_number():int{ return (this._floor_frame_number); } public function set floor_frame_number(_arg1:int):void{ this._floor_frame_number = _arg1; } public function get seen():Boolean{ return (this._seen); } public function set seen(_arg1:Boolean):void{ this._seen = _arg1; } public function get explored():Boolean{ return (this._explored); } public function set explored(_arg1:Boolean):void{ this._explored = _arg1; } public function get isExit():Boolean{ return (this._isExit); } public function set isExit(_arg1:Boolean):void{ this._isExit = _arg1; } public function get isEntrance():Boolean{ return (this._isEntrance); } public function set isEntrance(_arg1:Boolean):void{ this._isEntrance = _arg1; } public function get index():int{ return (this._index); } public function set index(_arg1:int):void{ this._index = _arg1; } public function cleanup():void{ } public function hasSpecial():Boolean{ if (((!((this.horde == null))) && (!(horde.defeated)))){ return (true); }; if (((!((this.shrine == null))) && (!(shrine.used)))){ return (true); }; if (((!((this.treasure == null))) && (!(treasure.looted)))){ return (true); }; if (this.special){ return (true); }; if (this.isExit){ return (true); }; if (this.isEntrance){ return (true); }; return (false); } public function roomData():DungeonRoomData{ var _local1:* = new DungeonRoomData(); this.copyValuesTo(_local1); return (_local1); } protected function copyValuesTo(_arg1:DungeonRoomData):void{ _arg1.roomType = DungeonRoomData.getRoomTypeOf(this); _arg1.grid_x = this.grid_x; _arg1.grid_y = this.grid_y; _arg1.furniture_frame_number = this.furniture_frame_number; _arg1.floor_frame_number = this.floor_frame_number; _arg1.seen = this.seen; _arg1.explored = this.explored; _arg1.isEntrance = this.isEntrance; _arg1.isExit = this.isExit; _arg1.treasure = ((!((this.treasure == null))) && (!((this.treasure.looted == true)))); _arg1.special = this.special; if ((((this.shrine == null)) || (this.shrine.used))){ _arg1.shrine = 0; } else { _arg1.shrine = this.shrine.type; }; } public function getCenterHorz():int{ return (((this.getGridWidth() * Dungeon.GRID_SIZE) / 2)); } public function getCenterVert():int{ return (((this.getGridHeight() * Dungeon.GRID_SIZE) / 2)); } public function setHorde(_arg1:Horde):void{ this.horde = _arg1; _arg1.room = this; _arg1.x = getCenterHorz(); _arg1.y = getCenterVert(); _arg1.name = "horde"; if (_arg1.defeated == false){ this.setChild(_arg1); }; } public function getGridWidth():int{ return (0); } public function getGridHeight():int{ return (0); } public function validate(_arg1:int):int{ var _local2:* = 0; if (this.validate_id != -1){ return (_local2); }; this.validate_id = _arg1; _local2++; var _local3:* = 0; while (_local3 < adjacent.length) { _local2 = (_local2 + adjacent[_local3].validate(_arg1)); _local3++; }; return (_local2); } public function addDoor(_arg1:DoorIcon):Boolean{ var _local2:* = 0; while (_local2 < doors.length) { if (doors[_local2] == _arg1){ return (false); }; _local2++; }; doors.push(_arg1); return (true); } public function setAlpha(_arg1:Number):void{ this.alpha = _arg1; } public function getAlpha():Number{ return (this.alpha); } protected function setAlphaChildren(_arg1:Number):void{ if (treasure != null){ treasure.alpha = _arg1; }; if (horde != null){ horde.alpha = _arg1; }; if (shrine != null){ shrine.alpha = _arg1; }; if (isEntrance){ getChildByName("entrance").alpha = _arg1; }; if (isExit){ getChildByName("exit").alpha = _arg1; }; } public function setChild(_arg1:DisplayObject):void{ this.addChild(_arg1); } public function clearAdjacent():void{ adjacent.length = 0; doors.length = 0; } public function isAdjacentTo(_arg1:DungeonRoom):Boolean{ var _local2:* = 0; while (_local2 < num_adjacent) { if (adjacent[_local2] == _arg1){ return (true); }; _local2++; }; return (false); } public function setAdjacentTo(_arg1:DungeonRoom, _arg2:Boolean=true){ var _local3:* = 0; while (_local3 < adjacent.length) { if (adjacent[_local3] == _arg1){ return; }; _local3++; }; adjacent.push(_arg1); if (_arg2){ _arg1.setAdjacentTo(this, false); }; } public function setNotAdjacentTo(_arg1:DungeonRoom, _arg2:Boolean=true){ var _local3:* = 0; while (_local3 < adjacent.length) { if (adjacent[_local3] == _arg1){ adjacent.splice(_local3, 1); _local3--; if (_arg2){ _arg1.setNotAdjacentTo(this, false); }; return; }; _local3++; }; } public function travelTo(_arg1:Boolean=false):Boolean{ var _local2:DungeonRoom; seen = true; explored = true; if ((((parent == null)) && (!((parent is Dungeon))))){ return (false); }; for each (_local2 in adjacent) { if (_local2 != null){ _local2.seen = true; }; }; if (!_arg1){ if (treasure != null){ return (true); }; if (isExit){ return (true); }; if (isEntrance){ return (true); }; if (shrine != null){ return (true); }; if (this.special){ return (true); }; }; if (horde != null){ return (true); }; return (false); } public function travelFrom():void{ } public function hasPathTo(_arg1:DungeonRoom):Boolean{ var _local5:*; var _local6:*; var _local7:*; var _local2:Array = new Array(); var _local3:Array = new Array(); var _local4:* = false; _local2.push(this); while ((_local5 = _local2.pop())) { _local3.push(_local5); _local6 = 0; while (_local6 < num_adjacent) { if (_local5.adjacent[_local6] != _local5){ _local4 = false; _local7 = 0; while (_local7 < _local3.length) { if (_local3[_local7] == _local5.adjacent[_local6]){ _local4 = true; }; _local7++; }; if (!_local4){ _local2.push(_local5.adjacent[_local6]); }; }; _local6++; }; if (_local5 == _arg1){ return (true); }; }; return (false); } private function highlightDoor():void{ var _local1:DungeonRoom; if (((!((parent == null))) && ((parent is Dungeon)))){ _local1 = Dungeon(parent).currentRoom; } else { return; }; var _local2:* = 0; while (_local2 < doors.length) { if (doors[_local2] == null){ } else { if ((((doors[_local2].room1 == _local1)) || ((doors[_local2].room2 == _local1)))){ doors[_local2].gotoAndStop(2); }; }; _local2++; }; } private function resetDoors():void{ var _local1:DoorIcon; for each (_local1 in doors) { if (_local1 == null){ } else { _local1.gotoAndStop(1); }; }; } public function hasValidTreasure():Boolean{ if (((!((this.treasure == null))) && (!(this.treasure.looted)))){ return (true); }; return (false); } public function findDoorTo(_arg1:DungeonRoom):DoorIcon{ var _local2:* = 0; while (_local2 < doors.length) { if ((((doors[_local2].room1 == _arg1)) || ((doors[_local2].room2 == _arg1)))){ return (doors[_local2]); }; _local2++; }; return (null); } public function realWidth():int{ return ((getGridWidth() * Dungeon.GRID_SIZE)); } public function realHeight():int{ return ((getGridHeight() * Dungeon.GRID_SIZE)); } public function addExit():void{ var _local1:* = 0; this.isExit = true; this.furniture_frame_number = 1; var _local2:ExitStairs = new ExitStairs(); _local2.name = "exit"; var _local3:* = (this.x + (this.realWidth() / 2)); var _local4:* = (this.y + (this.realHeight() / 2)); var _local5:* = false; if (isCorridor){ _local2.gotoAndStop(1); if (isCorridorH){ _local5 = false; _local1 = 0; while (_local1 < doors.length) { if (doors[_local1].x > _local3){ _local5 = true; }; _local1++; }; if (_local5){ _local2.rotation = 180; }; } else { _local2.rotation = 90; _local5 = false; _local1 = 0; while (_local1 < doors.length) { if (doors[_local1].y >= _local4){ _local5 = true; }; _local1++; }; if (_local5){ _local2.rotation = 270; }; }; } else { _local2.gotoAndStop(2); }; _local2.x = getCenterHorz(); _local2.y = getCenterVert(); this.setChild(_local2); } public function addEntrance(_arg1:Boolean):void{ var _local2:* = 0; this.isEntrance = true; this.furniture_frame_number = 1; var _local3:EntryStairs = new EntryStairs(_arg1); _local3.name = "entrance"; var _local4:* = (this.x + (this.realWidth() / 2)); var _local5:* = (this.y + (this.realHeight() / 2)); var _local6:* = false; if (isCorridor){ if (isCorridorH){ _local6 = false; _local2 = 0; while (_local2 < doors.length) { if (doors[_local2].x >= _local4){ _local6 = true; }; _local2++; }; if (_local6){ _local3.rotation = 180; }; } else { _local3.rotation = 90; _local6 = false; _local2 = 0; while (_local2 < doors.length) { if (doors[_local2].y >= _local5){ _local6 = true; }; _local2++; }; if (_local6){ _local3.rotation = 270; }; }; }; _local3.x = getCenterHorz(); _local3.y = getCenterVert(); this.setChild(_local3); } public function getEntrance():EntryStairs{ if (!this.isEntrance){ return (null); }; var _local1:* = getChildByName("entrance"); return (_local1); } public function addFurniture():void{ if (furniture_frame_number == 0){ furniture_frame_number = dmf.randomNum(1, this.totalFrames); }; this.gotoAndStop(furniture_frame_number); } public function setFloor():void{ var _local1:MovieClip = MovieClip(this.getChildByName("floor")); if (_local1 == null){ return; }; if (floor_frame_number == 0){ floor_frame_number = dmf.randomNum(1, _local1.totalFrames); }; _local1.gotoAndStop(floor_frame_number); } public function toTop():void{ if (parent == null){ return; }; var _local1:* = (parent.numChildren - 1); if (parent.getChildByName("arrow") != null){ _local1--; }; parent.setChildIndex(this, _local1); } public function hintFlash():void{ var _local1:* = new RoomFlash(); _local1.x = this.x; _local1.y = this.y; _local1.width = (this.getGridWidth() * Dungeon.GRID_SIZE); _local1.height = (this.getGridHeight() * Dungeon.GRID_SIZE); if (isCorridor){ _local1.x = (_local1.x + 1); _local1.y = (_local1.y + 1); _local1.width = (_local1.width - 2); _local1.height = (_local1.height - 2); } else { _local1.x = (_local1.x + 2); _local1.y = (_local1.y + 2); _local1.width = (_local1.width - 4); _local1.height = (_local1.height - 4); }; _local1.alpha = 0.8; parent.addChild(_local1); } public function setFloorTint(_arg1:int):void{ if (tint != null){ tint.gotoAndStop(_arg1); }; } } }//package
Section 117
//DungeonRoomData (DungeonRoomData) package { public class DungeonRoomData { private var _grid_x:int;// = 0 private var _grid_y:int;// = 0 private var _furniture_frame_number:int;// = 0 private var _floor_frame_number:int;// = 0 private var _seen:Boolean;// = false private var _explored:Boolean;// = false private var _isExit:Boolean;// = false private var _isEntrance:Boolean;// = false private var _roomType:int;// = 1 private var _treasure:Boolean;// = false private var _shrine:int;// = 0 private var _special:int;// = 0 static const corridorH = 1; static const corridorV = 2; static const wideRoom = 3; static const cell = 4; static const chamber = 5; static const gallery = 6; static const largeRoom = 7; static const tallRoom = 8; static const demonRoom = 9; public function get grid_x():int{ return (this._grid_x); } public function set grid_x(_arg1:int):void{ this._grid_x = _arg1; } public function get grid_y():int{ return (this._grid_y); } public function set grid_y(_arg1:int):void{ this._grid_y = _arg1; } public function get furniture_frame_number():int{ return (this._furniture_frame_number); } public function set furniture_frame_number(_arg1:int):void{ this._furniture_frame_number = _arg1; } public function get floor_frame_number():int{ return (this._floor_frame_number); } public function set floor_frame_number(_arg1:int):void{ this._floor_frame_number = _arg1; } public function get seen():Boolean{ return (this._seen); } public function set seen(_arg1:Boolean):void{ this._seen = _arg1; } public function get explored():Boolean{ return (this._explored); } public function set explored(_arg1:Boolean):void{ this._explored = _arg1; } public function get isExit():Boolean{ return (this._isExit); } public function set isExit(_arg1:Boolean):void{ this._isExit = _arg1; } public function get isEntrance():Boolean{ return (this._isEntrance); } public function set isEntrance(_arg1:Boolean):void{ this._isEntrance = _arg1; } public function get roomType():int{ return (this._roomType); } public function set roomType(_arg1:int):void{ this._roomType = _arg1; } public function get treasure():Boolean{ return (this._treasure); } public function set treasure(_arg1:Boolean):void{ this._treasure = _arg1; } public function get shrine():int{ return (this._shrine); } public function set shrine(_arg1:int):void{ this._shrine = _arg1; } public function get special():int{ return (this._special); } public function set special(_arg1:int):void{ this._special = _arg1; } public function toRoom(_arg1:Boolean):DungeonRoom{ var _local2:DungeonRoom; if (roomType == corridorH){ _local2 = new rCorridorH(); } else { if (roomType == corridorV){ _local2 = new rCorridorV(); } else { if (roomType == wideRoom){ _local2 = new rWideRoom(); } else { if (roomType == cell){ _local2 = new rCell(); } else { if (roomType == chamber){ _local2 = new rChamber(); } else { if (roomType == gallery){ _local2 = new rGallery(); } else { if (roomType == largeRoom){ _local2 = new rLargeRoom(); } else { if (roomType == tallRoom){ _local2 = new rTallRoom(); } else { if (roomType == demonRoom){ _local2 = new rDemonRoom(); } else { _local2 = new rCorridorH(); }; }; }; }; }; }; }; }; }; _local2.grid_x = this.grid_x; _local2.grid_y = this.grid_y; _local2.furniture_frame_number = this.furniture_frame_number; _local2.floor_frame_number = this.floor_frame_number; _local2.seen = this.seen; _local2.explored = this.explored; _local2.special = this.special; return (_local2); } public static function getRoomTypeOf(_arg1:DungeonRoom):int{ if ((_arg1 is rCorridorH)){ return (corridorH); }; if ((_arg1 is rCorridorV)){ return (corridorV); }; if ((_arg1 is rWideRoom)){ return (wideRoom); }; if ((_arg1 is rCell)){ return (cell); }; if ((_arg1 is rChamber)){ return (chamber); }; if ((_arg1 is rGallery)){ return (gallery); }; if ((_arg1 is rLargeRoom)){ return (largeRoom); }; if ((_arg1 is rTallRoom)){ return (tallRoom); }; if ((_arg1 is rDemonRoom)){ return (demonRoom); }; return (0); } } }//package
Section 118
//EmptyCustomPortrait (EmptyCustomPortrait) package { import flash.display.*; public dynamic class EmptyCustomPortrait extends Sprite { } }//package
Section 119
//EmptyPortrait (EmptyPortrait) package { import flash.display.*; public class EmptyPortrait extends MovieClip { public var empty:MovieClip; public var pos:int;// = -1 public function EmptyPortrait(){ addFrameScript(0, frame1, 12, frame13); this.gotoAndStop(1); } function frame1(){ this.stop(); } function frame13(){ this.gotoAndStop(1); } } }//package
Section 120
//EnchantAnimation (EnchantAnimation) package { import flash.display.*; public dynamic class EnchantAnimation extends MovieClip { public function EnchantAnimation(){ addFrameScript(10, frame11); } function frame11(){ stop(); if (this.parent != null){ this.parent.removeChild(this); }; } } }//package
Section 121
//Enchantment (Enchantment) package { public class Enchantment extends Item { private var _enchantType:int;// = 0 static const STRENGTH = 1; static const ENDURANCE = 2; static const DEXTERITY = 3; static const INTELLECT = 4; static const POISON = 5; static const REGEN_HEALTH = 6; static const PROTECTION = 7; static const ENHANCEMENT = 50; static const REPLENISH = 51; static const RESISTANCE = 52; static const REGEN_POWER = 53; public function Enchantment(_arg1:int=1, _arg2:int=0, _arg3:Boolean=false):void{ this.item_level = _arg1; if (_arg2){ enchantType = _arg2; } else { if (_arg3){ enchantType = dmf.randomNum(ENHANCEMENT, REGEN_POWER); } else { enchantType = dmf.randomNum(STRENGTH, PROTECTION); }; }; icon_frame = iconForEnchantment(enchantType); item_name = ("Orb of " + nameForEnchantment(enchantType)); if (enchantType >= ENHANCEMENT){ item_rarity = Item.purple; } else { item_rarity = Item.blue; }; } public function get enchantType():int{ return (_enchantType); } public function set enchantType(_arg1:int):void{ this._enchantType = _arg1; } override public function getItemTypeString(){ return ("Enchantment"); } override public function getWorth():int{ var _local1:Number = 200; _local1 = (_local1 * (1 + ((ITEM_VALUE_INCREASE_PER_LEVEL * item_level) / 100))); if (enchantType >= ENHANCEMENT){ _local1 = (_local1 * 2.5); if (enchantType == ENHANCEMENT){ _local1 = (_local1 * 2); }; }; return (Math.round(_local1)); } public function getValue():int{ var _local1:int; switch (enchantType){ case STRENGTH: case ENDURANCE: case DEXTERITY: case INTELLECT: _local1 = (1 + Math.floor((item_level / DungeonMain.MAX_LEVEL))); break; case POISON: _local1 = Equipment.scalePoisonDamage(5, item_level); break; case REGEN_HEALTH: _local1 = Equipment.scaleHealthRegen(2, item_level); break; case PROTECTION: _local1 = Equipment.armorScale(30, item_level); break; case ENHANCEMENT: _local1 = 10; break; case REPLENISH: _local1 = 20; break; case REGEN_POWER: _local1 = 2; break; case RESISTANCE: _local1 = 30; break; }; return (_local1); } override public function itemStatsString(_arg1:String):String{ _arg1 = ""; var _local2:int = getValue(); _arg1 = (_arg1 + "Use: Drag onto an equipped item to enchant it.\n\n"); switch (enchantType){ case STRENGTH: _arg1 = (_arg1 + ("Strength: +" + _local2)); break; case ENDURANCE: _arg1 = (_arg1 + ("Endurance: +" + _local2)); break; case DEXTERITY: _arg1 = (_arg1 + ("Dexterity: +" + _local2)); break; case INTELLECT: _arg1 = (_arg1 + ("Intellect: +" + _local2)); break; case POISON: _arg1 = (_arg1 + (("Poison: +" + _local2) + " (Weapons only)")); break; case REGEN_HEALTH: _arg1 = (_arg1 + ("Regenerate: +" + _local2)); break; case PROTECTION: _arg1 = (_arg1 + (("Protection: +" + _local2) + " (Armor only)")); break; case ENHANCEMENT: _arg1 = (_arg1 + (("Enhancement: +" + _local2) + "%")); break; case REPLENISH: _arg1 = (_arg1 + (("Replenishment: +" + _local2) + "%")); break; case REGEN_POWER: _arg1 = (_arg1 + ("Power Regeneration: +" + _local2)); break; case RESISTANCE: _arg1 = (_arg1 + (("Resistance: +" + _local2) + "%")); break; default: _arg1 = (_arg1 + "Blank Enchantment"); }; _arg1 = (_arg1 + "\n"); return (_arg1); } public function useOn(_arg1:Equipment, _arg2:PlayerCharacter, _arg3:Party):Boolean{ var _local5:*; var _local6:*; var _local4:Boolean; if ((_arg1 is Weapon)){ if (enchantType == PROTECTION){ return (false); }; } else { if (enchantType == POISON){ return (false); }; }; if (_arg1.enchantmentType){ return (false); }; _local4 = true; _arg1.enchantmentType = this.enchantType; _arg1.enchantmentValue = this.getValue(); switch (enchantType){ case STRENGTH: _arg1.mod_strength = (_arg1.mod_strength + _arg1.enchantmentValue); break; case ENDURANCE: _arg1.mod_endurance = (_arg1.mod_endurance + _arg1.enchantmentValue); break; case DEXTERITY: _arg1.mod_dexterity = (_arg1.mod_dexterity + _arg1.enchantmentValue); break; case INTELLECT: _arg1.mod_intellect = (_arg1.mod_intellect + _arg1.enchantmentValue); break; case POISON: _arg1.poisonDamage = (_arg1.poisonDamage + _arg1.enchantmentValue); break; case REGEN_HEALTH: _arg1.healthRegen = (_arg1.healthRegen + _arg1.enchantmentValue); break; case PROTECTION: _arg1.armor_rating = (_arg1.armor_rating + _arg1.enchantmentValue); break; case ENHANCEMENT: _arg1.multiplyStats(1.1); if ((_arg1 is Weapon)){ Weapon(_arg1).damage = Math.ceil((Weapon(_arg1).damage * 1.1)); }; break; case REPLENISH: _arg1.replenishing = (_arg1.replenishing + _arg1.enchantmentValue); break; case REGEN_POWER: _arg1.powerRegen = (_arg1.powerRegen + _arg1.enchantmentValue); break; case RESISTANCE: _arg1.resistPoison = (_arg1.resistPoison + _arg1.enchantmentValue); _arg1.resistStun = (_arg1.resistStun + _arg1.enchantmentValue); break; }; return (_local4); } public static function nameForEnchantment(_arg1:int):String{ switch (_arg1){ case STRENGTH: return ("Brawn"); case ENDURANCE: return ("Perseverance"); case DEXTERITY: return ("Alacrity"); case INTELLECT: return ("Acumen"); case POISON: return ("Toxicity"); case REGEN_HEALTH: return ("Recuperation"); case PROTECTION: return ("Protection"); case ENHANCEMENT: return ("Enhancement"); case REPLENISH: return ("Replenishment"); case REGEN_POWER: return ("Power"); case RESISTANCE: return ("Resistance"); default: return ("Emptiness"); }; } public static function iconIdForEnchantment(_arg1:int):int{ switch (_arg1){ case STRENGTH: return (8); case ENDURANCE: return (6); case DEXTERITY: return (5); case INTELLECT: return (7); case POISON: return (4); case REGEN_HEALTH: return (1); case PROTECTION: return (3); case ENHANCEMENT: return (11); case REPLENISH: return (9); case REGEN_POWER: return (2); case RESISTANCE: return (10); default: return (0); }; } public static function iconForEnchantment(_arg1:int):int{ var _local2:int = iconIdForEnchantment(_arg1); if (_local2){ return ((117 + _local2)); }; return (1); } } }//package
Section 122
//Encounter (Encounter) package { public class Encounter { public static const RESCUE:int = 1; public static const LURKER:int = 2; } }//package
Section 123
//EntryStairs (EntryStairs) package { import flash.display.*; public class EntryStairs extends Sprite { var enableRest:Boolean;// = false public var glow:StairsGlow; public function EntryStairs(_arg1:Boolean=false){ this.enableRest = _arg1; if (!_arg1){ removeGlow(); }; } public function removeGlow():void{ if (this.contains(glow)){ removeChild(glow); }; } } }//package
Section 124
//equip_bow_sound (equip_bow_sound) package { import flash.media.*; public dynamic class equip_bow_sound extends Sound { } }//package
Section 125
//equip_shield_sound (equip_shield_sound) package { import flash.media.*; public dynamic class equip_shield_sound extends Sound { } }//package
Section 126
//equip_sound (equip_sound) package { import flash.media.*; public dynamic class equip_sound extends Sound { } }//package
Section 127
//equip_staff_sound (equip_staff_sound) package { import flash.media.*; public dynamic class equip_staff_sound extends Sound { } }//package
Section 128
//equip_sword_sound (equip_sword_sound) package { import flash.media.*; public dynamic class equip_sword_sound extends Sound { } }//package
Section 129
//Equipment (Equipment) package { public class Equipment extends Item { const base_accuracy_bonus = 10; const purple_armor_multiplier = 1.5; const base_item_stat_bonus = 1; private var _slot:int;// = 0 protected var grey_name:String;// = "Damaged" var grey_chance;// = 5 var white_chance;// = 15 var green_chance;// = 55 var blue_chance;// = 24 var purple_chance;// = 1 private var _material:int;// = -1 private var _prefix:int;// = -1 private var _suffix:int;// = -1 protected var materials:Array; private var _whoEquips:uint;// = 0 private var _enchantmentType:int;// = 0 private var _enchantmentValue:int;// = 0 private var _vampiric_percent:int;// = 0 private var _causes_stun_percent:int;// = 0 private var _poisonDamage:int;// = 0 private var _powerRegen:int;// = 0 private var _healthRegen:int;// = 0 private var _quickRetreat:Boolean;// = false private var _accuracyBonus:int;// = 0 private var _resistPoison:int;// = 0 private var _resistStun:int;// = 0 private var _damageReflection:int;// = 0 private var _blind:int;// = 0 private var _lethality:int;// = 0 private var _damageBonusVsCreatureType:int;// = 0 private var _damageBonusVsCreatureModifier:Number;// = 1 private var _armorBonusVsCreatureType:int;// = 0 private var _armorBonusVsCreatureModifier:Number;// = 1 private var _armor_rating:int;// = 0 var base_armor_rating:int;// = 0 var base_armor_mod:int;// = 0 private var _replenishing:int;// = 0 private var _mod_strength:int;// = 0 private var _mod_endurance:int;// = 0 private var _mod_dexterity:int;// = 0 private var _mod_intellect:int;// = 0 private var _mod_quickness:int;// = 0 private var _mod_healing:int;// = 0 protected var prefixes:Array; protected var suffixes:Array; static const weapon = 0; static const offhand = 1; static const ring = 2; static const back = 3; static const boots = 4; static const legs = 5; static const armor = 6; static const gloves = 7; static const head = 8; static const gearSlots = 9; static const ARMOR_SCALE_CONSTANT:Number = 0.2; static const max_stat_for_purple = 4; static var allEquip:uint = 4095; static var conjurorEquip:uint = 64; static var barbarianEquip:uint = 32; static var mageEquip:uint = 16; static var warriorEquip:uint = 8; static var rogueEquip:uint = 4; static var clericEquip:uint = 2; static var rangerEquip:uint = 1; public function Equipment(){ materials = new Array(); super(); item_name = "Equipment"; slot = Equipment.gearSlots; item_level = 1; icon_frame = 1; } public function get slot():int{ return (this._slot); } public function set slot(_arg1:int):void{ this._slot = _arg1; } public function get material():int{ return (this._material); } public function set material(_arg1:int):void{ this._material = _arg1; } public function get prefix():int{ return (this._prefix); } public function set prefix(_arg1:int):void{ this._prefix = _arg1; } public function get suffix():int{ return (this._suffix); } public function set suffix(_arg1:int):void{ this._suffix = _arg1; } public function get whoEquips():uint{ return (this._whoEquips); } public function set whoEquips(_arg1:uint):void{ this._whoEquips = _arg1; } public function get enchantmentType():int{ return (this._enchantmentType); } public function set enchantmentType(_arg1:int):void{ this._enchantmentType = _arg1; } public function get enchantmentValue():int{ return (this._enchantmentValue); } public function set enchantmentValue(_arg1:int):void{ this._enchantmentValue = _arg1; } public function get vampiric_percent():int{ return (this._vampiric_percent); } public function set vampiric_percent(_arg1:int):void{ this._vampiric_percent = _arg1; } public function get causes_stun_percent():int{ return (this._causes_stun_percent); } public function set causes_stun_percent(_arg1:int):void{ this._causes_stun_percent = _arg1; } public function get poisonDamage():int{ return (this._poisonDamage); } public function set poisonDamage(_arg1:int):void{ this._poisonDamage = _arg1; } public function get powerRegen():int{ return (this._powerRegen); } public function set powerRegen(_arg1:int):void{ this._powerRegen = _arg1; } public function get healthRegen():int{ return (this._healthRegen); } public function set healthRegen(_arg1:int):void{ this._healthRegen = _arg1; } public function get quickRetreat():Boolean{ return (this._quickRetreat); } public function set quickRetreat(_arg1:Boolean):void{ this._quickRetreat = _arg1; } public function get accuracyBonus():int{ return (this._accuracyBonus); } public function set accuracyBonus(_arg1:int):void{ this._accuracyBonus = _arg1; } public function get resistPoison():int{ return (this._resistPoison); } public function set resistPoison(_arg1:int):void{ this._resistPoison = _arg1; } public function get resistStun():int{ return (this._resistStun); } public function set resistStun(_arg1:int):void{ this._resistStun = _arg1; } public function get damageReflection():int{ return (this._damageReflection); } public function set damageReflection(_arg1:int):void{ this._damageReflection = _arg1; } public function get blind():int{ return (this._blind); } public function set blind(_arg1:int):void{ this._blind = _arg1; } public function get lethality():int{ return (this._lethality); } public function set lethality(_arg1:int):void{ this._lethality = _arg1; } public function get damageBonusVsCreatureType():int{ return (this._damageBonusVsCreatureType); } public function set damageBonusVsCreatureType(_arg1:int):void{ this._damageBonusVsCreatureType = _arg1; } public function get damageBonusVsCreatureModifier():Number{ return (this._damageBonusVsCreatureModifier); } public function set damageBonusVsCreatureModifier(_arg1:Number):void{ this._damageBonusVsCreatureModifier = _arg1; } public function get armorBonusVsCreatureType():int{ return (this._armorBonusVsCreatureType); } public function set armorBonusVsCreatureType(_arg1:int):void{ this._armorBonusVsCreatureType = _arg1; } public function get armorBonusVsCreatureModifier():Number{ return (this._armorBonusVsCreatureModifier); } public function set armorBonusVsCreatureModifier(_arg1:Number):void{ this._armorBonusVsCreatureModifier = _arg1; } public function get armor_rating():int{ return (this._armor_rating); } public function set armor_rating(_arg1:int):void{ this._armor_rating = _arg1; } public function get replenishing():int{ return (this._replenishing); } public function set replenishing(_arg1:int):void{ this._replenishing = _arg1; } public function scaleArmorForLevel(_arg1:int):int{ return (armorScale(_arg1, item_level)); } public function setHealthRegen(_arg1:int=5):void{ this.healthRegen = (this.healthRegen + scaleHealthRegen(_arg1, item_level)); } public function setPoisonDamage(_arg1:int=5):void{ this.poisonDamage = (this.poisonDamage + scalePoisonDamage(_arg1, item_level)); } public function adjustStat(_arg1:int, _arg2:int, _arg3:Boolean=false):int{ var _local4:Number = 0; if (_arg3){ _local4 = ((item_level - 1) / DungeonMain.MAX_LEVEL); } else { _local4 = Math.min(1, ((item_level - 1) / DungeonMain.MAX_LEVEL)); }; var _local5:* = Math.round((_arg1 + (_local4 * Math.abs((_arg2 - _arg1))))); return (_local5); } public function setVampiric(_arg1:int=5, _arg2:int=7):void{ this.vampiric_percent = (this.vampiric_percent + adjustStat(_arg1, _arg2)); } public function setStunChance(_arg1:int=5, _arg2:int=10):void{ this.causes_stun_percent = (this.causes_stun_percent + adjustStat(_arg1, _arg2)); } public function setAccuracy(_arg1:int=5, _arg2:int=15):void{ this.accuracyBonus = (this.accuracyBonus + adjustStat(_arg1, _arg2)); } public function setBlind(_arg1:int=10, _arg2:int=20):void{ this.blind = (this.blind + adjustStat(_arg1, _arg2)); } public function setLethality(_arg1:int=5, _arg2:int=10):void{ this.lethality = (this.lethality + adjustStat(_arg1, _arg2)); } public function setQuickness(_arg1:int=3, _arg2:int=10):void{ this.mod_quickness = (this.mod_quickness + adjustStat(_arg1, _arg2)); } public function setPowerRegen(_arg1:int=1, _arg2:int=4):void{ this.powerRegen = (this.powerRegen + adjustStat(_arg1, _arg2)); } public function setResistPoison(_arg1:int=20, _arg2:int=30):void{ this.resistPoison = (this.resistPoison + adjustStat(_arg1, _arg2)); } public function setResistStun(_arg1:int=20, _arg2:int=30):void{ this.resistStun = (this.resistStun + adjustStat(_arg1, _arg2)); } public function setDamageReflection(_arg1:int=25, _arg2:int=45):void{ this.damageReflection = (this.damageReflection + adjustStat(_arg1, _arg2)); } public function setStrength(_arg1:int=1, _arg2:int=3):void{ this.mod_strength = (this.mod_strength + adjustStat(_arg1, _arg2, true)); } public function setDexterity(_arg1:int=1, _arg2:int=3):void{ this.mod_dexterity = (this.mod_dexterity + adjustStat(_arg1, _arg2, true)); } public function setIntellect(_arg1:int=1, _arg2:int=3):void{ this.mod_intellect = (this.mod_intellect + adjustStat(_arg1, _arg2, true)); } public function setEndurance(_arg1:int=1, _arg2:int=3):void{ this.mod_endurance = (this.mod_endurance + adjustStat(_arg1, _arg2, true)); } public function SetRarity(_arg1:int){ if (_arg1 >= 0){ this.item_rarity = _arg1; return; }; var _local2:int = dmf.randomNum(1, 100); if (_local2 <= grey_chance){ item_rarity = Item.grey; } else { if (_local2 <= (white_chance + grey_chance)){ item_rarity = Item.white; } else { if (_local2 <= ((green_chance + grey_chance) + white_chance)){ item_rarity = Item.green; } else { if (_local2 <= (((blue_chance + green_chance) + grey_chance) + white_chance)){ item_rarity = Item.blue; } else { item_rarity = Item.purple; }; }; }; }; } public function generateItem(_arg1:int):void{ } override public function getItemTypeString(){ return ("Equipment"); } public function get mod_strength():int{ return (this._mod_strength); } public function set mod_strength(_arg1:int):void{ this._mod_strength = _arg1; } public function get mod_endurance():int{ return (this._mod_endurance); } public function set mod_endurance(_arg1:int):void{ this._mod_endurance = _arg1; } public function get mod_dexterity():int{ return (this._mod_dexterity); } public function set mod_dexterity(_arg1:int):void{ this._mod_dexterity = _arg1; } public function get mod_intellect():int{ return (this._mod_intellect); } public function set mod_intellect(_arg1:int):void{ this._mod_intellect = _arg1; } public function get mod_quickness():int{ return (this._mod_quickness); } public function set mod_quickness(_arg1:int):void{ this._mod_quickness = _arg1; } public function get mod_healing():int{ return (this._mod_healing); } public function set mod_healing(_arg1:int):void{ this._mod_healing = _arg1; } public function getItemModifiers():void{ prefixes = new Array(); prefixes.push(["Runed", 2]); suffixes = new Array(); suffixes.push(["Resilience", base_item_stat_bonus]); suffixes.push(["Insight", base_item_stat_bonus]); suffixes.push(["Speed", 5]); } public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Runed"){ setPowerRegen(); return; }; if (prefixes[_local1][0] == "Vampiric"){ setVampiric(); return; }; if (prefixes[_local1][0] == "Staggering"){ setStunChance(); return; }; if (prefixes[_local1][0] == "Unerring"){ setAccuracy(); return; }; if (prefixes[_local1][0] == "Venomous"){ setPoisonDamage(); return; }; if (prefixes[_local1][0] == "Blinding"){ setBlind(); return; }; if (prefixes[_local1][0] == "Soothing"){ setHealthRegen(); return; }; if (prefixes[_local1][0] == "Purifying"){ setResistPoison(); return; }; if (prefixes[_local1][0] == "Thick"){ armor_rating = Math.ceil((armor_rating * prefixes[_local1][1])); return; }; } public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; if (suffixes[_local1][0] == "Reflection"){ setDamageReflection(); return; }; if (suffixes[_local1][0] == "Tenacity"){ setResistStun(); return; }; if (suffixes[_local1][0] == "Accuracy"){ setAccuracy(); return; }; if (suffixes[_local1][0] == "Might"){ setStrength(); return; }; if (suffixes[_local1][0] == "Resilience"){ setEndurance(); return; }; if (suffixes[_local1][0] == "Insight"){ setIntellect(); return; }; if (suffixes[_local1][0] == "Deftness"){ setDexterity(); return; }; if (suffixes[_local1][0] == "Speed"){ setQuickness(); return; }; if (suffixes[_local1][0] == "Lethality"){ setLethality(); return; }; if (suffixes[_local1][0] == "Discretion"){ quickRetreat = true; return; }; } override public function itemStatsString(_arg1:String):String{ if (replenishing){ _arg1 = (_arg1 + (("Replenishes " + replenishing) + "% health and power at the end of every battle\n")); }; if (damageBonusVsCreatureType == MonsterCharacter.undead){ _arg1 = (_arg1 + (Math.floor((damageBonusVsCreatureModifier * 100)) + "% damage to undead\n")); }; if (damageBonusVsCreatureType == MonsterCharacter.greenskin){ _arg1 = (_arg1 + (Math.floor((damageBonusVsCreatureModifier * 100)) + "% damage to greenskins\n")); }; if (damageBonusVsCreatureType == MonsterCharacter.creature){ _arg1 = (_arg1 + (Math.floor((damageBonusVsCreatureModifier * 100)) + "% damage to deep creatures\n")); }; if (damageBonusVsCreatureType == MonsterCharacter.human){ _arg1 = (_arg1 + (Math.floor((damageBonusVsCreatureModifier * 100)) + "% damage to humans\n")); }; if (damageBonusVsCreatureType == MonsterCharacter.dwarf){ _arg1 = (_arg1 + (Math.floor((damageBonusVsCreatureModifier * 100)) + "% damage to dwarves\n")); }; if (armorBonusVsCreatureType == MonsterCharacter.undead){ _arg1 = (_arg1 + (("+" + Math.floor(((armorBonusVsCreatureModifier * 100) - 100))) + "% normal damage resistance versus undead\n")); }; if (armorBonusVsCreatureType == MonsterCharacter.greenskin){ _arg1 = (_arg1 + (("+" + Math.floor(((armorBonusVsCreatureModifier * 100) - 100))) + "% normal damage resistance versus greenskins\n")); }; if (armorBonusVsCreatureType == MonsterCharacter.creature){ _arg1 = (_arg1 + (("+" + Math.floor(((armorBonusVsCreatureModifier * 100) - 100))) + "% normal damage resistance versus deep creatures\n")); }; if (armorBonusVsCreatureType == MonsterCharacter.human){ _arg1 = (_arg1 + (("+" + Math.floor(((armorBonusVsCreatureModifier * 100) - 100))) + "% normal damage resistance versus humans\n")); }; if (armorBonusVsCreatureType == MonsterCharacter.dwarf){ _arg1 = (_arg1 + (("+" + Math.floor(((armorBonusVsCreatureModifier * 100) - 100))) + "% normal damage resistance versus dwarves\n")); }; if (mod_strength > 0){ _arg1 = (_arg1 + (("+" + mod_strength) + " Strength\n")); }; if (mod_endurance > 0){ _arg1 = (_arg1 + (("+" + mod_endurance) + " Endurance\n")); }; if (mod_dexterity > 0){ _arg1 = (_arg1 + (("+" + mod_dexterity) + " Dexterity\n")); }; if (mod_intellect > 0){ _arg1 = (_arg1 + (("+" + mod_intellect) + " Intellect\n")); }; if (causes_stun_percent > 0){ _arg1 = (_arg1 + (String(causes_stun_percent) + "% chance to stun target\n")); }; if (blind > 0){ _arg1 = (_arg1 + (("Reduces target's accuracy by " + blind) + "%\n")); }; if (lethality > 0){ _arg1 = (_arg1 + (lethality + "% chance to kill target\n")); }; if (powerRegen > 0){ _arg1 = (_arg1 + (("+" + powerRegen) + " power regeneration\n")); }; if (healthRegen > 0){ _arg1 = (_arg1 + (("+" + healthRegen) + " health regeneration\n")); }; if (damageReflection > 0){ _arg1 = (_arg1 + (damageReflection + "% damage reflection\n")); }; if (resistPoison != 0){ _arg1 = (_arg1 + (resistPoison + "% reduced damage from poison\n")); }; if (resistStun != 0){ _arg1 = (_arg1 + (resistStun + "% chance to resist stun\n")); }; if (vampiric_percent > 0){ _arg1 = (_arg1 + (("Drain health (" + vampiric_percent) + "% of damage)\n")); }; if (poisonDamage > 0){ _arg1 = (_arg1 + (("Apply " + poisonDamage) + " poison damage on hit\n")); }; if (accuracyBonus){ _arg1 = (_arg1 + (("+" + accuracyBonus) + " chance to hit\n")); }; if (mod_quickness > 0){ _arg1 = (_arg1 + (("+" + mod_quickness) + " Quickness\n")); } else { if (mod_quickness < 0){ _arg1 = (_arg1 + (mod_quickness + " Quickness\n")); }; }; if (quickRetreat){ _arg1 = (_arg1 + "Wearer may retreat instantly\n"); }; return (_arg1); } public function usableString():String{ var _local1:String; if (whoEquips == allEquip){ return ("Usable: All"); }; _local1 = ""; if ((warriorEquip & whoEquips) == warriorEquip){ _local1 = (_local1 + "Warrior, "); }; if ((rogueEquip & whoEquips) == rogueEquip){ _local1 = (_local1 + "Rogue, "); }; if ((clericEquip & whoEquips) == clericEquip){ _local1 = (_local1 + "Cleric, "); }; if ((rangerEquip & whoEquips) == rangerEquip){ _local1 = (_local1 + "Ranger, "); }; if ((mageEquip & whoEquips) == mageEquip){ _local1 = (_local1 + "Mage, "); }; if ((barbarianEquip & whoEquips) == barbarianEquip){ _local1 = (_local1 + "Barbarian, "); }; if ((conjurorEquip & whoEquips) == conjurorEquip){ _local1 = (_local1 + "Conjuror, "); }; if (_local1 == ""){ return ("Usable: None"); }; _local1 = _local1.substr(0, (_local1.length - 2)); return (("Usable: " + _local1)); } public function rollForPrefix(_arg1:int):int{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; if ((((_arg1 == Item.grey)) || ((_arg1 == Item.white)))){ return (-1); }; _local2 = Math.ceil((100 / prefixes.length)); _local3 = dmf.randomNum(0, 100); _local4 = 0; while (_local4 < prefixes.length) { _local5 = ((_local4 + 1) * _local2); if (_local3 <= _local5){ return (_local4); }; _local4++; }; return (-1); } public function rollForSuffix(_arg1:int):int{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; if ((((_arg1 == Item.grey)) || ((_arg1 == Item.white)))){ return (-1); }; _local2 = Math.ceil((100 / suffixes.length)); _local3 = dmf.randomNum(0, 100); _local4 = 0; while (_local4 < suffixes.length) { _local5 = ((_local4 + 1) * _local2); if (_local3 <= _local5){ return (_local4); }; _local4++; }; return (-1); } public function rollForMaterial(_arg1:int, _arg2:Array):int{ var _local6:*; if (_arg1 == Item.grey){ return (-1); }; if (_arg1 >= Item.purple){ return (-1); }; var _local3:* = Math.ceil((100 / _arg2.length)); var _local4:* = dmf.randomNum(0, 100); var _local5:* = 0; while (_local5 < _arg2.length) { _local6 = ((_local5 + 1) * _local3); if (_local4 <= _local6){ return (_local5); }; _local5++; }; return (1); } override public function itemData():ItemData{ var _local1:ItemData = new ItemData(); _local1.item_level = this.item_level; _local1.item_rarity = this.item_rarity; _local1.purple_num = this.purple_num; _local1.material = this.material; _local1.prefix = this.prefix; _local1.suffix = this.suffix; return (_local1); } override public function getWorth():int{ var _local1:* = 100; var _local2:Number = _local1; var _local3:Number = (1 + ((item_level * ITEM_VALUE_INCREASE_PER_LEVEL) / 100)); _local2 = (_local2 * _local3); switch (item_rarity){ case Item.grey: _local2 = (_local2 * 0.75); break; case Item.white: default: break; case Item.green: _local2 = (_local2 * 1.75); break; case Item.blue: _local2 = (_local2 * 2.5); break; case Item.purple: _local2 = (_local2 * 9); break; case Item.orange: _local2 = (_local2 * 12); break; }; if (material > 0){ _local2 = (_local2 * (1 + (material * 0.05))); }; _local2 = (_local2 * getModForSlot(slot)); if (powerRegen){ _local2 = (_local2 * 1.15); }; if (lethality){ _local2 = (_local2 * 1.1); }; if (enchantmentType){ if (enchantmentType >= Enchantment.ENHANCEMENT){ _local2 = (_local2 * 1.1); } else { _local2 = (_local2 * 1.05); }; }; return (Math.round(_local2)); } public function getModForSlot(_arg1:int):Number{ var _local2:* = 1; if (_arg1 == Equipment.boots){ _local2 = 1; } else { if (_arg1 == Equipment.gloves){ _local2 = 1; } else { if (_arg1 == Equipment.legs){ _local2 = 1.2; } else { if (_arg1 == Equipment.armor){ _local2 = 1.5; } else { if (_arg1 == Equipment.head){ _local2 = 1.2; } else { if (_arg1 == Equipment.weapon){ _local2 = 1.5; } else { if (_arg1 == Equipment.offhand){ _local2 = 1.2; } else { if (_arg1 == Equipment.ring){ _local2 = 1.3; } else { if (_arg1 == Equipment.back){ _local2 = 1.1; }; }; }; }; }; }; }; }; }; return (_local2); } public function multiplyStats(_arg1:Number):void{ mod_strength = Math.ceil((mod_strength * _arg1)); mod_endurance = Math.ceil((mod_endurance * _arg1)); mod_dexterity = Math.ceil((mod_dexterity * _arg1)); mod_intellect = Math.ceil((mod_intellect * _arg1)); mod_quickness = (mod_quickness + Math.ceil(Math.abs((mod_quickness * (_arg1 - 1))))); mod_healing = Math.ceil((mod_healing * _arg1)); vampiric_percent = Math.ceil((vampiric_percent * _arg1)); causes_stun_percent = Math.ceil((causes_stun_percent * _arg1)); poisonDamage = Math.ceil((poisonDamage * _arg1)); blind = Math.ceil((blind * _arg1)); lethality = Math.ceil((lethality * _arg1)); powerRegen = Math.ceil((powerRegen * _arg1)); healthRegen = Math.ceil((healthRegen * _arg1)); replenishing = Math.ceil((replenishing * _arg1)); accuracyBonus = Math.ceil((accuracyBonus * _arg1)); resistPoison = (resistPoison + Math.ceil(Math.abs((resistPoison * (_arg1 - 1))))); resistStun = Math.ceil((resistStun * _arg1)); damageReflection = Math.ceil((damageReflection * _arg1)); damageBonusVsCreatureModifier = (damageBonusVsCreatureModifier * _arg1); armorBonusVsCreatureModifier = (armorBonusVsCreatureModifier * _arg1); armor_rating = Math.ceil((armor_rating * _arg1)); } public static function armorScale(_arg1:int, _arg2:int):int{ return (Math.ceil((_arg1 * (1 + ((_arg2 - 1) * Equipment.ARMOR_SCALE_CONSTANT))))); } public static function scaleHealthRegen(_arg1:int, _arg2:int):int{ return (Math.round((_arg1 * (PlayerCharacter.baseHealthForLevel(_arg2) / 100)))); } public static function scalePoisonDamage(_arg1:int, _arg2:int):int{ return (Math.round((MonsterCharacter.getHealthMax(_arg2) * (_arg1 / 100)))); } } }//package
Section 130
//ErrorDialog (ErrorDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class ErrorDialog extends MovieClip { public var bg:MovieClip; public var yes_btn:MovieClip; public var dlg_text:TextField; public var dlg_title:TextField; public function ErrorDialog(_arg1:String="", _arg2:String=""):void{ if (_arg1.length){ setTitle(_arg1); }; if (_arg2.length){ setText(_arg2); }; yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); dlg_title.y = (bg.y + 5); dlg_text.y = (dlg_title.y + 40); yes_btn.y = ((dlg_text.y + dlg_text.textHeight) + 18); trace(("old bg.height = " + bg.height)); var _local3:Number = (bg.height / 200); var _local4:int = ((yes_btn.y - bg.y) + 26); bg.height = Math.round((_local4 * _local3)); trace(("bg.height = " + bg.height)); var _local5:int = bg.y; bg.y = (((DungeonMain.APP_HEIGHT - _local4) - 130) / 2); var _local6:int = (_local5 - bg.y); dlg_title.y = (dlg_title.y - _local6); dlg_text.y = (dlg_text.y - _local6); yes_btn.y = (yes_btn.y - _local6); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } public function setTitle(_arg1:String):void{ dlg_title.text = _arg1; dm.embolden(dlg_title); } public function setText(_arg1:String):void{ dlg_text.text = _arg1; } function clickOkay(_arg1:MouseEvent):void{ if (stage != null){ stage.removeChild(this); cleanup(); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.ENTER)) || ((_arg1.keyCode == Keyboard.ESCAPE)))){ clickOkay(null); }; } } }//package
Section 131
//ExitStairs (ExitStairs) package { import flash.display.*; public dynamic class ExitStairs extends MovieClip { } }//package
Section 132
//FadeFromPage (FadeFromPage) package { import flash.display.*; public dynamic class FadeFromPage extends MovieClip { public function FadeFromPage(){ addFrameScript(39, frame40); } function frame40(){ this.stop(); if (parent != null){ parent.removeChild(this); }; } } }//package
Section 133
//FadeScreen (FadeScreen) package { import flash.display.*; public dynamic class FadeScreen extends MovieClip { public function FadeScreen(){ addFrameScript(5, frame6); } function frame6(){ this.gotoAndStop(6); } } }//package
Section 134
//FadeScreenTransition (FadeScreenTransition) package { import flash.display.*; public class FadeScreenTransition extends MovieClip { private const stopFrame = 15; private var ready:Boolean;// = false private var oldChild:DisplayObjectContainer; private var newChild:DisplayObjectContainer; public function FadeScreenTransition(_arg1:DisplayObjectContainer=null, _arg2:DisplayObjectContainer=null):void{ addFrameScript(14, frame15, 15, frame16, 40, frame41); this.ready = false; oldChild = _arg1; newChild = _arg2; } public function setReady():void{ this.ready = true; if (this.currentFrame == stopFrame){ this.gotoAndPlay("continue"); }; } public function beginContinue():void{ var _local1:*; if (this.ready){ _local1 = oldChild.parent; if (_local1 != null){ _local1.removeChild(oldChild); _local1.addChild(newChild); }; }; } public function remove():void{ if (parent != null){ parent.removeChild(this); }; } function frame15(){ } function frame16(){ this.beginContinue(); } function frame41(){ this.stop(); this.remove(); } } }//package
Section 135
//FadeToBlack (FadeToBlack) package { import flash.display.*; public dynamic class FadeToBlack extends MovieClip { public function FadeToBlack(){ addFrameScript(14, frame15); } function frame15(){ this.stop(); } } }//package
Section 136
//feardeath_effect (feardeath_effect) package { import flash.display.*; public dynamic class feardeath_effect extends MovieClip { public function feardeath_effect(){ addFrameScript(0, frame1, 34, frame35, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.curse, 0.75); } function frame35(){ this.stop(); } function frame45(){ this.stop(); } } }//package
Section 137
//fields_of_honor_loop01 (fields_of_honor_loop01) package { import flash.media.*; public dynamic class fields_of_honor_loop01 extends Sound { } }//package
Section 138
//fire_effect (fire_effect) package { import flash.display.*; public dynamic class fire_effect extends MovieClip { public var flames:fire_scroll; public function fire_effect(){ addFrameScript(0, frame1, 49, frame50); } function frame1(){ dm.sound.play(SoundControl.flames); this.flames.x = DungeonMain.RandomNum(0, 240); } function frame50(){ this.stop(); } } }//package
Section 139
//fire_scroll (fire_scroll) package { import flash.display.*; public dynamic class fire_scroll extends MovieClip { public function fire_scroll(){ addFrameScript(44, frame45); } function frame45(){ this.gotoAndStop(45); } } }//package
Section 140
//flames_sound (flames_sound) package { import flash.media.*; public dynamic class flames_sound extends Sound { } }//package
Section 141
//freeze_sound (freeze_sound) package { import flash.media.*; public dynamic class freeze_sound extends Sound { } }//package
Section 142
//frozen_effect (frozen_effect) package { import flash.display.*; public dynamic class frozen_effect extends MovieClip { public function frozen_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.freeze); } function frame45(){ this.stop(); } } }//package
Section 143
//frozen_wastelands_loop02 (frozen_wastelands_loop02) package { import flash.media.*; public dynamic class frozen_wastelands_loop02 extends Sound { } }//package
Section 144
//gain_both_effect (gain_both_effect) package { import flash.display.*; public dynamic class gain_both_effect extends MovieClip { public function gain_both_effect(){ addFrameScript(44, frame45); } function frame45(){ this.stop(); } } }//package
Section 145
//gain_health_effect (gain_health_effect) package { import flash.display.*; public dynamic class gain_health_effect extends MovieClip { public function gain_health_effect(){ addFrameScript(20, frame21, 44, frame45); } function frame21(){ this.stop(); } function frame45(){ this.stop(); } } }//package
Section 146
//gain_power_effect (gain_power_effect) package { import flash.display.*; public dynamic class gain_power_effect extends MovieClip { public function gain_power_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.powerUp); } function frame45(){ this.stop(); } } }//package
Section 147
//GlobalVolume (GlobalVolume) package { import flash.events.*; import flash.media.*; import flash.utils.*; public class GlobalVolume { static const fade_in_time = 1000; static const fade_out_time = 500; static const sound_fade_steps = 20; static const volumeOff = 0; static const volumeLow = 0.15; static const volumeMid = 0.5; static const volumeFull = 1; static var volumeSetting:Number = 1; static var fadeFromSetting:Number = 0; static var fadeTimer:Timer; public static function setVolume(_arg1:Number, _arg2:Boolean=false):void{ fadeFromSetting = volumeSetting; volumeSetting = _arg1; if (_arg2){ beginFade(); } else { SoundMixer.soundTransform = new SoundTransform(_arg1); }; } public static function mute():void{ setVolume(volumeOff); } public static function beginFade():void{ var _local1:*; if (volumeSetting == fadeFromSetting){ return; }; if (volumeSetting > fadeFromSetting){ _local1 = fade_in_time; } else { _local1 = fade_out_time; }; SoundMixer.soundTransform = new SoundTransform(fadeFromSetting); fadeTimer = new Timer(Math.round((_local1 / sound_fade_steps)), sound_fade_steps); fadeTimer.addEventListener(TimerEvent.TIMER, fadeStep); fadeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, fadeDone); fadeTimer.start(); } static function fadeStep(_arg1:TimerEvent):void{ var _local2:* = ((volumeSetting - fadeFromSetting) / sound_fade_steps); var _local3:* = (SoundMixer.soundTransform.volume + _local2); SoundMixer.soundTransform = new SoundTransform(_local3); } static function fadeDone(_arg1:TimerEvent):void{ fadeTimer.removeEventListener(TimerEvent.TIMER, fadeStep); fadeTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, fadeDone); SoundMixer.soundTransform = new SoundTransform(volumeSetting); } } }//package
Section 148
//GoldDisplay (GoldDisplay) package { import flash.display.*; import flash.text.*; public class GoldDisplay extends Sprite { public var goldLabel:TextField; public var goldIcon:Sprite; public function GoldDisplay():void{ } public function setGold(_arg1:int):void{ goldLabel.text = String(_arg1); } } }//package
Section 149
//GreenBar (GreenBar) package { import flash.display.*; public dynamic class GreenBar extends Sprite { } }//package
Section 150
//heal1_sound (heal1_sound) package { import flash.media.*; public dynamic class heal1_sound extends Sound { } }//package
Section 151
//healeffect (healeffect) package { import flash.display.*; public dynamic class healeffect extends MovieClip { public function healeffect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.heal); } function frame45(){ this.stop(); } } }//package
Section 152
//healeffect_green (healeffect_green) package { import flash.display.*; public dynamic class healeffect_green extends MovieClip { } }//package
Section 153
//HealthBar (HealthBar) package { import flash.display.*; public dynamic class HealthBar extends MovieClip { public var lightbar:RedBar; public var bar:RedBar; } }//package
Section 154
//HeavyArmor (HeavyArmor) package { public class HeavyArmor extends Armor { public function HeavyArmor(){ type = Armor.heavy; mod_quickness = (mod_quickness - 5); whoEquips = (Equipment.warriorEquip + Equipment.clericEquip); base_armor_rating = 27; grey_name = "Battered"; materials.push("Iron", "Steel", "Damascene", "Mithril", "Magesteel", "Planeforged"); } override public function getWorth():int{ return (Math.round((1.2 * super.getWorth()))); } override public function getItemTypeString(){ return ("Heavy Armor"); } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Lightweight", 2]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Lightweight"){ mod_quickness = (mod_quickness + prefixes[_local1][1]); if (mod_quickness > 0){ mod_quickness = 0; }; return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ return (super.itemStatsString(_arg1)); } } }//package
Section 155
//hellwars_loop02 (hellwars_loop02) package { import flash.media.*; public dynamic class hellwars_loop02 extends Sound { } }//package
Section 156
//HelpButton (HelpButton) package { import flash.events.*; import flash.display.*; public class HelpButton extends MovieClip { var helpscreen:MovieClip; var target:DisplayObjectContainer; public function HelpButton(){ addEventListener(MouseEvent.MOUSE_DOWN, clicked); } public function clicked(_arg1:MouseEvent){ if (parent == null){ return; }; target = parent; if ((parent is DungeonInterface)){ helpscreen = new HelpScreenDungeon(); target = parent.parent; } else { if ((parent is Inventory)){ helpscreen = new HelpScreenInventory(); } else { if ((parent is Battlefield)){ helpscreen = new HelpScreenBattlefield(); } else { if ((parent is Shop)){ helpscreen = new HelpScreenShop(); }; }; }; }; if (helpscreen == null){ return; }; helpscreen.addEventListener(MouseEvent.MOUSE_DOWN, closeHelp); target.addChild(helpscreen); } function closeHelp(_arg1:MouseEvent):void{ if (helpscreen == null){ return; }; if (target == null){ target = parent; }; helpscreen.removeEventListener(MouseEvent.MOUSE_DOWN, closeHelp); if (target.contains(helpscreen)){ target.removeChild(helpscreen); }; helpscreen = null; } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_DOWN, clicked); } } }//package
Section 157
//HelpScreenBattlefield (HelpScreenBattlefield) package { import flash.display.*; public dynamic class HelpScreenBattlefield extends MovieClip { } }//package
Section 158
//HelpScreenDungeon (HelpScreenDungeon) package { import flash.display.*; public dynamic class HelpScreenDungeon extends MovieClip { } }//package
Section 159
//HelpScreenInventory (HelpScreenInventory) package { import flash.display.*; public dynamic class HelpScreenInventory extends MovieClip { } }//package
Section 160
//HelpScreenShop (HelpScreenShop) package { import flash.display.*; public dynamic class HelpScreenShop extends MovieClip { } }//package
Section 161
//hide3_sound (hide3_sound) package { import flash.media.*; public dynamic class hide3_sound extends Sound { } }//package
Section 162
//HidingEffect (HidingEffect) package { import flash.display.*; public dynamic class HidingEffect extends MovieClip { } }//package
Section 163
//HintDialog (HintDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class HintDialog extends MovieClip { var checkboxEnabled:Boolean;// = true public var bg:MovieClip; public var yes_btn:MovieClip; public var showCheck:dCheckBox; public var dlg_text:TextField; public var dlg_title:TextField; public function HintDialog(_arg1:String="", _arg2:String="", _arg3:Boolean=true, _arg4:Boolean=false){ if (_arg1.length){ setTitle(_arg1); }; if (_arg2.length){ setText(_arg2); }; yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); if (_arg3){ showCheck.setChecked(DungeonMain.showHints); showCheck.setDescription("Show hints and tips"); } else { removeChild(showCheck); checkboxEnabled = false; }; dlg_text.mouseEnabled = false; dlg_title.y = (bg.y + 5); dlg_text.y = (dlg_title.y + 40); yes_btn.y = ((dlg_text.y + dlg_text.textHeight) + 18); showCheck.y = yes_btn.y; trace(("old bg.height = " + bg.height)); var _local5:Number = (bg.height / 200); var _local6:int = ((yes_btn.y - bg.y) + 26); bg.height = Math.round((_local6 * _local5)); trace(("bg.height = " + bg.height)); var _local7:int = bg.y; if (!_arg4){ bg.y = (((DungeonMain.APP_HEIGHT - _local6) - 130) / 2); } else { bg.y = ((DungeonMain.APP_HEIGHT - _local6) / 2); }; var _local8:* = (_local7 - bg.y); dlg_title.y = (dlg_title.y - _local8); dlg_text.y = (dlg_text.y - _local8); yes_btn.y = (yes_btn.y - _local8); showCheck.y = (showCheck.y - _local8); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); showCheck.cleanup(); } public function setTitle(_arg1:String):void{ dlg_title.text = _arg1; dm.embolden(dlg_title); } public function setText(_arg1:String):void{ dlg_text.text = _arg1; } function clickOkay(_arg1:MouseEvent):void{ DungeonMain.showHints = showCheck.checked; yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); if (parent != null){ parent.removeChild(this); } else { if ((((dm.stage == null)) && (!((stage == null))))){ dm.stage = stage; }; if (((!((dm.stage == null))) && (dm.stage.contains(this)))){ dm.stage.removeChild(this); }; }; if (dm.main != null){ dm.main.saveInterface(); }; cleanup(); } function reportKeyDown(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.ENTER)) || ((_arg1.keyCode == Keyboard.ESCAPE)))){ clickOkay(null); }; } } }//package
Section 164
//Horde (Horde) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class Horde extends MovieClip { var tooltip:HordeTooltip; public var members:Array; public var room:DungeonRoom; public var defeated:Boolean;// = false public var race:int;// = 1 public var level:int;// = 1 public var boss:int;// = 0 public var legendary:Boolean;// = false public var icon:HordeIcon; public var bg:MovieClip; private var mousingOver:Boolean;// = false private var mouseOverFrames:int;// = 0 private var mousedOverEvent:MouseEvent; static const undead = 1; static const greenskins = 2; static const creatures = 4; static const cultists = 8; static const dwarves = 16; static const special = 32; static const max_size = 6; public function Horde(_arg1:int=32, _arg2:int=1, _arg3:int=0, _arg4:DungeonRoom=null, _arg5:Boolean=false, _arg6:Boolean=false):void{ var _local8:MonsterCharacter; var _local12:int; var _local13:MonsterCharacter; var _local14:MonsterCharacter; var _local15:int; var _local16:Boolean; var _local17:Array; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; members = new Array(); super(); addFrameScript(0, frame1, 14, frame15, 29, frame30); var _local7:int; var _local9:* = dmf.randomNum(2, 4); var _local10 = -1; this.race = _arg1; this.level = _arg2; this.boss = _arg3; this.room = _arg4; this.legendary = _arg6; var _local11:int = dm.main.pc_party.campaign; if (legendary){ icon.gotoAndStop(3); _local12 = dmf.randomNum(0, 100); if (DungeonMain.BETA){ _local12 = 99; }; if (_local12 < 33){ _local8 = new mGorgon(_arg2); _local8.pos = 2; _local10 = 1; members.push(_local8); } else { if (_local12 < 66){ _local8 = new mMinotaur(_arg2); _local8.pos = 5; _local10 = 1; members.push(_local8); } else { _local8 = new mHydraBody(_arg2); _local8.pos = 2; members.push(_local8); _local13 = new mHydraHead(_arg2); _local13.pos = 4; members.push(_local13); _local14 = new mHydraHead(_arg2); _local14.pos = 6; members.push(_local14); _local10 = 3; }; }; } else { if (boss > 0){ icon.gotoAndStop(2); if (!_arg5){ if (((((_arg2 % DungeonMain.MAX_LEVEL) == 0)) && (!((_local11 == Campaign.DELUXE))))){ if (_local11 == Campaign.ORIGINAL){ _local8 = new mDemon(_arg2); _local8.pos = 2; _local10 = 1; } else { _local15 = dmf.randomNum(0, 300); if (_local15 < 150){ if (_local15 < 75){ _local8 = new mDemon(_arg2); _local8.pos = 2; _local10 = 1; } else { _local10 = addDeluxeBoss(); }; } else { _local8 = getBoss(true); _local8.pos = 5; members.push(_local8); _local8 = getBoss(false); _local8.pos = 2; _local10 = 6; this.boss = 2; }; }; } else { _local16 = true; if (_local11 == Campaign.ORIGINAL){ if (_arg2 <= 4){ _local16 = true; } else { if (_arg2 <= 8){ _local16 = false; } else { _local16 = (dmf.randomNum(0, 1000) > 500); }; }; } else { if (_arg2 == 1){ _local16 = true; } else { _local16 = (dmf.randomNum(0, 1000) > 500); }; }; _local8 = getBoss(_local16); _local10 = 6; }; }; if (((!((_local8 == null))) && (!(_arg5)))){ if (_local16){ _local8.pos = 5; } else { _local8.pos = 2; }; members.push(_local8); _local7 = _local8.pos; _local9 = (_local9 + 2); }; }; _local9 = (_local9 + getRoomSizeModifier()); if ((_arg2 % DungeonMain.MAX_LEVEL) == 0){ _local9++; } else { if (_arg2 == 1){ _local9--; }; }; _local9 = Math.min(_local9, 6); _local9 = Math.max(_local9, 1); if (_local10 != -1){ _local9 = _local10; }; while ((((members.length < _local9)) && (!(_arg5)))) { _local17 = new Array(6); _local18 = 0; while (_local18 < 6) { _local17[_local18] = (_local18 + 1); _local18++; }; _local17 = dm.shuffleArray(_local17); _local19 = 0; while (_local19 < 6) { if (_local17[_local19] == _local7){ } else { if (memberInPos(_local17[_local19]) != null){ } else { _local20 = (_local9 - members.length); _local21 = Math.round((75 / _local20)); if (dmf.randomNum(0, 100) <= _local21){ _local22 = _arg2; _local8 = GetMonsterForSlot(_arg1, _local22, _local17[_local19]); members.push(_local8); if (members.length == _local9){ break; }; }; }; }; _local19++; }; }; }; bg.addEventListener(MouseEvent.MOUSE_OVER, hordeMouseOnTarget); bg.addEventListener(MouseEvent.MOUSE_OUT, hordeMouseOutTarget); addEventListener(Event.ENTER_FRAME, onFrame); } public function setAsPandoraBattle(_arg1:int):void{ var _local2:MonsterCharacter; var _local6:MonsterCharacter; var _local7:MonsterCharacter; var _local8:Boolean; var _local3:int; members = new Array(); this.legendary = false; this.race = Horde.special; this.level = _arg1; var _local4 = 25; if (dmf.randomNum(0, 99) < _local4){ _local2 = new mHydraBody(_arg1); _local2.pos = 2; members.push(_local2); _local6 = new mHydraHead(_arg1); _local6.pos = 4; members.push(_local6); _local7 = new mHydraHead(_arg1); _local7.pos = 6; members.push(_local7); this.legendary = true; }; var _local5 = 1; while (_local5 <= 6) { if (memberInPos(_local5) != null){ } else { _local8 = (_local5 > 3); if (dmf.randomNum(0, 99) < _local4){ this.legendary = true; if (_local8){ _local2 = new mMinotaur(_arg1); _local2.pos = _local5; members.push(_local2); } else { _local2 = new mGorgon(_arg1); _local2.pos = _local5; members.push(_local2); }; } else { _local2 = getBoss(_local8); _local2.pos = _local5; members.push(_local2); _local3++; }; }; _local5++; }; this.boss = _local3; } public function addDeluxeBoss():int{ var _local1:MonsterCharacter; members.length = 0; _local1 = new mDreadfather(level); _local1.pos = 2; members.push(_local1); _local1 = new mFearSower(level); _local1.pos = 4; members.push(_local1); _local1 = new mFearSower(level); _local1.pos = 5; members.push(_local1); _local1 = new mFearSower(level); _local1.pos = 6; members.push(_local1); return (4); } private function getBoss(_arg1:Boolean):MonsterCharacter{ var _local2:MonsterCharacter; var _local3:int; if (race == Horde.special){ _local3 = dmf.randomNum(1, 5); }; if ((((race == Horde.undead)) || ((_local3 == 1)))){ if (_arg1){ _local2 = new mDeathKnight(level); } else { _local2 = new mNecromancer(level); }; } else { if ((((race == Horde.greenskins)) || ((_local3 == 2)))){ if (_arg1){ _local2 = new mOrcJuggernaut(level); } else { _local2 = new mOrcWarlord(level); }; } else { if ((((race == Horde.creatures)) || ((_local3 == 3)))){ if (_arg1){ _local2 = new mDragon(level); } else { _local2 = new mBeholder(level); }; } else { if ((((race == Horde.cultists)) || ((_local3 == 4)))){ if (_arg1){ _local2 = new mCultEngine(level); } else { _local2 = new mAscendant(level); }; } else { if ((((race == Horde.dwarves)) || ((_local3 == 5)))){ if (_arg1){ _local2 = new mDwarfWarleader(level); } else { _local2 = new mDwarfPrince(level); }; }; }; }; }; }; return (_local2); } public function hasFearSower():Boolean{ var _local2:MonsterCharacter; var _local1:Boolean; for each (_local2 in members) { if ((_local2 is mFearSower)){ _local1 = true; }; }; trace(("hasFearSower: " + _local1)); return (_local1); } public function fullRecovery():void{ var _local1:* = 0; while (_local1 < members.length) { members[_local1].clearStatusEffects(); members[_local1].health = members[_local1].health_max; members[_local1].power = members[_local1].power_max; _local1++; }; } public function cleanup():void{ bg.removeEventListener(MouseEvent.MOUSE_OVER, hordeMouseOnTarget); bg.removeEventListener(MouseEvent.MOUSE_OUT, hordeMouseOutTarget); removeEventListener(Event.ENTER_FRAME, onFrame); } public function hordeData():HordeData{ var _local1:HordeData = new HordeData(); _local1.roomIndex = this.room.index; _local1.defeated = this.defeated; _local1.race = this.race; _local1.boss = this.boss; _local1.legendary = this.legendary; _local1.level = this.level; return (_local1); } private function getUndead(_arg1:int, _arg2:int, _arg3:Boolean):MonsterCharacter{ var _local5:MonsterCharacter; var _local4:* = dmf.randomNum(0, 100); if (_arg3){ if (_local4 <= 20){ _local5 = new mBoneHorror(_arg2); } else { if (_local4 <= 50){ _local5 = new mGhost(_arg2); } else { _local5 = new mSkeleton(_arg2); }; }; } else { if (_local4 <= 30){ _local5 = new mLich(_arg2); } else { if (_local4 <= 60){ _local5 = new mVampire(_arg2); } else { _local5 = new mSkeletonArcher(_arg2); }; }; }; return (_local5); } private function getGreenskin(_arg1:int, _arg2:int, _arg3:Boolean):MonsterCharacter{ var _local5:MonsterCharacter; var _local4:* = dmf.randomNum(0, 100); if (_arg3){ if (_local4 <= 20){ _local5 = new mOrcChampion(_arg2); } else { if (_local4 <= 50){ _local5 = new mTroll(_arg2); } else { _local5 = new mOrcBerserker(_arg2); }; }; } else { if (_local4 <= 40){ _local5 = new mOrcShaman(_arg2); } else { if (_local4 <= 70){ _local5 = new mGoblinArtificer(_arg2); } else { _local5 = new mOrcSavage(_arg2); }; }; }; return (_local5); } private function getCreature(_arg1:int, _arg2:int, _arg3:Boolean):MonsterCharacter{ var _local5:MonsterCharacter; var _local4:* = dmf.randomNum(0, 100); if (_arg3){ if (_local4 <= 40){ _local5 = new mArachnoid(_arg2); } else { if (_local4 <= 60){ _local5 = new mBasilisk(_arg2); } else { _local5 = new mGreebler(_arg2); }; }; } else { if (_local4 <= 35){ _local5 = new mPoisonDrake(_arg2); } else { if (_local4 <= 70){ _local5 = new mLightningDrake(_arg2); } else { _local5 = new mGargoyle(_arg2); }; }; }; return (_local5); } private function getCultist(_arg1:int, _arg2:int, _arg3:Boolean):MonsterCharacter{ var _local5:MonsterCharacter; var _local4:* = dmf.randomNum(0, 100); if (_arg3){ if (_local4 <= 40){ _local5 = new mCultWarrior(_arg2); } else { if (_local4 <= 80){ _local5 = new mCultNeophyte(_arg2); } else { _local5 = new mCultChosen(_arg2); }; }; } else { if (_local4 <= 60){ _local5 = new mCultArcher(_arg2); } else { _local5 = new mCultPriest(_arg2); }; }; return (_local5); } private function getDwarf(_arg1:int, _arg2:int, _arg3:Boolean):MonsterCharacter{ var _local5:MonsterCharacter; var _local4:* = dmf.randomNum(0, 100); if (_arg3){ if (_local4 <= 30){ _local5 = new mDwarfManiac(_arg2); } else { if (_local4 <= 70){ _local5 = new mDwarfWarrior(_arg2); } else { _local5 = new mDwarfVeteran(_arg2); }; }; } else { if (_local4 <= 60){ _local5 = new mDwarfCrossbow(_arg2); } else { _local5 = new mDwarfRunecaster(_arg2); }; }; return (_local5); } protected function GetMonsterForSlot(_arg1:int, _arg2:int, _arg3:int):MonsterCharacter{ var _local4:MonsterCharacter; var _local6:int; var _local5:* = (_arg3 > 3); if (_arg1 == Horde.special){ _local6 = dmf.randomNum(0, 99); if (((!((dm.main.pc_party == null))) && ((dm.main.pc_party.campaign == Campaign.ORIGINAL)))){ _local6 = dmf.randomNum(20, 99); }; if (_local6 >= 80){ _local4 = getUndead(_arg1, _arg2, _local5); } else { if (_local6 >= 60){ _local4 = getGreenskin(_arg1, _arg2, _local5); } else { if (_local6 >= 40){ _local4 = getCreature(_arg1, _arg2, _local5); } else { if (_local6 >= 20){ _local4 = getCultist(_arg1, _arg2, _local5); } else { _local4 = getDwarf(_arg1, _arg2, _local5); }; }; }; }; } else { if (_arg1 == Horde.undead){ _local4 = getUndead(_arg1, _arg2, _local5); } else { if (_arg1 == Horde.greenskins){ _local4 = getGreenskin(_arg1, _arg2, _local5); } else { if (_arg1 == Horde.creatures){ _local4 = getCreature(_arg1, _arg2, _local5); } else { if (_arg1 == Horde.cultists){ _local4 = getCultist(_arg1, _arg2, _local5); } else { if (_arg1 == Horde.dwarves){ _local4 = getDwarf(_arg1, _arg2, _local5); } else { _local4 = new mGreebler(_arg2); }; }; }; }; }; }; _local4.pos = _arg3; return (_local4); } protected function getHordeDescription():String{ trace(((("getHordeDescription: horde race = " + race) + ", dungeon race = ") + dm.main.dungeon.race)); if (legendary){ return ("Legendary Monster"); }; if (race == Horde.undead){ if (boss){ return ("Death's Champions"); }; if (members.length <= 2){ return ("Wandering Bones"); }; if (members.length <= 4){ return ("Restless Dead"); }; return ("Undying Horde"); //unresolved jump }; if (race == Horde.greenskins){ if (boss){ return ("Warleader's Band"); }; if (members.length <= 2){ return ("Greenskin Patrol"); }; if (members.length <= 4){ return ("Savage Host"); }; return ("Orcish Legion"); //unresolved jump }; if (race == Horde.creatures){ if (boss){ return ("Ancient Ones"); }; if (members.length <= 2){ return ("Scavengers"); }; if (members.length <= 4){ return ("Hunting Pack"); }; return ("Beastly Horde"); //unresolved jump }; if (race == Horde.special){ if (boss){ if ((((members[0] is mDemon)) || ((members[0] is mDreadfather)))){ return ("Hellish Overlord"); }; return ("Diabolical Cabal"); } else { if (members.length <= 2){ return ("Honor Guard"); }; if (members.length <= 4){ return ("United Forces"); }; return ("Alliance of Evil"); }; //unresolved jump }; if (race == Horde.cultists){ if (boss){ return ("The Enlightened"); }; if (members.length <= 2){ return ("Cult Sentries"); }; if (members.length <= 4){ return ("Path Faithful"); }; return ("Planebreakers"); //unresolved jump }; if (race == Horde.dwarves){ if (boss){ return ("Earthlord's Retinue"); }; if (members.length <= 2){ return ("Mountain Guards"); }; if (members.length <= 4){ return ("Nations' War Party"); }; return ("Dwarven Regiment"); //unresolved jump }; return (Horde.nameForRace(race, true)); } protected function getRoomSizeModifier():int{ if (room == null){ return (0); }; if ((room is rCorridorV)){ return (-1); }; if ((room is rCorridorH)){ return (-1); }; if ((room is rCell)){ return (0); }; if ((room is rChamber)){ return (0); }; if ((room is rTallRoom)){ return (1); }; if ((room is rWideRoom)){ return (1); }; if ((room is rGallery)){ return (2); }; if ((room is rLargeRoom)){ return (2); }; return (0); } public function memberInPos(_arg1:int):MonsterCharacter{ var _local2:MonsterCharacter; if (_arg1 <= 0){ return (null); }; if (_arg1 > 6){ return (null); }; for each (_local2 in members) { if (_local2.pos == _arg1){ return (_local2); }; }; return (null); } public function get aliveCount():int{ var _local2:Character; var _local1:int; for each (_local2 in members) { if (_local2.health > 0){ _local1++; }; }; return (_local1); } public function hydraSlots():int{ var _local2:MonsterCharacter; var _local1:int = (0 + (6 - members.length)); for each (_local2 in members) { if (_local2.health <= 0){ _local1++; }; }; return (_local1); } public function needHydraHeads():int{ var _local2:MonsterCharacter; var _local1:int; for each (_local2 in members) { if ((((_local2 is mHydraHead)) && ((_local2.health <= 0)))){ _local1 = (_local1 + 2); }; }; trace(("horde.needHydraHeads() = " + _local1)); return (_local1); } public function isCampaignBoss():Boolean{ var _local1:MonsterCharacter; if (!boss){ return (false); }; if (dm.main.pc_party.campaign == Campaign.INFINITE){ return (false); }; if (((!((room == null))) && ((room is rDemonRoom)))){ return (true); }; for each (_local1 in members) { if ((((_local1 is mDemon)) || ((_local1 is mDreadfather)))){ return (true); }; }; return (false); } public function battleAnim():void{ this.gotoAndPlay("battle"); dm.sound.play(SoundControl.battleStart, SoundControl.volumeSetting); } public function findEmptySlot(_arg1:Boolean):int{ var _local2:int; if (_arg1){ _local2 = 4; while (_local2 <= 6) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; }; _local2 = 1; while (_local2 <= 3) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; if (_arg1){ return (0); }; _local2 = 4; while (_local2 <= 6) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; return (0); } public function fade():void{ defeated = true; cleanup(); if (tooltip != null){ if (tooltip.parent != null){ tooltip.parent.removeChild(tooltip); }; }; this.gotoAndPlay("fade"); var _local1:Timer = new Timer(500, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, onFadeComplete); _local1.start(); } function onFadeComplete(_arg1:TimerEvent):void{ if (parent != null){ parent.removeChild(this); }; } private function newTooltip(_arg1:MouseEvent):Boolean{ var _local4:Boolean; var _local7:*; var _local2:* = 0; var _local3:Array = new Array(); if (!members.length){ return (false); }; if (_arg1 == null){ return (false); }; var _local5:String = getHordeDescription(); var _local6:* = 0; while (_local6 < members.length) { if (members[_local6].health <= 0){ } else { _local4 = true; _local7 = 0; while (_local7 < _local3.length) { if (_local3[_local7][0] == members[_local6].charname){ var _local8 = _local3[_local7]; var _local9 = 1; var _local10 = (_local8[_local9] + 1); _local8[_local9] = _local10; _local4 = false; break; }; _local7++; }; if (_local4){ _local3.push([members[_local6].charname, 1, members[_local6].portrait]); }; }; _local6++; }; tooltip = new HordeTooltip(_local5, _local3, boss, legendary); tooltip.mouseEnabled = false; tooltip.mouseChildren = false; tooltip.name = "tooltip_horde"; tooltip.setForEvent(_arg1); stage.addChild(tooltip); tooltip.mask = null; return (true); } function hordeMouseOnTarget(_arg1:MouseEvent):void{ if (room == null){ return; }; if (!room.seen){ return; }; mousingOver = true; mouseOverFrames = 0; mousedOverEvent = _arg1; } function hordeMouseOutTarget(_arg1:MouseEvent):void{ if (tooltip != null){ tooltip.fade(); tooltip = null; }; mousingOver = false; mouseOverFrames = 0; } private function onFrame(_arg1:Event):void{ if (mousingOver){ mouseOverFrames++; }; if (mouseOverFrames > Tooltip.delayFrames){ newTooltip(mousedOverEvent); mousingOver = false; mouseOverFrames = 0; }; } public function resetMembers():void{ var _local1:int = (members.length - 1); while (_local1 >= 0) { if (MonsterCharacter(members[_local1]).originalPos != -1){ members[_local1].pos = MonsterCharacter(members[_local1]).originalPos; }; if (members[_local1].summoned){ members.splice(_local1, 1); } else { if ((((members[0] is mDemon)) && ((_local1 > 0)))){ members.splice(_local1, 1); } else { if (((((legendary) && ((members[0] is mHydraBody)))) && ((_local1 > 0)))){ if ((members[_local1] is mHydraHead)){ if (members[_local1].pos == 1){ members.splice(_local1, 1); } else { if (members[_local1].pos == 3){ members.splice(_local1, 1); } else { if (members[_local1].pos == 5){ members.splice(_local1, 1); } else { members[_local1].resetMonster(); }; }; }; }; } else { members[_local1].resetMonster(); }; }; }; _local1--; }; } function frame1(){ this.gotoAndStop("normal"); } function frame15(){ this.gotoAndStop(15); } function frame30(){ this.gotoAndStop(30); } public static function nameForRace(_arg1:int, _arg2:Boolean=false):String{ if (_arg2){ if (_arg1 == Horde.undead){ return ("Undead"); }; if (_arg1 == Horde.greenskins){ return ("Greenskins"); }; if (_arg1 == Horde.creatures){ return ("Deep Creatures"); }; if (_arg1 == Horde.cultists){ return ("Cultists"); }; if (_arg1 == Horde.dwarves){ return ("Dwarves"); }; return ("Monsters"); } else { if (_arg1 == Horde.undead){ return ("undead"); }; if (_arg1 == Horde.greenskins){ return ("greenskins"); }; if (_arg1 == Horde.creatures){ return ("deep creatures"); }; if (_arg1 == Horde.cultists){ return ("cultists"); }; if (_arg1 == Horde.dwarves){ return ("dwarves"); }; }; return (!NULL!); } public static function getGreenskinName():String{ var _local1:Array = new Array("Gral", "Grun", "Grun", "Kil", "Skar", "Krum", "Har", "Zug", "Kaz", "Bom"); var _local2:Array = new Array("gog", "gul", "grul", "guk", "krul", "krag", "zog", "bog", "skag", "zak"); var _local3 = ""; _local3 = (_local3 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local3 = (_local3 + _local2[dmf.randomNum(0, (_local2.length - 1))]); return (_local3); } public static function getDwarfName():String{ var _local1:Array = new Array("Gr", "Gl", "G", "Th", "Thr", "N", "D", "B", "Br"); var _local2:Array = new Array("i", "u", "o", "oi", "ou", "ý", "ú", "á", "ö"); var _local3:Array = new Array("n", "mli", "rin", "run", "din", "ld", "lin", "lun"); var _local4 = ""; _local4 = (_local4 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local4 = (_local4 + _local2[dmf.randomNum(0, (_local2.length - 1))]); _local4 = (_local4 + _local3[dmf.randomNum(0, (_local3.length - 1))]); return (_local4); } public static function getDragonName():String{ var _local1:Array = new Array("Sm", "Br", "N"); var _local2:Array = new Array("au", "auga", "aga", "alga", "aulga"); var _local3:Array = new Array("g", "fen", "l", "n"); var _local4 = ""; _local4 = (_local4 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local4 = (_local4 + _local2[dmf.randomNum(0, (_local2.length - 1))]); _local4 = (_local4 + _local3[dmf.randomNum(0, (_local3.length - 1))]); return (_local4); } public static function getKnightName():String{ var _local1:Array = new Array("Ser ", "Sir ", "Lord ", "Black ", "Fell ", "Dread "); var _local2:Array = new Array("Nigel", "Neil", "Niles", "Charles", "Boris", "Jethro", "Gerald", "Horace", "Stan", "Alan", "Hank", "Marty", "Trevor", "Trent", "Bruce", "Eugene", "Wally", "Harold", "Hamish", "Carlos", "Jeremy", "Jerome", "Jermaine", "Tito", "George", "Hans", "Chad", "Rupert", "Ruprecht", "Albert", "Alfred", "Phineas", "Brent", "Colin", "Travis", "Jarvis", "Elton", "Ernest"); var _local3 = ""; _local3 = (_local3 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local3 = (_local3 + _local2[dmf.randomNum(0, (_local2.length - 1))]); return (_local3); } public static function getNecromancerName():String{ var _local1:Array = new Array("Ner", "Zag", "Jal", "Sel", "Bal", "Dam", "Zel", "Sal", "Nar", "Mal", "Tral"); var _local2:Array = new Array("'", "a", "e", "u", "o"); var _local3:Array = new Array("gar", "zar", "thon", "sal", "tor", "thul", "thal", "bann"); var _local4 = ""; _local4 = (_local4 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local4 = (_local4 + _local2[dmf.randomNum(0, (_local2.length - 1))]); _local4 = (_local4 + _local3[dmf.randomNum(0, (_local3.length - 1))]); return (_local4); } public static function getBeholderName():String{ return (getNecromancerName()); } public static function getEngineName():String{ var _local1:Array = new Array("Consecrator", "Retributor", "Assimilator", "Annihilator", "Exemplifier", "Admonisher", "Intensifier", "Augmentor"); var _local2:Array = new Array("1", "2", "3", "4", "5", "6", "7", "8", "9"); var _local3 = ""; _local3 = (_local3 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local3 = (_local3 + "-"); _local3 = (_local3 + _local2[dmf.randomNum(0, (_local2.length - 1))]); return (_local3); } public static function getLurkerName():String{ var _local1:Array = new Array("Sh", "Gh", "Sn", "Fh", "Ts"); var _local2:Array = new Array("ee", "ib", "el", "ul", "eb", "im"); var _local3 = ""; _local3 = (_local3 + _local1[dmf.randomNum(0, (_local1.length - 1))]); _local3 = (_local3 + _local2[dmf.randomNum(0, (_local2.length - 1))]); return (_local3); } } }//package
Section 165
//HordeData (HordeData) package { public class HordeData { var members:Array; private var _roomIndex:int;// = 0 private var _defeated:Boolean;// = false private var _race:int; private var _level:int;// = 0 private var _boss:int;// = 0 private var _legendary:Boolean;// = false public function HordeData(){ members = new Array(); _race = Horde.undead; super(); } public function get roomIndex():int{ return (this._roomIndex); } public function set roomIndex(_arg1:int):void{ this._roomIndex = _arg1; } public function get defeated():Boolean{ return (this._defeated); } public function set defeated(_arg1:Boolean):void{ this._defeated = _arg1; } public function get race():int{ return (this._race); } public function set race(_arg1:int):void{ this._race = _arg1; } public function get level():int{ return (this._level); } public function set level(_arg1:int):void{ this._level = _arg1; } public function get boss():int{ return (this._boss); } public function set boss(_arg1:int):void{ this._boss = _arg1; } public function get legendary():Boolean{ return (this._legendary); } public function set legendary(_arg1:Boolean):void{ this._legendary = _arg1; } public function toHorde():Horde{ var _local1:Horde = new Horde(this.race, this.level, this.boss, null, true, this.legendary); _local1.defeated = this.defeated; _local1.members = this.members; var _local2:* = 0; while (_local2 < members.length) { MonsterCharacter(_local1.members[_local2]).initSkills(); _local2++; }; return (_local1); } } }//package
Section 166
//HordeIcon (HordeIcon) package { import flash.display.*; public dynamic class HordeIcon extends MovieClip { public function HordeIcon(){ addFrameScript(0, frame1); } function frame1(){ this.gotoAndStop(1); } } }//package
Section 167
//HordeTooltip (HordeTooltip) package { import flash.display.*; import flash.text.*; public class HordeTooltip extends Tooltip { const boss_text = 16777164; public var tooltip_bg:Sprite; public var title_label:TextField; public var t1:TextField; public var t2:TextField; public var t3:TextField; public var t4:TextField; public var t5:TextField; public var t6:TextField; public var p1:CharGraphic; public var p2:CharGraphic; public var p3:CharGraphic; public var p4:CharGraphic; public var p5:CharGraphic; public var p6:CharGraphic; public function HordeTooltip(_arg1:String="", _arg2:Array=null, _arg3:int=0, _arg4:Boolean=false):void{ var _local7:TextField; var _local8:MovieClip; super(); if (_arg2 == null){ return; }; var _local5:* = _arg2.length; if (_arg1 == ""){ _arg1 = "Blank"; }; title_label.text = _arg1; dm.embolden(title_label); var _local6:* = (_local5 + 1); while (_local6 <= 6) { removeChild(getChildByName(("p" + _local6))); removeChild(getChildByName(("t" + _local6))); _local6++; }; _local6 = 1; while (_local6 <= _local5) { _local7 = TextField(getChildByName(("t" + _local6))); if (_local6 <= _arg3){ _local7.text = getString(_arg2, (_local6 - 1), true); _local7.textColor = boss_text; } else { if (_arg4){ _local7.text = getString(_arg2, (_local6 - 1)); _local7.textColor = boss_text; } else { _local7.text = getString(_arg2, (_local6 - 1)); }; }; _local8 = MovieClip(getChildByName(("p" + _local6))); _local8.setFrame(_arg2[(_local6 - 1)][2]); _local6++; }; tooltip_bg.height = ((39 + (_local5 * 30)) + 7); } private function getString(_arg1:Array, _arg2:int, _arg3:Boolean=false):String{ if (_arg2 >= _arg1.length){ return ("Blank"); }; if (_arg3){ return ((((("x " + String(_arg1[_arg2][1])) + " '") + _arg1[_arg2][0]) + "'")); }; return (((("x " + String(_arg1[_arg2][1])) + " ") + _arg1[_arg2][0])); } } }//package
Section 168
//horz_slash (horz_slash) package { import flash.display.*; public dynamic class horz_slash extends MovieClip { public var slash:MovieClip; public function horz_slash(){ addFrameScript(11, frame12); } function frame12(){ this.gotoAndStop(12); } } }//package
Section 169
//iAxe (iAxe) package { public class iAxe extends SteelEdgedWeapon { public function iAxe(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Greataxe"; slot = weapon; item_level = _arg1; whoEquips = ((Equipment.warriorEquip + Equipment.rangerEquip) + Equipment.barbarianEquip); twoHanded = true; icon_frame = 10; base_damage = axe_base_damage; mod_quickness = (mod_quickness - 15); grey_name = "Rusty"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.4 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 2; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Blood Harvester"; base_damage_mod = 50; setHealthRegen(); setVampiric(7, 12); icon_frame = 38; } else { if (_local2 == 2){ item_name = "Golden Axe"; base_damage_mod = 50; setStunChance(15, 25); setStrength(2, max_stat_for_purple); icon_frame = 39; } else { item_name = "Executioner"; base_damage_mod = 48; setLethality(3, 6); damageBonusVsCreatureType = MonsterCharacter.human; damageBonusVsCreatureModifier = 1.2; setStrength(2, max_stat_for_purple); icon_frame = 145; }; }; } } }//package
Section 170
//iBow (iBow) package { public class iBow extends RangedWeapon { public function iBow(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Bow"; slot = weapon; item_level = _arg1; whoEquips = ((Equipment.warriorEquip + Equipment.rangerEquip) + Equipment.rogueEquip); twoHanded = true; icon_frame = 15; base_damage = bow_base_damage; grey_name = "Cracked"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.1 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "The Huntsman"; base_damage_mod = 50; damageBonusVsCreatureType = MonsterCharacter.creature; damageBonusVsCreatureModifier = 1.2; setAccuracy(); setLethality(); setPoisonDamage(); icon_frame = 53; } else { if (_local2 == 2){ item_name = "Manhunter Bow"; lore = "No man escapes the Manhunter"; base_damage_mod = 50; damageBonusVsCreatureType = MonsterCharacter.human; damageBonusVsCreatureModifier = 1.2; setStunChance(15, 20); setAccuracy(); icon_frame = 52; } else { if (_local2 == 3){ item_name = "Silencer"; base_damage_mod = 50; setBlind(15, 30); setStunChance(); setDexterity(); icon_frame = 146; }; }; }; } } }//package
Section 171
//iCenser (iCenser) package { public class iCenser extends Offhand { public function iCenser(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Censer"; slot = offhand; item_level = _arg1; whoEquips = Equipment.clericEquip; base_armor_rating = 0; mod_healing = (item_level * 5); icon_frame = 63; grey_name = "Tarnished"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.18 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Inquisitor's Censer"; mod_healing = Math.round((mod_healing * 1.2)); setStrength(2, max_stat_for_purple); damageBonusVsCreatureType = MonsterCharacter.undead; damageBonusVsCreatureModifier = 1.3; icon_frame = 75; } else { if (_local2 == 2){ item_name = "Blessed Censer of the Exalted Priest-Lord"; mod_healing = (mod_healing * 2); setHealthRegen(); setResistPoison(50, 75); icon_frame = 76; } else { item_name = "Thurifer's Censer"; mod_healing = Math.round((mod_healing * 1.2)); armorBonusVsCreatureType = MonsterCharacter.undead; armorBonusVsCreatureModifier = 2; setResistPoison(40, 50); setPowerRegen(3, 5); creator = "Aensland"; icon_frame = 174; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Vampiric", 10]); } override public function itemStatsString(_arg1:String):String{ var _local2:* = super.itemStatsString(_arg1); if (_local2.length){ _local2 = (_local2 + "\n"); }; _local2 = (_local2 + ("Special(Censer): Increases the effect of Healing abilities by " + mod_healing)); return (_local2); } } }//package
Section 172
//iCloak (iCloak) package { public class iCloak extends Armor { public function iCloak(_arg1:int=1, _arg2:int=-1){ type = Armor.light; mod_quickness = 0; whoEquips = Equipment.allEquip; base_armor_rating = 2; materials.push("Linen", "Wool", "Velvet", "Silk", "Suncloth", "Aetherweave"); SetRarity(_arg2); item_level = _arg1; item_name = "Cloak"; slot = Equipment.back; icon_frame = 55; if (item_rarity == Item.orange){ return; }; modifyBaseArmorForSlot(); grey_name = "Threadbare"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getItemTypeString(){ return ("Cloak"); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Cloak of Flames"; base_armor_rating = Math.round((base_armor_rating * 3)); setStrength(2, max_stat_for_purple); setDamageReflection(40, 60); setQuickness(8, 15); icon_frame = 57; } else { if (_local2 == 2){ item_name = "Manashroud"; base_armor_rating = Math.round((base_armor_rating * 2)); setIntellect(2, max_stat_for_purple); setPowerRegen(5, 8); icon_frame = 58; } else { if (_local2 == 3){ item_name = "Shroud of Darkness"; base_armor_rating = Math.round((base_armor_rating * 2)); quickRetreat = true; setBlind(15, 25); setDexterity(2, max_stat_for_purple); icon_frame = 56; } else { item_name = "Shroud of Shifting Evermist"; base_armor_rating = Math.round((base_armor_rating * 2)); setDamageReflection(40, 50); setIntellect(1, 4); setPowerRegen(4, 6); creator = "Desk333"; icon_frame = 177; }; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Vampiric", 10]); suffixes.push(["Discretion", 1]); } } }//package
Section 173
//iClothGloves (iClothGloves) package { public class iClothGloves extends LightArmor { public function iClothGloves(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Gloves"; icon_frame = 31; slot = Equipment.gloves; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Thief's Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setBlind(); setQuickness(); icon_frame = 88; } else { if (_local2 == 2){ item_name = "Savant's Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); setEndurance(); setPowerRegen(); icon_frame = 87; } else { item_name = "Sacred Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setStrength(); setResistStun(); mod_healing = (item_level * 2); whoEquips = clericEquip; icon_frame = 158; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Accuracy", base_accuracy_bonus]); } } }//package
Section 174
//iClothHat (iClothHat) package { public class iClothHat extends LightArmor { public function iClothHat(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Hood"; icon_frame = 33; slot = Equipment.head; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Facemask of the Bandit Chieftain"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setDexterity(2, max_stat_for_purple); setPoisonDamage(2); icon_frame = 90; } else { if (_local2 == 2){ item_name = "Savant's Hood"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); setEndurance(); setPowerRegen(); icon_frame = 89; } else { if (_local2 == 3){ item_name = "Sacred Hood"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setStrength(); setAccuracy(); mod_healing = (item_level * 2); whoEquips = clericEquip; icon_frame = 160; } else { item_name = "Enlightening Hood"; base_armor_rating = Math.round((base_armor_rating * 1.4)); setIntellect(1, 3); setDamageReflection(27, 54); setBlind(20, 30); creator = "LightningLord"; whoEquips = ((clericEquip + mageEquip) + conjurorEquip); icon_frame = 175; }; }; }; } } }//package
Section 175
//iClothLegs (iClothLegs) package { public class iClothLegs extends LightArmor { public function iClothLegs(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Trousers"; icon_frame = 34; slot = Equipment.legs; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Swashbuckler's Pantaloons"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(); setDexterity(); setQuickness(); icon_frame = 85; } else { if (_local2 == 2){ item_name = "Savant's Leggings"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); setEndurance(); setPowerRegen(); icon_frame = 86; } else { item_name = "Sacred Leggings"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setStrength(); setResistStun(); mod_healing = (item_level * 2); whoEquips = clericEquip; icon_frame = 159; }; }; } } }//package
Section 176
//iClothRobe (iClothRobe) package { public class iClothRobe extends LightArmor { public function iClothRobe(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Robe"; icon_frame = 35; slot = Equipment.armor; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Sacred Vestments"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setStrength(); setResistPoison(); mod_healing = (item_level * 2); whoEquips = clericEquip; icon_frame = 92; } else { if (_local2 == 2){ item_name = "Savant's Robe"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); setEndurance(); setPowerRegen(); icon_frame = 91; } else { item_name = "Mystic's Infusing Robe"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); replenishing = 50; setPowerRegen(); icon_frame = 161; }; }; } } }//package
Section 177
//iClothShoes (iClothShoes) package { public class iClothShoes extends LightArmor { public function iClothShoes(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Slippers"; icon_frame = 36; slot = Equipment.boots; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Lightstep Slippers"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setQuickness(5, 10); quickRetreat = true; icon_frame = 95; } else { if (_local2 == 2){ item_name = "Savant's Slippers"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(2, max_stat_for_purple); setEndurance(); setPowerRegen(); icon_frame = 94; } else { item_name = "Sacred Slippers"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setStrength(); setResistPoison(); mod_healing = (item_level * 2); whoEquips = clericEquip; icon_frame = 157; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Discretion", 1]); } } }//package
Section 178
//iCrossbow (iCrossbow) package { public class iCrossbow extends RangedWeapon { public function iCrossbow(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Crossbow"; slot = weapon; item_level = _arg1; whoEquips = ((Equipment.warriorEquip + Equipment.rangerEquip) + Equipment.rogueEquip); twoHanded = true; mod_quickness = (mod_quickness - 20); icon_frame = 67; base_damage = crossbow_base_damage; grey_name = "Worn"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.15 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Mystically Augmented Bolt-Throwing System Mk I"; lore = "This weapon is remarkably easy to handle."; base_damage_mod = 50; setAccuracy(15, 30); mod_quickness = 0; setDexterity(); icon_frame = 72; } else { if (_local2 == 2){ item_name = "Quarrel-Ender"; lore = "The most efficient way to end any argument."; base_damage_mod = 50; setBlind(10, 15); setPoisonDamage(); setLethality(7, 15); icon_frame = 71; } else { item_name = "Crossbones"; base_damage_mod = 50; damageBonusVsCreatureType = MonsterCharacter.undead; damageBonusVsCreatureModifier = 1.2; setDexterity(); setEndurance(); icon_frame = 147; }; }; } } }//package
Section 179
//iDagger (iDagger) package { public class iDagger extends SteelEdgedWeapon { public function iDagger(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Dagger"; slot = weapon; item_level = _arg1; whoEquips = Equipment.rogueEquip; icon_frame = 16; base_damage = dagger_base_damage; mod_quickness = (mod_quickness + 5); grey_name = "Worn"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((0.95 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Pestilence Blade"; base_damage_mod = 30; setPoisonDamage(20); icon_frame = 41; resistPoison = -10; } else { if (_local2 == 2){ item_name = "Bloodseeker"; base_damage_mod = 35; setVampiric(10, 20); setAccuracy(); icon_frame = 40; } else { item_name = "The Shudderer"; lore = "It brings a pointy reckoning.."; base_damage_mod = 40; setStunChance(15, 25); icon_frame = 42; }; }; } override public function itemStatsString(_arg1:String):String{ var _local2:* = super.itemStatsString(_arg1); _local2 = (_local2 + "\nSpecial(Dagger): Gains bonus damage from both Strength and Dexterity"); return (_local2); } } }//package
Section 180
//iLeatherBoots (iLeatherBoots) package { public class iLeatherBoots extends MediumArmor { public function iLeatherBoots(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Boots"; icon_frame = 24; slot = Equipment.boots; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Heavy Spineskin Boots"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.5)))); setStrength(2, max_stat_for_purple); setEndurance(); setDamageReflection(40, 60); icon_frame = 99; } else { if (_local2 == 2){ item_name = "Assassin's Boots"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); damageBonusVsCreatureType = MonsterCharacter.dwarf; damageBonusVsCreatureModifier = 1.1; quickRetreat = true; setLethality(3, 5); whoEquips = (whoEquips - Equipment.clericEquip); icon_frame = 167; } else { if (_local2 == 3){ item_name = "Bloodsoaked Berserker's Boots"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 170; } else { item_name = "Stalker's Boots"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 98; }; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Discretion", 1]); } } }//package
Section 181
//iLeatherChest (iLeatherChest) package { public class iLeatherChest extends MediumArmor { public function iLeatherChest(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Jerkin"; icon_frame = 47; slot = Equipment.armor; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Bloodsoaked Berserker's Jerkin"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setResistStun(); icon_frame = 104; } else { if (_local2 == 2){ item_name = "Assassin's Jerkin"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); damageBonusVsCreatureType = MonsterCharacter.greenskin; damageBonusVsCreatureModifier = 1.1; setResistStun(30, 50); setLethality(3, 5); whoEquips = (whoEquips - Equipment.clericEquip); icon_frame = 166; } else { item_name = "Stalker's Jerkin"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 103; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 182
//iLeatherGloves (iLeatherGloves) package { public class iLeatherGloves extends MediumArmor { public function iLeatherGloves(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Gloves"; icon_frame = 32; slot = Equipment.gloves; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Assassin's Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); damageBonusVsCreatureType = MonsterCharacter.undead; damageBonusVsCreatureModifier = 1.1; setResistStun(30, 50); setLethality(3, 5); whoEquips = (whoEquips - Equipment.clericEquip); icon_frame = 101; } else { if (_local2 == 2){ item_name = "Bloodsoaked Berserker's Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setPowerRegen(1, 2); icon_frame = 168; } else { item_name = "Stalker's Gloves"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 100; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Staggering", 10]); suffixes.push(["Accuracy", base_accuracy_bonus]); } } }//package
Section 183
//iLeatherHat (iLeatherHat) package { public class iLeatherHat extends MediumArmor { public function iLeatherHat(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Helmet"; icon_frame = 48; slot = Equipment.head; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Assassin's Hood"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); damageBonusVsCreatureType = MonsterCharacter.human; damageBonusVsCreatureModifier = 1.1; setResistPoison(30, 50); setLethality(3, 5); whoEquips = (whoEquips - Equipment.clericEquip); icon_frame = 54; } else { if (_local2 == 2){ item_name = "Bloodsoaked Berserker's Hood"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setPowerRegen(1, 2); icon_frame = 169; } else { item_name = "Stalker's Hood"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 102; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } } }//package
Section 184
//iLeatherLegs (iLeatherLegs) package { public class iLeatherLegs extends MediumArmor { public function iLeatherLegs(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Leggings"; icon_frame = 29; slot = Equipment.legs; modifyBaseArmorForSlot(); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Bloodsoaked Berserker's Leggings"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setResistStun(); icon_frame = 97; } else { if (_local2 == 2){ item_name = "Assassin's Leggings"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); damageBonusVsCreatureType = MonsterCharacter.creature; damageBonusVsCreatureModifier = 1.1; setResistPoison(30, 50); setLethality(3, 5); whoEquips = (whoEquips - Equipment.clericEquip); icon_frame = 165; } else { item_name = "Stalker's Leggings"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setDexterity(2, max_stat_for_purple); setEndurance(); setHealthRegen(); icon_frame = 96; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 185
//iMace (iMace) package { public class iMace extends MeleeWeapon { public function iMace(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Mace"; slot = weapon; item_level = _arg1; whoEquips = ((((Equipment.warriorEquip + Equipment.clericEquip) + Equipment.rogueEquip) + Equipment.barbarianEquip) + Equipment.conjurorEquip); icon_frame = 13; base_damage = mace_base_damage; grey_name = "Battered"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((0.9 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Scepter of Grace"; base_damage_mod = 50; setPowerRegen(4, 6); setResistPoison(20, 30); setResistStun(20, 30); setIntellect(2, max_stat_for_purple); icon_frame = 43; } else { if (_local2 == 2){ item_name = "The Punisher"; base_damage_mod = 60; setBlind(20, 30); setStunChance(15, 25); icon_frame = 44; } else { if (_local2 == 3){ item_name = "Inquisitor's Mace"; lore = "Destroy the abomination."; damageBonusVsCreatureType = MonsterCharacter.undead; damageBonusVsCreatureModifier = 1.5; base_damage_mod = 55; setStrength(2, max_stat_for_purple); icon_frame = 148; } else { item_name = "Mace of the Hill Giant"; lore = "The mace of the enormous Hill Giant!"; creator = "ChaosBlade"; base_damage_mod = 60; setStrength(2, 5); setStunChance(20, 25); setStrength(2, 5); icon_frame = 176; }; }; }; } } }//package
Section 186
//InitiativeIcon (InitiativeIcon) package { import flash.display.*; import flash.text.*; public class InitiativeIcon extends MovieClip { protected var char_ref:Character; var tcolor:uint;// = 0xFFFFFF var nametext:String;// = "Error" var pos:int;// = 1 var start_y:int; var target_y:int; var dying:Boolean;// = false public var name_label:TextField; public var pos_icon:InitiativePositionIndicator; public function InitiativeIcon(_arg1:Character=null){ addFrameScript(8, frame9, 9, frame10, 19, frame20, 20, frame21, 30, frame31, 39, frame40, 40, frame41, 49, frame50); if (_arg1 != null){ this.char_ref = _arg1; this.updateNow(); }; } public function getChar():Character{ return (char_ref); } function setColor(_arg1:uint):void{ this.tcolor = _arg1; fix(); } public function fix():void{ if (name_label != null){ name_label.text = this.nametext; name_label.textColor = this.tcolor; }; if (pos_icon != null){ pos_icon.gotoAndStop(this.pos); }; } public function updateNow():void{ this.nametext = (((char_ref.charname + " Q") + char_ref.getQuickness()) + " "); this.pos = char_ref.pos; fix(); } public function kill():void{ dying = true; fix(); if (this.currentFrame == 9){ this.gotoAndPlay("death"); }; } public function res():void{ dying = false; fix(); this.gotoAndPlay("revive"); } public function fade():void{ this.gotoAndPlay("fade"); } function frame9(){ if (!dying){ this.gotoAndStop(9); }; this.fix(); } function frame10(){ if (dying){ tcolor = 0; }; this.fix(); } function frame20(){ this.gotoAndStop(20); this.fix(); } function frame21(){ this.fix(); } function frame31(){ this.fix(); } function frame40(){ this.gotoAndStop(40); this.fix(); } function frame41(){ this.fix(); } function frame50(){ this.gotoAndStop(50); this.fix(); } } }//package
Section 187
//InitiativeList (InitiativeList) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class InitiativeList extends MovieClip { const highlight_color = 0xFFFF00; const monster_color = 0xE90000; const player_color = 0xFFFFFF; const dead_color = 0; const entry_height = 15; private var entry_data:Array; private var icons:Array; private var highlighted:Character; private var last_turn:Character; private var turn_order:Array; var current:int; var turn:int;// = 0 public var bg:MovieClip; var frame_count;// = 0 var animate_frames;// = 10 static const MAX_ENTRIES = 25; public function InitiativeList(){ icons = new Array(); turn_order = new Array(); super(); } public function cleanup():void{ removeEventListener(Event.ENTER_FRAME, animateFrame); } public function setData(_arg1:Array=null){ if (_arg1 == null){ return; }; entry_data = _arg1; } public function updateIcon(_arg1:Character):void{ var _local2:* = 0; while (_local2 < icons.length) { if (icons[_local2].getChar() == _arg1){ icons[_local2].updateNow(); }; _local2++; }; } private function shouldAdd(_arg1:Character):Boolean{ if (_arg1 == null){ return (false); }; if (_arg1.health <= 0){ return (false); }; if ((((_arg1 is PlayerCharacter)) && (PlayerCharacter(_arg1).retreated))){ return (false); }; return (true); } public function insertChar(_arg1:Character, _arg2:Character):void{ buildTurnOrder(_arg2); var _local3:* = 0; var _local4:* = -1; var _local5:* = false; var _local6:* = 0; var _local7:* = 0; while (_local7 < turn_order.length) { _local4 = (_local7 + 1); icons[_local4].start_y = icons[_local4].y; icons[_local4].target_y = icons[_local4].y; if (turn_order[_local7] == _arg1){ insertIconAt(_local4, _arg1, _local3); _local3 = (_local3 + entry_height); _local5 = true; } else { icons[_local4].target_y = (icons[_local4].target_y + _local3); }; _local7++; }; if (_local5){ animate_frames = 10; frame_count = 0; addEventListener(Event.ENTER_FRAME, animateFrame); }; } private function insertIconAt(_arg1:int, _arg2:Character, _arg3:int):void{ var _local4:*; var _local5:*; var _local6:InitiativeIcon = new InitiativeIcon(_arg2); _local6.setColor(getColorFor(_arg2)); icons.splice(_arg1, 0, _local6); _local6.x = 0; _local6.y = ((entry_height * _arg1) + _arg3); bg.addChild(_local6); _local6.res(); } public function refill(_arg1:Character):void{ var _local2:Boolean; buildTurnOrder(_arg1); var _local3:* = 0; while (_local3 < icons.length) { if (!_local2){ if (icons[_local3].getChar() == _arg1){ _local2 = true; }; } else { icons[_local3].fade(); }; _local3++; }; var _local4:Timer = new Timer(350, 1); _local4.addEventListener(TimerEvent.TIMER_COMPLETE, refillTimerComplete); _local4.start(); } private function getColorFor(_arg1:Character):uint{ var _local2:uint; if (((!((highlighted == null))) && ((highlighted == _arg1)))){ _local2 = highlight_color; } else { if (!shouldAdd(_arg1)){ _local2 = dead_color; } else { if ((_arg1 is MonsterCharacter)){ _local2 = monster_color; } else { _local2 = player_color; }; }; }; return (_local2); } function refillTimerComplete(_arg1:TimerEvent):void{ var _local4:*; var _local2:* = 0; while (_local2 < icons.length) { if (bg.contains(icons[_local2])){ bg.removeChild(icons[_local2]); }; _local2++; }; icons.length = 0; var _local3:* = 0; while (_local3 < turn_order.length) { _local4 = new InitiativeIcon(turn_order[_local3]); _local4.setColor(getColorFor(turn_order[_local3])); _local4.x = 0; if (_local3 > 0){ _local4.target_y = (entry_height * (_local3 + 1)); _local4.start_y = bg.height; _local4.y = bg.height; } else { _local4.y = (entry_height * _local3); _local4.target_y = _local4.y; _local4.start_y = _local4.y; _local4.gotoAndStop(1); _local4.fix(); }; icons.push(_local4); bg.addChild(_local4); _local3++; }; animate_frames = 30; frame_count = 0; addEventListener(Event.ENTER_FRAME, animateFrame); } private function buildTurnOrder(_arg1:Character, _arg2:Boolean=false):Boolean{ var _local3:*; var _local4:*; var _local5:* = 0; var _local6:* = false; var _local7:* = false; turn_order.length = 0; _local3 = 0; while (_local3 < entry_data.length) { if (entry_data[_local3] == _arg1){ _local5 = _local3; if (_arg2){ if (shouldAdd(last_turn)){ turn_order.push(last_turn); } else { _local7 = true; }; }; _local4 = _local5; while (_local4 < entry_data.length) { if (shouldAdd(entry_data[_local4])){ if (Character(entry_data[_local4]).hadCombatTurn == false){ turn_order.push(entry_data[_local4]); }; }; _local4++; }; break; }; _local3++; }; last_turn = _arg1; var _local8:* = turn_order.length; var _local9:* = MAX_ENTRIES; if (_arg2){ _local9 = (_local9 + 2); }; var _local10:int; while ((((_local8 < _local9)) && ((_local10 < MAX_ENTRIES)))) { _local3 = 0; while (_local3 < entry_data.length) { if (shouldAdd(entry_data[_local3])){ turn_order.push(entry_data[_local3]); ++_local8; if (_local8 >= MAX_ENTRIES){ break; }; }; _local3++; }; _local10++; }; return (_local7); } public function turnOf(_arg1:Character, _arg2:Boolean):void{ var _local3:*; var _local4:*; var _local6:*; var _local7:*; var _local5:* = false; _local3 = 0; while (_local3 < icons.length) { if (icons[_local3] == null){ } else { if (bg.contains(icons[_local3])){ bg.removeChild(icons[_local3]); }; }; _local3++; }; icons.length = 0; _local5 = buildTurnOrder(_arg1, _arg2); _local3 = 0; while (_local3 < turn_order.length) { _local6 = new InitiativeIcon(turn_order[_local3]); _local6.setColor(getColorFor(turn_order[_local3])); _local6.x = 0; _local7 = 0; if (_local5){ _local7 = (_local3 + 1); } else { _local7 = _local3; }; _local6.y = (entry_height * _local7); if (_arg2){ } else { _local6.gotoAndStop(1); _local6.fix(); }; icons.push(_local6); bg.addChild(_local6); _local3++; }; } private function numOf(_arg1:Character):int{ var _local2:* = 0; var _local3:* = 0; while (_local3 < turn_order.length) { if (turn_order[_local3] == _arg1){ _local2++; }; _local3++; }; return (_local2); } public function setNormalColors():void{ var _local1:uint; var _local3:Character; highlighted = null; var _local2:* = 0; while (_local2 < icons.length) { if (icons[_local2] == null){ } else { _local3 = icons[_local2].getChar(); if ((((_local3 == null)) || (!(shouldAdd(_local3))))){ _local1 = dead_color; } else { if ((_local3 is MonsterCharacter)){ _local1 = monster_color; } else { _local1 = player_color; }; }; icons[_local2].setColor(_local1); }; _local2++; }; } public function highlightChar(_arg1:Character):Boolean{ var _local2:* = false; var _local3:* = 0; while (_local3 < icons.length) { if (icons[_local3].getChar() != _arg1){ } else { if (icons[_local3].getChar().health <= 0){ } else { highlighted = _arg1; icons[_local3].setColor(highlight_color); _local2 = true; }; }; _local3++; }; if (_local2){ return (true); }; return (false); } public function setDead(_arg1:Character):void{ var _local2:*; var _local3:*; _local2 = 0; while (_local2 < icons.length) { if (icons[_local2].getChar() == _arg1){ icons[_local2].setColor(dead_color); }; _local2++; }; } public function removeDead():void{ var _local1:*; var _local2:*; var _local3:* = 0; var _local4:* = false; _local1 = 0; while (_local1 < turn_order.length) { icons[_local1].start_y = icons[_local1].y; icons[_local1].target_y = icons[_local1].y; if ((((Character(turn_order[_local1]).health <= 0)) || ((((turn_order[_local1] is PlayerCharacter)) && (turn_order[_local1].retreated))))){ if (_local1 > 1){ _local3 = (_local3 + entry_height); }; icons[_local1].kill(); _local4 = true; } else { icons[_local1].target_y = (icons[_local1].target_y - _local3); }; _local1++; }; if (_local4){ animate_frames = 10; frame_count = -30; addEventListener(Event.ENTER_FRAME, animateFrame); }; } function animateFrame(_arg1:Event):void{ var _local3:*; var _local4:*; frame_count++; if (frame_count < 1){ return; }; if (frame_count > animate_frames){ removeEventListener(Event.ENTER_FRAME, animateFrame); return; }; var _local2:* = 0; while (_local2 < icons.length) { if (icons[_local2].start_y == icons[_local2].target_y){ } else { if (icons[_local2].y == icons[_local2].target_y){ } else { _local3 = (icons[_local2].target_y - icons[_local2].start_y); _local4 = (_local3 / animate_frames); icons[_local2].y = (icons[_local2].start_y + (frame_count * _local4)); }; }; _local2++; }; } } }//package
Section 188
//InitiativePositionIndicator (InitiativePositionIndicator) package { import flash.display.*; public dynamic class InitiativePositionIndicator extends MovieClip { } }//package
Section 189
//Intro (Intro) package { import flash.events.*; import flash.display.*; public class Intro extends MovieClip { private var sponsorIntro:MovieClip; public function Intro():void{ addEventListener(Event.ENTER_FRAME, onFrame); } private function onFrame(_arg1:Event):void{ if (this.currentFrame == this.totalFrames){ removeEventListener(Event.ENTER_FRAME, onFrame); this.stop(); if (parent != null){ parent.removeChild(this); }; dm.main.mainMenu(false, true); }; } private function sponsorIntroClick(_arg1:MouseEvent):void{ if (DungeonMain.ARMORGAMES){ dm.link(Links.ARMORGAMES); } else { dm.link(Links.KONG_HOME); }; } } }//package
Section 190
//Inventory (Inventory) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class Inventory extends Sprite { public var pc_party:Party; public var portraits:Array; public var tooltipController:ItemTooltipController; public var large_portrait:CharGraphic; public var destroy:MovieClip; public var info_panel:CharInfoPanel; public var party_items:InventoryPanel; public var paperdoll:Paperdoll; public var player_health_bar:NumericIndicatorHealth; public var player_power_bar:NumericIndicatorPower; public var options_btn:OptionsButton; public var exit_btn:MovieClip; public var help_btn:MovieClip; public var menu_btn:MovieClip; public var statusbar:TextField; public var player_name_label:TextField; public var player_level_label:TextField; public var empty1:EmptyPortrait; public var empty2:EmptyPortrait; public var empty3:EmptyPortrait; public var empty4:EmptyPortrait; public var goldDisplay:GoldDisplay; public var highlight1:MovieClip; public var highlight2:MovieClip; private var initialised:Boolean;// = false var start_drag_x;// = 0 var start_drag_y;// = 0 var dragging:Boolean;// = false var dragged_icon:InventoryIcon; public static var selectedChar:PlayerCharacter; public function Inventory(_arg1:Party=null):void{ portraits = new Array(); super(); if (_arg1 != null){ this.pc_party = _arg1; } else { this.pc_party = dm.main.pc_party; }; exit_btn.addEventListener(MouseEvent.MOUSE_DOWN, exitClick); menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, menuClick); destroy.gotoAndStop(1); destroy.addEventListener(MouseEvent.MOUSE_MOVE, destroyHover); large_portrait.addEventListener(MouseEvent.CLICK, customPortraitClick); statusbar.text = ""; tooltipController = new ItemTooltipController(); highlight1.mouseEnabled = false; highlight1.mouseChildren = false; highlight2.mouseEnabled = false; highlight2.mouseChildren = false; addEventListener(Event.ADDED_TO_STAGE, added); selectChar(pc_party.members[0]); } function added(_arg1:Event):void{ var _local2:*; var _local3:*; removeEventListener(Event.ADDED_TO_STAGE, added); if (stage != null){ init(); _local2 = 2; if (((DungeonMain.showHints) && (!(Dungeon.hintShown(_local2))))){ _local3 = new HintDialog("Status and Inventory", "On this screen you can review and upgrade your characters' skills and statistics, as well as manage their equipment.\n\nEquip items you find by double-clicking their icon, or dragging to the paperdoll or character portrait. \n\nDiscard items by dragging them onto the red 'X' or click on them while holding the 'control' key.", true, true); DungeonMain.hints = (DungeonMain.hints + _local2); stage.addChild(_local3); dm.main.saveInterface(); }; }; } public function cleanup():void{ var _local2:*; if (help_btn != null){ help_btn.cleanup(); }; if (options_btn != null){ options_btn.cleanup(); }; if (exit_btn != null){ exit_btn.removeEventListener(MouseEvent.MOUSE_DOWN, exitClick); }; if (destroy != null){ destroy.removeEventListener(MouseEvent.MOUSE_MOVE, destroyHover); }; if (menu_btn != null){ menu_btn.removeEventListener(MouseEvent.MOUSE_DOWN, menuClick); }; if (large_portrait != null){ large_portrait.removeEventListener(MouseEvent.CLICK, customPortraitClick); }; if (stage != null){ stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); stage.removeEventListener(KeyboardEvent.KEY_UP, reportKeyUp); } else { dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); dm.stage.removeEventListener(KeyboardEvent.KEY_UP, reportKeyUp); }; var _local1:* = 0; while (_local1 < portraits.length) { portraits[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, portraitClick); _local1++; }; _local1 = 0; while (_local1 < Equipment.gearSlots) { _local2 = paperdoll.getChildByName(("slot" + String(_local1))); if (_local2 != null){ _local2.cleanup(); }; _local1++; }; if (party_items != null){ party_items.cleanup(); }; if (info_panel != null){ info_panel.cleanup(); }; } private function customPortraitClick(_arg1:MouseEvent):void{ var _local2:* = new CustomPortraitDialog(selectedChar, this); this.addChild(_local2); } private function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.CONTROL){ destroy.gotoAndStop(2); }; } private function reportKeyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.CONTROL){ destroy.gotoAndStop(1); }; } private function menuClick(_arg1:MouseEvent):void{ var _local2:FadeToBlack = new FadeToBlack(); this.addChild(_local2); dm.main.dungeonMenuClick(_arg1); } function destroyHover(_arg1:MouseEvent){ if (((dragging) && (_arg1.buttonDown))){ destroy.gotoAndStop(2); } else { destroy.gotoAndStop(1); }; } public function init():void{ var _local2:*; var _local3:*; if (initialised){ return; }; initialised = true; selectChar(pc_party.members[0]); goldDisplay.setGold(pc_party.gold); var _local1:* = 0; while (_local1 < pc_party.members.length) { if ((pc_party.members[_local1] is PC_Adventurer)){ } else { pc_party.members[_local1].old_strength = pc_party.members[_local1].strength; pc_party.members[_local1].old_endurance = pc_party.members[_local1].endurance; pc_party.members[_local1].old_dexterity = pc_party.members[_local1].dexterity; pc_party.members[_local1].old_intellect = pc_party.members[_local1].intellect; pc_party.members[_local1].old_stat_points = pc_party.members[_local1].stat_points; _local2 = getChildByName(("empty" + (_local1 + 1))); _local3 = new CharacterPortrait(); _local3.x = _local2.x; _local3.y = _local2.y; _local3.setChar(pc_party.members[_local1]); _local3.name = ("portrait" + _local1); _local3.setGlow(); _local3.setHiding((pc_party.sneaking > 0)); removeChild(_local2); addChild(_local3); _local3.addEventListener(MouseEvent.MOUSE_DOWN, portraitClick); portraits.push(_local3); pc_party.members[_local1].portraitRef = _local3; }; _local1++; }; updateInventoryPanels(); stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, reportKeyUp); } public function updateStats():void{ var _local1:* = 0; while (_local1 < portraits.length) { pc_party.members[_local1].recalculateMaxHealth(); if (portraits[_local1] == null){ } else { portraits[_local1].update(); portraits[_local1].setGlow(); portraits[_local1].setHiding((pc_party.sneaking > 0)); }; _local1++; }; player_health_bar.bar.width = ((60 / 100) * selectedChar.getHealthPercent()); player_health_bar.numbers.text = ((String(selectedChar.health) + "/") + String(selectedChar.health_max)); player_power_bar.bar.width = ((60 / 100) * selectedChar.getPowerPercent()); player_power_bar.numbers.text = ((String(selectedChar.power) + "/") + String(selectedChar.power_max)); if (parent != null){ }; } function portraitClick(_arg1:MouseEvent):void{ selectChar(PlayerCharacter(CharacterPortrait(_arg1.currentTarget).char_ref)); } public function selectChar(_arg1:PlayerCharacter){ var _local2:* = 0; selectedChar = _arg1; tooltipController.setChar(_arg1); player_name_label.text = _arg1.charname; dm.embolden(player_name_label); player_level_label.text = ((("Level " + String(_arg1.level)) + " ") + String(_arg1.classname)); dm.embolden(player_level_label); player_health_bar.bar.width = ((60 / 100) * _arg1.getHealthPercent()); player_health_bar.numbers.text = ((String(_arg1.health) + "/") + String(_arg1.health_max)); player_power_bar.bar.width = ((60 / 100) * _arg1.getPowerPercent()); player_power_bar.numbers.text = ((String(_arg1.power) + "/") + String(_arg1.power_max)); info_panel.setChar(_arg1); trace(("Inventory.selectChar: " + _arg1.charname)); large_portrait.setChar(_arg1); updatePaperdoll(_arg1); party_items.updateFilter(); } public function setDraggable(_arg1:InventoryIcon):void{ _arg1.bg.addEventListener(MouseEvent.MOUSE_DOWN, startItemDragging, false, 0, true); _arg1.bg.addEventListener(MouseEvent.MOUSE_UP, stopItemDragging, false, 0, true); } public function updatePaperdoll(_arg1:PlayerCharacter):void{ var _local2:*; var _local3:*; var _local4:uint = (numChildren - 1); setChildIndex(paperdoll, _local4); tooltipController.destroyTooltip(); _local3 = 0; while (_local3 < Equipment.gearSlots) { _local2 = paperdoll.getChildByName(("slot" + String(_local3))); if (_local2 == null){ } else { paperdoll.removeChild(_local2); }; _local3++; }; _local3 = 0; while (_local3 < Equipment.gearSlots) { if (_local3 == Equipment.weapon){ if (((!((_arg1.gear[_local3] == null))) && (Weapon(_arg1.gear[_local3]).twoHanded))){ paperdoll.offhand.gotoAndStop(2); } else { paperdoll.offhand.gotoAndStop(1); }; }; if (_arg1.gear[_local3] == null){ } else { if (_arg1.gear[_local3].slot == Equipment.gearSlots){ } else { if (_arg1.gear[_local3].slot != _local3){ } else { _local2 = new InventoryIcon(_arg1.gear[_local3], tooltipController); _local2.x = paperdoll.getSlotX(_arg1.gear[_local3].slot); _local2.y = paperdoll.getSlotY(_arg1.gear[_local3].slot); _local2.name = ("slot" + String(_local3)); paperdoll.addChild(_local2); setDraggable(_local2); }; }; }; _local3++; }; info_panel.setChar(_arg1); } public function updateInventoryPanels():void{ var _local1:* = 0; var _local2:* = 0; tooltipController.destroyTooltip(); var _local3:* = new InventoryPanel(pc_party, tooltipController); _local3.x = party_items.x; _local3.y = party_items.y; _local3.width = party_items.original_width; _local3.height = party_items.original_height; removeChild(party_items); party_items.cleanup(); party_items = null; party_items = _local3; addChildAt(party_items, (numChildren - 1)); setChildIndex(paperdoll, (numChildren - 1)); party_items.updateListeners(); var _local4:int = (pc_party.inventory.length + pc_party.overflow.length); trace(("update inventory panels - new count: " + _local4)); party_items.updateCount(_local4); } public function checkDropTarget(_arg1:Event){ if (!dragging){ return; }; if (dragged_icon == null){ return; }; if (dragged_icon.dropTarget == null){ return; }; if (dragged_icon.dropTarget.parent == null){ return; }; if (dragged_icon.dropTarget.parent == destroy){ destroy.gotoAndStop(2); } else { destroy.gotoAndStop(1); }; } function startItemDragging(_arg1:MouseEvent):void{ var _local2:*; if (_arg1.ctrlKey){ _local2 = InventoryIcon(_arg1.currentTarget.parent); _local2.bg.removeEventListener(MouseEvent.MOUSE_UP, stopItemDragging); destroyItem(_local2.item_ref); return; }; if (_arg1.currentTarget.parent == null){ return; }; dragged_icon = InventoryIcon(_arg1.currentTarget.parent); dm.childToTop(dragged_icon); dm.childToTop(dragged_icon.parent); start_drag_x = dragged_icon.x; start_drag_y = dragged_icon.y; InventoryIcon(dragged_icon).startDrag(); dragging = true; stage.addEventListener(Event.ENTER_FRAME, checkDropTarget); tooltipController.destroyTooltip(); _arg1.updateAfterEvent(); } private function draggedOnPaperdoll(_arg1:Object):Boolean{ if (_arg1 == null){ return (false); }; if (_arg1.dropTarget == null){ return (false); }; if (paperdoll.contains(_arg1.dropTarget)){ return (true); }; return (false); } private function getEquipSound(_arg1:Item):int{ if ((_arg1 is iSword)){ return (SoundControl.equipSword); }; if ((_arg1 is iAxe)){ return (SoundControl.equipAxe); }; if ((_arg1 is iDagger)){ return (SoundControl.equipDagger); }; if ((_arg1 is iMace)){ return (SoundControl.equipMace); }; if ((_arg1 is iSpear)){ return (SoundControl.equipSpear); }; if ((_arg1 is iBow)){ return (SoundControl.equipBow); }; if ((_arg1 is iCrossbow)){ return (SoundControl.equipCrossbow); }; if ((_arg1 is iStaff)){ return (SoundControl.equipStaff); }; if ((_arg1 is Shield)){ return (SoundControl.equipShield); }; if ((_arg1 is iParryingDagger)){ return (SoundControl.equipDagger); }; return (SoundControl.equipGeneric); } public function equipped(_arg1:Item, _arg2:PlayerCharacter){ statusbar.text = (((_arg2.charname + " equips the ") + _arg1.item_name) + "."); dm.sound.play(getEquipSound(_arg1), 1, true); _arg1 = null; updateStats(); updatePaperdoll(selectedChar); updateInventoryPanels(); } public function equipFailed(_arg1:Item, _arg2:PlayerCharacter){ updatePaperdoll(selectedChar); updateInventoryPanels(); statusbar.text = (((_arg2.charname + " cannot equip the ") + _arg1.item_name) + "."); } private function portraitFromCharacter(_arg1:PlayerCharacter):CharacterPortrait{ var _local2:* = 0; while (_local2 < portraits.length) { if (portraits[_local2].char_ref == _arg1){ return (portraits[_local2]); }; _local2++; }; return (null); } public function consume(_arg1:Consumable, _arg2:PlayerCharacter){ var _local5:int; if ((_arg1 is CampaignItemFragment)){ statusbar.text = (((_arg2.charname + " combines the ") + _arg1.item_name) + "s."); } else { statusbar.text = (((_arg2.charname + " uses the ") + _arg1.item_name) + "."); }; var _local3:* = portraitFromCharacter(_arg2); var _local4:int; if (((!((_local3 == null))) && (!((_arg1 is CleanSlate))))){ if ((_arg1 is SneakyScroll)){ trace("sneaky scroll used"); } else { if ((_arg1 is PortalScroll)){ trace("portal scroll used"); } else { if ((_arg1 is ShopTeleportItem)){ trace("portal item used"); } else { if ((_arg1 is CampaignItemStone)){ trace("journeyman stone used"); } else { if ((_arg1 is CampaignItemFragment)){ trace("journeyman fragment used"); } else { if ((_arg1 is LegendaryLure)){ trace("legendary lure used"); } else { if ((_arg1 is CleanSlate)){ trace("clean slate scroll used"); } else { if (_arg1.resurrect){ _local4 = PortraitAnimation.revive; } else { if ((_arg1 is PotionPoisonResist)){ _local4 = PortraitAnimation.buff; } else { if (_arg1.restore_health){ _local4 = PortraitAnimation.heal; } else { if (_arg1.restore_power){ _local4 = PortraitAnimation.gainPower; } else { if (_arg1.damage_resist){ _local4 = PortraitAnimation.armorBuff; } else { _local4 = PortraitAnimation.buff; }; }; }; }; }; }; }; }; }; }; }; }; _local5 = -1; if ((_arg1 is SneakyScroll)){ _local5 = SoundControl.hideSound; } else { if ((_arg1 is PortalScroll)){ _local5 = SoundControl.summon; } else { if ((_arg1 is CampaignItemStone)){ _local5 = SoundControl.summon; } else { if ((_arg1 is LegendaryLure)){ _local5 = SoundControl.monsterClaws; } else { if ((_arg1 is ShopTeleportItem)){ _local5 = SoundControl.summon; } else { if ((_arg1 is CleanSlate)){ _local5 = SoundControl.debuff; } else { if ((_arg1 is CampaignItemFragment)){ _local5 = SoundControl.equipGeneric; } else { _local5 = SoundControl.potionSound; }; }; }; }; }; }; }; if (_local5 != -1){ dm.sound.play(_local5, 1, true); }; }; if (_arg1.stack <= 0){ _arg1 = null; }; updateStats(); updatePaperdoll(selectedChar); updateInventoryPanels(); if (_local4){ _local3.addPortraitAnimation(_local4); }; } public function consumeFailed(_arg1:Item, _arg2:PlayerCharacter){ if ((_arg1 is CampaignItemFragment)){ statusbar.text = (("The " + _arg1.item_name) + " cannot be combined yet."); } else { if ((_arg1 is ShopTeleportItem)){ statusbar.text = "The item has already been used this level."; } else { statusbar.text = (((_arg2.charname + " cannot use the ") + _arg1.item_name) + " at this time."); }; }; updateInventoryPanels(); } public function useItemOn(_arg1:Item, _arg2:PlayerCharacter){ if ((_arg1 is Equipment)){ if (_arg2.equip(Equipment(_arg1))){ equipped(_arg1, _arg2); } else { equipFailed(_arg1, _arg2); }; } else { if ((_arg1 is Consumable)){ if (Consumable(_arg1).consume(_arg2, pc_party)){ pc_party.balanceInventory(); consume(Consumable(_arg1), _arg2); } else { consumeFailed(_arg1, _arg2); }; } else { updateInventoryPanels(); updatePaperdoll(selectedChar); statusbar.text = (("The " + _arg1.item_name) + " is not usable."); }; }; } public function removeItemFrom(_arg1:Item, _arg2:PlayerCharacter){ if (!(_arg1 is Equipment)){ return; }; var _local3:Equipment = Equipment(_arg1); if (_arg2.unequip(Equipment(_arg1))){ updateStats(); updatePaperdoll(selectedChar); updateInventoryPanels(); statusbar.text = (((_arg2.charname + " removes the ") + _local3.item_name) + "."); } else { statusbar.text = (((_arg2.charname + " cannot remove the ") + _local3.item_name) + "."); }; } public function destroyItem(_arg1:Item):void{ var _local2:*; if (_arg1.item_rarity == Item.quest){ statusbar.text = "Quest items cannot be destroyed."; } else { statusbar.text = (_arg1.item_name + " destroyed."); pc_party.destroyItem(_arg1); dm.sound.play(SoundControl.destroyItem, 1, true); _local2 = 0; while (_local2 < Equipment.gearSlots) { if (selectedChar.gear[_local2] == _arg1){ selectedChar.gear[_local2] = null; }; _local2++; }; _arg1 = null; }; tooltipController.destroyTooltip(); updateStats(); updatePaperdoll(selectedChar); updateInventoryPanels(); } private function enchant(_arg1:Item, _arg2:Enchantment, _arg3:InventoryIcon):Boolean{ var _local4:EnchantAnimation; if (_arg2.useOn(Equipment(_arg1), selectedChar, pc_party)){ pc_party.removeFromInventory(_arg2); updateStats(); updatePaperdoll(selectedChar); updateInventoryPanels(); statusbar.text = (((_arg1.item_name + " enchanted with the ") + _arg2.item_name) + "."); _local4 = new EnchantAnimation(); _local4.x = (paperdoll.x + _arg3.x); _local4.y = (paperdoll.y + _arg3.y); stage.addChild(_local4); return (true); }; updateInventoryPanels(); statusbar.text = (((_arg1.item_name + " cannot be enchanted with the ") + _arg2.item_name) + "."); return (false); } private function onPortrait(_arg1:InventoryIcon):CharacterPortrait{ var _local2:CharacterPortrait; if ((((_arg1 == null)) || ((_arg1.dropTarget == null)))){ return (null); }; for each (_local2 in portraits) { if (_local2 == null){ continue; } else { if (_local2 == _arg1.dropTarget){ return (_local2); }; if (_local2.contains(_arg1.dropTarget)){ return (_local2); }; }; }; return (null); } function stopItemDragging(_arg1:MouseEvent):void{ var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:InventoryIcon; var _local13:PlayerCharacter; var _local2:int; _arg1.currentTarget.stopDrag(); if (!dragging){ return; }; dragging = false; stage.removeEventListener(Event.ENTER_FRAME, checkDropTarget); var _local3:Item = InventoryIcon(dragged_icon).item_ref; if ((((dragged_icon.x == start_drag_x)) && ((dragged_icon.y == start_drag_y)))){ return; }; var _local4:* = false; if (dragged_icon.dropTarget != null){ if ((((dragged_icon.dropTarget == destroy)) || (destroy.contains(dragged_icon.dropTarget)))){ _local4 = true; }; }; if (draggedOnPaperdoll(dragged_icon)){ if ((_local3 is Enchantment)){ _local5 = 0; _local6 = 500; _local7 = (dmf.getGlobalX(dragged_icon) + (dragged_icon.width / 2)); _local8 = (dmf.getGlobalY(dragged_icon) + (dragged_icon.height / 2)); trace(((("cx = " + _local7) + ", cy = ") + _local8)); _local2 = 0; while (_local2 < Equipment.gearSlots) { _local9 = ((paperdoll.getSlotX(_local2) + 10) + paperdoll.x); _local10 = ((paperdoll.getSlotY(_local2) + 10) + paperdoll.y); _local11 = dmf.distanceBetween(_local9, _local10, _local7, _local8); trace(((((("test_x = " + _local9) + ", test_y = ") + _local10) + ", dist = ") + _local11)); if (_local11 > 20){ } else { if (_local11 < _local6){ trace(("found new shortest distance: " + _local11)); _local6 = _local11; _local5 = _local2; }; }; _local2++; }; if (_local6 == 500){ updateInventoryPanels(); return; }; trace("we're close to something"); _local12 = InventoryIcon(paperdoll.getChildByName(("slot" + _local5))); if (_local12 != null){ enchant(_local12.item_ref, Enchantment(_local3), _local12); return; }; updateInventoryPanels(); return; } else { if (dragged_icon.parent == paperdoll){ updatePaperdoll(selectedChar); return; }; useItemOn(_local3, selectedChar); }; } else { if (_local4){ destroy.gotoAndStop(1); destroyItem(_local3); } else { if (onPortrait(dragged_icon) != null){ _local13 = PlayerCharacter(onPortrait(dragged_icon).char_ref); useItemOn(_local3, _local13); } else { if ((((party_items == dragged_icon.dropTarget)) || (party_items.contains(dragged_icon.dropTarget)))){ if (paperdoll.contains(dragged_icon)){ removeItemFrom(_local3, selectedChar); } else { updateInventoryPanels(); }; } else { updatePaperdoll(selectedChar); updateInventoryPanels(); }; }; }; }; _arg1.updateAfterEvent(); } public function exitClick(_arg1:MouseEvent){ if (pc_party.overflow.length){ statusbar.text = "Your party is carrying too many items. Discard some."; } else { dm.main.closeInventory(); }; } } }//package
Section 191
//InventoryIcon (InventoryIcon) package { import flash.events.*; import flash.display.*; import flash.text.*; public class InventoryIcon extends MovieClip { var item_ref:Item; var draggable:Boolean;// = false var tooltipController:ItemTooltipController; var taking:Boolean;// = true public var stack_size:TextField; public var outline:MovieClip; public var bg:Sprite; public var enchantGlow:MovieClip; private var mousingOver:Boolean;// = false private var mouseOverFrames:int;// = 0 public var recommendRating:int;// = 0 private var mousedOverEvent:MouseEvent; public function InventoryIcon(_arg1:Item=null, _arg2:ItemTooltipController=null){ if (_arg1 == null){ return; }; if (_arg2 != null){ this.tooltipController = _arg2; }; enchantGlow.gotoAndStop(1); setItem(_arg1); } public function setItem(_arg1:Item):void{ var _local2:int; if (item_ref != null){ cleanup(); }; this.item_ref = _arg1; this.gotoAndStop(_arg1.icon_frame); stack_size.mouseEnabled = false; outline.mouseEnabled = false; outline.mouseChildren = false; enchantGlow.mouseEnabled = false; enchantGlow.mouseChildren = false; if ((((item_ref is Consumable)) && ((Consumable(item_ref).stack > 1)))){ stack_size.text = String(Consumable(item_ref).stack); } else { if (this.contains(stack_size)){ removeChild(stack_size); }; }; outline.gotoAndStop((_arg1.item_rarity + 1)); bg.addEventListener(MouseEvent.MOUSE_OVER, mouseOverInventoryIcon); bg.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveInventoryIcon); bg.addEventListener(MouseEvent.MOUSE_OUT, mouseOutInventoryIcon); if ((((_arg1 is Equipment)) || ((_arg1 is Consumable)))){ bg.doubleClickEnabled = true; bg.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClick); }; if ((_arg1 is Equipment)){ _local2 = (1 + Enchantment.iconIdForEnchantment(Equipment(_arg1).enchantmentType)); enchantGlow.gotoAndStop(_local2); } else { enchantGlow.gotoAndStop(1); }; addEventListener(Event.ENTER_FRAME, onFrame); } public function cleanup():void{ bg.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverInventoryIcon); bg.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveInventoryIcon); bg.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutInventoryIcon); bg.removeEventListener(MouseEvent.DOUBLE_CLICK, doubleClick); if (draggable){ bg.removeEventListener(MouseEvent.MOUSE_DOWN, Inventory(parent.parent).startItemDragging); bg.removeEventListener(MouseEvent.MOUSE_UP, Inventory(parent.parent).stopItemDragging); }; removeEventListener(Event.ENTER_FRAME, onFrame); if (tooltipController != null){ tooltipController.destroyTooltip(); }; } private function onFrame(_arg1:Event):void{ if (mousingOver){ if (mouseOverFrames > Tooltip.delayFrames){ if (tooltipController != null){ tooltipController.showTooltip(mousedOverEvent, item_ref); if ((((((parent is InventoryPanel)) || ((parent is Paperdoll)))) && ((((item_ref is Equipment)) || ((item_ref is Consumable)))))){ tooltipController.enableDoubleClick(this, doubleClick); }; }; }; mouseOverFrames++; }; } function mouseOverInventoryIcon(_arg1:MouseEvent):void{ mousingOver = true; mouseOverFrames = 0; mousedOverEvent = _arg1; } function mouseMoveInventoryIcon(_arg1:MouseEvent):void{ if (mousingOver){ this.mousedOverEvent = _arg1; tooltipController.updatePositionFromEvent(_arg1); } else { mouseOverInventoryIcon(_arg1); }; } function mouseOutInventoryIcon(_arg1:MouseEvent):void{ mousingOver = false; mouseOverFrames = 0; if (tooltipController != null){ tooltipController.destroyTooltip(); }; } function doubleClick(_arg1:MouseEvent=null):void{ var _local2:*; if ((parent is InventoryPanel)){ _local2 = Inventory.selectedChar; Inventory(parent.parent).useItemOn(item_ref, _local2); } else { if ((parent is Paperdoll)){ if ((parent.parent is Inventory)){ Inventory(parent.parent).removeItemFrom(item_ref, Inventory.selectedChar); } else { if ((parent.parent is Shop)){ Shop(parent.parent).removeItemFrom(item_ref, Shop.selectedChar); }; }; }; }; } } }//package
Section 192
//InventoryIconBg (InventoryIconBg) package { import flash.display.*; public dynamic class InventoryIconBg extends MovieClip { } }//package
Section 193
//InventoryPanel (InventoryPanel) package { import flash.events.*; import flash.display.*; import flash.text.*; public class InventoryPanel extends Sprite { const ICON_GAP = 4; const ICON_WIDTH = 20; const ICON_HEIGHT = 20; const row_width = 15; const icon_start_y = 40; const OVERFLOW_START_Y = 140; public var icons:Array; private var tooltipController:ItemTooltipController; private var processing:Boolean;// = false var original_width:int;// = 0 var original_height:int;// = 0 public var count_label:TextField; public var workingAnim:MovieClip; public var ignoreArmorBox:dCheckBox; public var filterAll:InvFilter; public var filterUsable:InvFilter; public var filterWeapons:InvFilter; public var filterArmor:InvFilter; public var filterMisc:InvFilter; public var filterRecommend:InvFilterRecommend; public var sortDirection:MovieClip; public var sortNone:InvFilter; public var sortLevel:InvFilter; public var sortRarity:InvFilter; public var sortType:InvFilter; public var sortValue:InvFilter; private var pc_party:Party; static const FILTER_ALL = 1; static const FILTER_USABLE = 2; static const FILTER_WEAPONS = 3; static const FILTER_ARMOR = 4; static const FILTER_MISC = 5; static const FILTER_RECOMMEND = 10; static const SORT_NONE = 1; static const SORT_TYPE = 2; static const SORT_LEVEL = 3; static const SORT_RARITY = 4; static const SORT_NAME = 5; static const SORT_VALUE = 6; public function InventoryPanel(_arg1:Party=null, _arg2:ItemTooltipController=null):void{ icons = new Array(); super(); original_width = width; original_height = height; this.tooltipController = _arg2; if (_arg1 == null){ this.pc_party = dm.main.pc_party; } else { this.pc_party = _arg1; }; setSortDirection(pc_party.sortAscending); filterAll.filterLabel.text = "All"; filterUsable.filterLabel.text = "Usable"; filterWeapons.filterLabel.text = "Weapons"; filterArmor.filterLabel.text = "Armor"; filterMisc.filterLabel.text = "Misc"; filterAll.addEventListener(MouseEvent.CLICK, doFilterAll); filterUsable.addEventListener(MouseEvent.CLICK, doFilterUsable); filterWeapons.addEventListener(MouseEvent.CLICK, doFilterWeapons); filterArmor.addEventListener(MouseEvent.CLICK, doFilterArmor); filterMisc.addEventListener(MouseEvent.CLICK, doFilterMisc); filterRecommend.addEventListener(MouseEvent.CLICK, doFilterRecommend); sortNone.filterLabel.text = "None"; sortLevel.filterLabel.text = "Level"; sortType.filterLabel.text = "Type"; sortRarity.filterLabel.text = "Rarity"; sortValue.filterLabel.text = "Value"; sortNone.addEventListener(MouseEvent.CLICK, doSortNone); sortType.addEventListener(MouseEvent.CLICK, doSortType); sortLevel.addEventListener(MouseEvent.CLICK, doSortLevel); sortRarity.addEventListener(MouseEvent.CLICK, doSortRarity); sortValue.addEventListener(MouseEvent.CLICK, doSortValue); addEventListener(Event.ENTER_FRAME, perFrame); sanityCheckInventory(); updateSort(false); updateIcons(); updateFilter(); updateRecommendOptions(); ignoreArmorBox.addEventListener(MouseEvent.MOUSE_DOWN, ignoreArmorClicked); ignoreArmorBox.setDescription("Ignore armor values when recommending items for this character", false, 0x999999); } private function sanityCheckInventory():void{ var _local1:Item; var _local2:int; while (_local2 < pc_party.inventory.length) { _local1 = (pc_party.inventory[_local2] as Item); if (_local1 == null){ trace(("null inventory item found at index " + _local2)); pc_party.inventory[_local2] = new PandorasBox(); }; _local2++; }; var _local3:int; while (_local3 < pc_party.overflow.length) { _local1 = (pc_party.overflow[_local3] as Item); if (_local1 == null){ trace(("null overflow item found at index " + _local3)); pc_party.overflow[_local3] = new PandorasBox(); }; _local3++; }; } private function ignoreArmorClicked(_arg1:MouseEvent):void{ Inventory.selectedChar.ignoreArmorValues = !(Inventory.selectedChar.ignoreArmorValues); updateFilter(); } public function updateListeners():void{ var _local1:InventoryIcon; if ((((parent == null)) || (!((parent is Inventory))))){ return; }; for each (_local1 in icons) { Inventory(parent).setDraggable(_local1); }; } private function updateIcons():void{ var _local1:InventoryIcon; var _local2:Item; var _local3:Item; for each (_local1 in icons) { if (this.contains(_local1)){ removeChild(_local1); }; _local1.cleanup(); }; icons.length = 0; for each (_local2 in pc_party.inventory) { if (_local2){ addItemRef(_local2); }; }; for each (_local3 in pc_party.overflow) { if (_local3){ addItemRef(_local3); }; }; updateListeners(); } public function updateFilter():void{ var _local2:MovieClip; var _local3:InventoryIcon; var _local4:*; var _local6:*; var _local7:Array; var _local8:Array; var _local9:Item; var _local10:*; var _local11:*; var _local12:InventoryIcon; var _local1:* = 0; processing = true; if (pc_party.invFilter == FILTER_ALL){ _local2 = filterAll; } else { if (pc_party.invFilter == FILTER_USABLE){ _local2 = filterUsable; } else { if (pc_party.invFilter == FILTER_WEAPONS){ _local2 = filterWeapons; } else { if (pc_party.invFilter == FILTER_ARMOR){ _local2 = filterArmor; } else { if (pc_party.invFilter == FILTER_MISC){ _local2 = filterMisc; } else { if (pc_party.invFilter == FILTER_RECOMMEND){ _local2 = filterRecommend; }; }; }; }; }; }; updateRecommendOptions(); filterAll.gotoAndStop("normal"); filterUsable.gotoAndStop("normal"); filterWeapons.gotoAndStop("normal"); filterArmor.gotoAndStop("normal"); filterMisc.gotoAndStop("normal"); filterRecommend.gotoAndStop("normal"); _local2.gotoAndStop("highlight"); for each (_local3 in icons) { if (this.contains(_local3)){ removeChild(_local3); }; }; _local4 = Inventory.selectedChar; if (_local4 == null){ return; }; var _local5:int; if (pc_party.invFilter == FILTER_RECOMMEND){ _local6 = 0; while (_local6 < Equipment.gearSlots) { _local7 = new Array(); _local8 = new Array(); _local10 = _local4.gear[Equipment.weapon]; if (((!((_local10 == null))) && (_local10.twoHanded))){ //unresolved if } else { for each (_local3 in icons) { _local9 = _local3.item_ref; if (!(_local9 is Equipment)){ } else { if (Equipment(_local9).slot != _local6){ } else { if (!_local4.itemUsable(_local9)){ } else { if ((((((_local6 == Equipment.weapon)) && ((_local9 is Weapon)))) && (Weapon(_local9).twoHanded))){ //unresolved if } else { _local3.recommendRating = _local4.evaluateEquipment(_local3.item_ref); _local7.push(_local3); }; }; }; }; }; _local11 = _local4.evaluateEquipment(_local4.gear[_local6]); if (_local7.length){ _local7.sortOn("recommendRating", (Array.DESCENDING | Array.NUMERIC)); for each (_local12 in _local7) { if (_local12.recommendRating > _local11){ drawIcon(_local12, _local5); _local5++; break; }; }; }; }; _local6++; }; } else { for each (_local3 in icons) { if (pc_party.invFilter == FILTER_USABLE){ if (_local4.itemUsable(_local3.item_ref)){ drawIcon(_local3, _local5); _local5++; }; } else { if (pc_party.invFilter == FILTER_WEAPONS){ if ((_local3.item_ref is Weapon)){ drawIcon(_local3, _local5); _local5++; }; } else { if (pc_party.invFilter == FILTER_ARMOR){ if ((_local3.item_ref is Armor)){ drawIcon(_local3, _local5); _local5++; }; } else { if (pc_party.invFilter == FILTER_MISC){ if ((((((((_local3.item_ref is Jewellery)) || ((_local3.item_ref is iCloak)))) || ((_local3.item_ref is Offhand)))) || (!((_local3.item_ref is Equipment))))){ drawIcon(_local3, _local5); _local5++; }; } else { drawIcon(_local3, _local5); _local5++; }; }; }; }; }; }; processing = false; } private function drawIcon(_arg1:InventoryIcon, _arg2:int):void{ var _local3:* = 0; var _local4:* = Math.floor((_arg2 / row_width)); if (_arg2 < Party.MAX_INVENTORY){ _local3 = (_arg2 % row_width); _arg1.x = (10 + (_local3 * (ICON_WIDTH + ICON_GAP))); _arg1.y = (icon_start_y + (_local4 * (ICON_HEIGHT + ICON_GAP))); } else { if (_arg2 < (Party.MAX_INVENTORY + Party.MAX_OVERFLOW)){ _local3 = (_arg2 % row_width); _arg1.x = (10 + (_local3 * (ICON_WIDTH + ICON_GAP))); _arg1.y = OVERFLOW_START_Y; }; }; this.addChild(_arg1); } public function cleanup():void{ var _local1:InventoryIcon; for each (_local1 in icons) { _local1.cleanup(); }; removeEventListener(Event.ENTER_FRAME, perFrame); filterAll.removeEventListener(MouseEvent.CLICK, doFilterAll); filterUsable.removeEventListener(MouseEvent.CLICK, doFilterUsable); filterWeapons.removeEventListener(MouseEvent.CLICK, doFilterWeapons); filterArmor.removeEventListener(MouseEvent.CLICK, doFilterArmor); filterMisc.removeEventListener(MouseEvent.CLICK, doFilterMisc); sortNone.removeEventListener(MouseEvent.CLICK, doSortNone); sortType.removeEventListener(MouseEvent.CLICK, doSortType); sortLevel.removeEventListener(MouseEvent.CLICK, doSortLevel); sortRarity.removeEventListener(MouseEvent.CLICK, doSortRarity); sortValue.removeEventListener(MouseEvent.CLICK, doSortValue); ignoreArmorBox.removeEventListener(MouseEvent.MOUSE_DOWN, ignoreArmorClicked); } public function updateCount(_arg1:int){ var _local2:* = 0xFF0000; var _local3:* = 0xFFFFFF; if (_arg1 > Party.MAX_INVENTORY){ count_label.textColor = _local2; } else { count_label.textColor = _local3; }; count_label.text = ((_arg1 + "/") + Party.MAX_INVENTORY); dm.embolden(count_label); } public function addItemRef(_arg1:Item):InventoryIcon{ var _local5:*; var _local6:*; if (_arg1 == null){ return (null); }; var _local2:* = 0; var _local3:* = 0; var _local4:* = icons.length; if (_local4 < Party.MAX_INVENTORY){ _local3 = Math.floor((_local4 / row_width)); _local2 = (_local4 % row_width); _local5 = new InventoryIcon(_arg1, tooltipController); icons.push(_local5); drawIcon(_local5, _local4); return (_local5); }; if (_local4 < (Party.MAX_INVENTORY + Party.MAX_OVERFLOW)){ _local2 = (_local4 % row_width); _local6 = new InventoryIcon(_arg1, tooltipController); icons.push(_local6); drawIcon(_local6, _local4); return (_local6); }; return (null); } private function doFilterAll(_arg1:MouseEvent):void{ pc_party.invFilter = FILTER_ALL; updateFilter(); } private function doFilterUsable(_arg1:MouseEvent):void{ pc_party.invFilter = FILTER_USABLE; updateFilter(); } private function doFilterWeapons(_arg1:MouseEvent):void{ pc_party.invFilter = FILTER_WEAPONS; updateFilter(); } private function doFilterArmor(_arg1:MouseEvent):void{ pc_party.invFilter = FILTER_ARMOR; updateFilter(); } private function doFilterMisc(_arg1:MouseEvent):void{ pc_party.invFilter = FILTER_MISC; updateFilter(); } private function doFilterRecommend(_arg1:MouseEvent):void{ if (pc_party.invFilter == FILTER_RECOMMEND){ return; }; pc_party.invFilter = FILTER_RECOMMEND; updateFilter(); } private function updateRecommendOptions():void{ if (pc_party.invFilter == FILTER_RECOMMEND){ if (!this.contains(ignoreArmorBox)){ addChild(ignoreArmorBox); }; if (Inventory.selectedChar != null){ ignoreArmorBox.setChecked(Inventory.selectedChar.ignoreArmorValues); }; } else { if (this.contains(ignoreArmorBox)){ removeChild(ignoreArmorBox); }; }; } private function toggleDirection():void{ setSortDirection(!(pc_party.sortAscending)); } private function setSortDirection(_arg1:Boolean):void{ pc_party.sortAscending = _arg1; if (pc_party.sortAscending){ sortDirection.gotoAndStop("up"); } else { sortDirection.gotoAndStop("down"); }; } private function doSortNone(_arg1:MouseEvent):void{ if (pc_party.invSort == SORT_NONE){ toggleDirection(); } else { setSortDirection(false); }; pc_party.invSort = SORT_NONE; updateSort(); } private function doSortType(_arg1:MouseEvent):void{ if (pc_party.invSort == SORT_TYPE){ toggleDirection(); } else { setSortDirection(false); }; pc_party.invSort = SORT_TYPE; updateSort(); } private function doSortLevel(_arg1:MouseEvent):void{ if (pc_party.invSort == SORT_LEVEL){ toggleDirection(); } else { setSortDirection(false); }; pc_party.invSort = SORT_LEVEL; updateSort(); } private function doSortRarity(_arg1:MouseEvent):void{ if (pc_party.invSort == SORT_RARITY){ toggleDirection(); } else { setSortDirection(false); }; pc_party.invSort = SORT_RARITY; updateSort(); } private function doSortValue(_arg1:MouseEvent):void{ if (pc_party.invSort == SORT_VALUE){ toggleDirection(); } else { setSortDirection(false); }; pc_party.invSort = SORT_VALUE; updateSort(); } public function updateSort(_arg1:Boolean=true):void{ var _local2:MovieClip; var _local3:Array; var _local4:uint; var _local5:uint; var _local6:Array; var _local7:Array; var _local8:Array; var _local9:*; processing = true; if (pc_party.invSort == SORT_NONE){ _local2 = sortNone; } else { if (pc_party.invSort == SORT_TYPE){ _local2 = sortType; } else { if (pc_party.invSort == SORT_LEVEL){ _local2 = sortLevel; } else { if (pc_party.invSort == SORT_RARITY){ _local2 = sortRarity; } else { if (pc_party.invSort == SORT_VALUE){ _local2 = sortValue; }; }; }; }; }; sortNone.gotoAndStop(1); sortType.gotoAndStop(1); sortRarity.gotoAndStop(1); sortLevel.gotoAndStop(1); sortValue.gotoAndStop(1); _local2.gotoAndStop(2); if (pc_party.sortAscending){ _local5 = Array.DESCENDING; _local4 = (Array.DESCENDING | Array.NUMERIC); } else { _local5 = 0; _local4 = Array.NUMERIC; }; if (pc_party.invSort == SORT_LEVEL){ _local3 = dm.joinArrays(pc_party.inventory, pc_party.overflow); _local3.sortOn(["item_level", "icon_frame", "item_name"], [_local4, _local4, _local5]); } else { if (pc_party.invSort == SORT_VALUE){ _local3 = dm.joinArrays(pc_party.inventory, pc_party.overflow); _local3.sortOn(["item_value", "item_level", "icon_frame"], [_local4, _local4, _local4]); } else { if (pc_party.invSort == SORT_NAME){ _local3 = dm.joinArrays(pc_party.inventory, pc_party.overflow); _local3.sortOn(["item_name", "item_level", "icon_frame"], [_local5, _local4, _local4]); } else { if (pc_party.invSort == SORT_RARITY){ _local3 = dm.joinArrays(pc_party.inventory, pc_party.overflow); _local3.sortOn(["item_rarity", "item_level", "icon_frame"], [_local5, _local4, _local4]); } else { if (pc_party.invSort == SORT_TYPE){ _local6 = pc_party.getConsumables(); _local7 = pc_party.getEquipment(); _local8 = pc_party.getMisc(); _local6.sortOn(["icon_frame", "item_name", "item_level"], [_local4, _local5, _local4]); _local8.sortOn(["icon_frame", "item_name", "item_level"], [_local4, _local5, _local4]); _local7.sortOn(["slot", "icon_frame", "item_name", "item_level"], [_local4, _local4, _local5, _local4]); if (pc_party.sortAscending){ _local3 = _local7.concat(_local8.concat(_local6)); } else { _local3 = _local6.concat(_local8.concat(_local7)); }; }; }; }; }; }; if (((!((_local3 == null))) && (_local3.length))){ pc_party.inventory.length = 0; pc_party.overflow.length = 0; _local9 = 0; while (_local9 < Party.MAX_INVENTORY) { if (_local3.length){ pc_party.inventory.push(_local3.pop()); }; _local9++; }; while (_local3.length) { pc_party.overflow.push(_local3.pop()); }; }; updateIcons(); if (_arg1){ updateFilter(); } else { processing = false; }; } private function perFrame(_arg1:Event):void{ if (((processing) && ((workingAnim.currentFrame == 1)))){ workingAnim.gotoAndPlay(2); dm.childToTop(workingAnim); } else { if (!processing){ workingAnim.gotoAndStop(1); }; }; } } }//package
Section 194
//InventoryTab (InventoryTab) package { import flash.display.*; import flash.text.*; public class InventoryTab extends MovieClip { var flashing:Boolean;// = false public var tab_text:TextField; public var flasher:MovieClip; public function InventoryTab(){ this.gotoAndStop(1); flashing = true; } public function setFlasher(_arg1:Boolean=true):void{ if (((_arg1) && (!(flashing)))){ flasher.gotoAndPlay(1); flashing = true; } else { if (((!(_arg1)) && (flashing))){ flasher.gotoAndStop(1); flashing = false; }; }; } } }//package
Section 195
//InvFilter (InvFilter) package { import flash.display.*; import flash.text.*; public dynamic class InvFilter extends MovieClip { public var filterLabel:TextField; public function InvFilter(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package
Section 196
//InvFilterRecommend (InvFilterRecommend) package { import flash.display.*; import flash.text.*; public dynamic class InvFilterRecommend extends MovieClip { public var filterLabel:TextField; public function InvFilterRecommend(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package
Section 197
//iParryingDagger (iParryingDagger) package { public class iParryingDagger extends Offhand { public function iParryingDagger(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Parrying Dagger"; slot = offhand; item_level = _arg1; whoEquips = ((Equipment.rogueEquip + Equipment.warriorEquip) + Equipment.rangerEquip); base_armor_rating = 20; icon_frame = 17; grey_name = "Worn"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 2; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Bladeturner"; base_armor_rating = Math.round((base_armor_rating * 1.5)); setDamageReflection(); setEndurance(); mod_quickness = 10; icon_frame = 70; } else { if (_local2 == 2){ item_name = "Distracting Blade"; base_armor_rating = Math.round((base_armor_rating * 1.5)); setBlind(); setAccuracy(); setDexterity(); mod_quickness = 5; icon_frame = 149; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ var _local2:* = super.itemStatsString(_arg1); return (_local2); } } }//package
Section 198
//iPlateBoots (iPlateBoots) package { public class iPlateBoots extends HeavyArmor { public function iPlateBoots(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Plate Sabatons"; icon_frame = 12; slot = Equipment.boots; modifyBaseArmorForSlot(); grey_name = "Battered"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Stalwart Guardian's Sabatons"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.2)))); setStrength(); setEndurance(); setHealthRegen(); icon_frame = 108; } else { if (_local2 == 2){ item_name = "Sabatons of the Valiant Crusader"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setEndurance(); setPowerRegen(); icon_frame = 107; } else { item_name = "Indomitable Sabatons"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 1.5)); setEndurance(); setResistStun(20); setResistPoison(20); icon_frame = 142; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Discretion", 1]); } } }//package
Section 199
//iPlateBreastplate (iPlateBreastplate) package { public class iPlateBreastplate extends HeavyArmor { public function iPlateBreastplate(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Breastplate"; icon_frame = 11; slot = Equipment.armor; modifyBaseArmorForSlot(); grey_name = "Battered"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Stalwart Guardian's Breastplate"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.2)))); setStrength(); setEndurance(); setHealthRegen(); icon_frame = 114; } else { if (_local2 == 2){ item_name = "Breastplate of the Valiant Crusader"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setEndurance(); setPowerRegen(); icon_frame = 113; } else { if (_local2 == 3){ item_name = "Indomitable Breastplate"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 1.5)); setEndurance(); setResistStun(20); setResistPoison(20); icon_frame = 141; } else { item_name = "Dragon Scale Mystical Breastplate"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 0.8)); lore = "The mystical properties of dragon skin give you uncommon speed and protection."; setEndurance(); setHealthRegen(5); mod_quickness = 0; setDamageReflection(20, 20); creator = "jciv"; whoEquips = (whoEquips + ((rogueEquip + barbarianEquip) + rangerEquip)); icon_frame = 179; }; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 200
//iPlateGloves (iPlateGloves) package { public class iPlateGloves extends HeavyArmor { public function iPlateGloves(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Plate Gauntlets"; icon_frame = 14; slot = Equipment.gloves; modifyBaseArmorForSlot(); grey_name = "Battered"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 4; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Stalwart Guardian's Gauntlets"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.2)))); setStrength(); setEndurance(); setHealthRegen(); icon_frame = 110; } else { if (_local2 == 2){ item_name = "Ogrish Gauntlets"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setStrength(2, max_stat_for_purple); setEndurance(); setStunChance(10, 20); icon_frame = 115; } else { if (_local2 == 3){ item_name = "Gauntlets of the Valiant Crusader"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setEndurance(); setPowerRegen(); icon_frame = 109; } else { item_name = "Indomitable Gauntlets"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 1.5)); setEndurance(); setResistStun(20); setResistPoison(20); icon_frame = 140; }; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Staggering", 10]); suffixes.push(["Accuracy", base_accuracy_bonus]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Staggering"){ setStunChance(); }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 201
//iPlateGreaves (iPlateGreaves) package { public class iPlateGreaves extends HeavyArmor { public function iPlateGreaves(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_level = _arg1; item_name = "Plate Greaves"; icon_frame = 18; slot = Equipment.legs; modifyBaseArmorForSlot(); grey_name = "Battered"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Stalwart Guardian's Greaves"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.2)))); setStrength(); setEndurance(); setHealthRegen(); icon_frame = 112; } else { if (_local2 == 2){ item_name = "Greaves of the Valiant Crusader"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setEndurance(); setPowerRegen(); icon_frame = 111; } else { item_name = "Indomitable Greaves"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 1.5)); setEndurance(); setResistStun(20); setResistPoison(20); icon_frame = 139; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 202
//iPlateHelmet (iPlateHelmet) package { public class iPlateHelmet extends HeavyArmor { public function iPlateHelmet(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Plate Helm"; item_level = _arg1; slot = Equipment.head; modifyBaseArmorForSlot(); icon_frame = 2; grey_name = "Dented"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Stalwart Guardian's Helm"; base_armor_rating = Math.round((base_armor_rating * Math.round((purple_armor_multiplier * 1.2)))); setStrength(); setEndurance(); setHealthRegen(); icon_frame = 106; } else { if (_local2 == 2){ item_name = "Helm of the Valiant Crusader"; base_armor_rating = Math.round((base_armor_rating * purple_armor_multiplier)); setIntellect(); setEndurance(); setPowerRegen(); icon_frame = 105; } else { item_name = "Indomitable Helm"; base_armor_rating = Math.round(((base_armor_rating * purple_armor_multiplier) * 1.5)); setEndurance(); setResistStun(20); setResistPoison(20); icon_frame = 138; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 203
//iQuiver (iQuiver) package { public class iQuiver extends Armor { public function iQuiver(_arg1:int=1, _arg2:int=-1){ type = Armor.special; whoEquips = Equipment.rangerEquip; base_armor_rating = 0; materials.length = 0; SetRarity(_arg2); item_level = _arg1; item_name = "Quiver"; icon_frame = 64; slot = Equipment.back; grey_name = "Tattered"; setQuickness(8, 15); if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getItemTypeString(){ return ("Quiver"); } override public function getWorth():int{ return (Math.round((1.2 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 2; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Basilisk-hide Quiver"; setDexterity(2, max_stat_for_purple); setQuickness(2, 5); setStunChance(10, 15); icon_frame = 65; } else { item_name = "Quickdraw Quiver"; setDexterity(2, max_stat_for_purple); setQuickness(10, 15); quickRetreat = true; icon_frame = 144; }; } override public function getItemModifiers():void{ super.getItemModifiers(); var _local1:* = 0; while (_local1 < prefixes.length) { if (prefixes[_local1][0] == "Thick"){ prefixes.splice(_local1, 1); break; }; _local1++; }; prefixes.push(["Staggering", 10]); prefixes.push(["Unerring", base_accuracy_bonus]); prefixes.push(["Venomous", 5]); prefixes.push(["Blinding", 10]); prefixes.push(["Vampiric", 10]); suffixes.push(["Lethality", 1]); } } }//package
Section 204
//iRing (iRing) package { public class iRing extends Jewellery { public function iRing(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Ring"; slot = ring; item_level = _arg1; grey_name = "Tarnished"; whoEquips = Equipment.allEquip; if (item_rarity == Item.orange){ return; }; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); if (item_rarity != Item.purple){ if (materials[material] == "Gold"){ icon_frame = 20; } else { if (materials[material] == "Silver"){ icon_frame = 21; } else { if (materials[material] == "Crystalline"){ icon_frame = 22; } else { if (materials[material] == "Obsidian"){ icon_frame = 23; } else { icon_frame = 21; }; }; }; }; }; } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Nature's Band"; setHealthRegen(); setPowerRegen(3, 5); setResistPoison(30, 40); icon_frame = 61; } else { if (_local2 == 2){ item_name = "Bone Ring"; setVampiric(); setStrength(); setDexterity(); accuracyBonus = 5; icon_frame = 62; } else { item_name = "Ring of Truth"; setEndurance(); setIntellect(); quickRetreat = true; icon_frame = 143; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Protective", 15]); prefixes.push(["Vampiric", 10]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Protective"){ base_armor_rating = prefixes[_local1][1]; return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ var _local2:* = super.itemStatsString(_arg1); return (_local2); } } }//package
Section 205
//iShieldBuckler (iShieldBuckler) package { public class iShieldBuckler extends Shield { public function iShieldBuckler(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Buckler"; slot = offhand; item_level = _arg1; whoEquips = (((Equipment.allEquip - Equipment.mageEquip) - Equipment.barbarianEquip) - Equipment.conjurorEquip); base_armor_rating = 50; mod_quickness = -10; icon_frame = 26; grey_name = "Worn"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.1 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Buckler of the Faded Legion"; base_armor_rating = Math.round((base_armor_rating * 1.25)); setHealthRegen(12); setEndurance(2, max_stat_for_purple); icon_frame = 73; } else { if (_local2 == 2){ item_name = "Foe-Holder"; base_armor_rating = Math.round((base_armor_rating * 1.5)); quickRetreat = true; setEndurance(); setStunChance(10, 20); icon_frame = 74; } else { item_name = "Trickster's Shield"; base_armor_rating = Math.round((base_armor_rating * 1.2)); setStunChance(); setBlind(); setDamageReflection(); icon_frame = 150; }; }; } } }//package
Section 206
//iShieldTower (iShieldTower) package { public class iShieldTower extends Shield { public function iShieldTower(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Tower Shield"; slot = offhand; item_level = _arg1; whoEquips = (Equipment.warriorEquip + Equipment.clericEquip); base_armor_rating = 100; mod_quickness = -20; icon_frame = 28; grey_name = "Dented"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.2 * super.getWorth()))); } override public function itemStatsString(_arg1:String):String{ var _local2:String = super.itemStatsString(_arg1); if (mod_healing){ _local2 = (_local2 + (("Increases the effect of Healing abilities by " + mod_healing) + "\n")); }; return (_local2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Aegis of the Immortal Champion"; base_armor_rating = Math.round((base_armor_rating * 1.3)); setResistPoison(50, 70); setResistStun(50, 70); setEndurance(); icon_frame = 37; } else { if (_local2 == 2){ item_name = "Retribution"; base_armor_rating = Math.round((base_armor_rating * 1.2)); setDamageReflection(50, 75); setStrength(2, max_stat_for_purple); setLethality(); icon_frame = 60; } else { item_name = "Sanctified Guardian"; base_armor_rating = Math.round((base_armor_rating * 1.2)); setEndurance(); setPowerRegen(); mod_healing = (item_level * 2); icon_frame = 151; }; }; } } }//package
Section 207
//iSpear (iSpear) package { public class iSpear extends SteelEdgedWeapon { public function iSpear(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Spear"; slot = weapon; item_level = _arg1; whoEquips = (Equipment.warriorEquip + Equipment.rangerEquip); twoHanded = true; icon_frame = 49; base_damage = spear_base_damage; mod_quickness = (mod_quickness - 10); grey_name = "Bent"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.35 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Wicked Barb"; base_damage_mod = 50; setAccuracy(); setPoisonDamage(); setLethality(5, 10); icon_frame = 50; } else { if (_local2 == 2){ item_name = "Spear of the Fallen Emperor"; base_damage_mod = 40; setHealthRegen(); setPowerRegen(4, 6); setEndurance(2, max_stat_for_purple); icon_frame = 51; } else { item_name = "Ancients' Guardpike"; base_damage_mod = 45; setEndurance(2, max_stat_for_purple); setDamageReflection(); setResistStun(); quickRetreat = true; icon_frame = 152; }; }; } override public function itemStatsString(_arg1:String):String{ var _local2:* = super.itemStatsString(_arg1); _local2 = (_local2 + "\nSpecial(Spear): May make melee attacks past allies from the back row"); return (_local2); } } }//package
Section 208
//iStaff (iStaff) package { public class iStaff extends MageWeapon { public function iStaff(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Staff"; slot = weapon; item_level = _arg1; whoEquips = (Equipment.mageEquip + Equipment.conjurorEquip); twoHanded = true; icon_frame = 66; base_damage = staff_base_damage; grey_name = "Warped"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } override public function getWorth():int{ return (Math.round((1.13 * super.getWorth()))); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Archmage's Channeling Staff"; base_damage_mod = 50; setPowerRegen(5, 10); setResistStun(40, 60); icon_frame = 68; } else { if (_local2 == 2){ item_name = "Luminescent Staff of the Enlightened Magus"; base_damage_mod = 50; setBlind(25, 35); setIntellect(2, max_stat_for_purple); icon_frame = 69; } else { item_name = "Staff of the Exiled Student"; base_damage_mod = 60; setIntellect(); setEndurance(); setVampiric(); icon_frame = 153; }; }; } } }//package
Section 209
//iSword (iSword) package { public class iSword extends SteelEdgedWeapon { public function iSword(_arg1:int=1, _arg2:int=-1){ SetRarity(_arg2); item_name = "Longsword"; slot = weapon; item_level = _arg1; whoEquips = (Equipment.allEquip - Equipment.clericEquip); icon_frame = 3; base_damage = sword_base_damage; grey_name = "Notched"; if (item_rarity == Item.purple){ statsForPurple(); }; generateItem(_arg2); } protected function statsForPurple(){ var _local1:* = 3; var _local2:* = dmf.randomNum(1, _local1); this.purple_num = _local2; if (_local2 == 1){ item_name = "Death's Edge"; lore = "To even touch the blade is to risk death."; base_damage_mod = 60; setLethality(10, 20); icon_frame = 45; } else { if (_local2 == 2){ item_name = "Mageblade"; base_damage_mod = 40; setPowerRegen(4, 6); setIntellect(); icon_frame = 46; } else { item_name = "Orcsbane"; base_damage_mod = 50; setAccuracy(); setEndurance(2, max_stat_for_purple); damageBonusVsCreatureType = MonsterCharacter.greenskin; damageBonusVsCreatureModifier = 1.3; icon_frame = 59; }; }; } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Consecrated", 0]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Consecrated"){ whoEquips = (whoEquips + Equipment.clericEquip); return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 210
//Item (Item) package { public class Item { private var _item_level:int;// = 1 private var _item_name:String;// = "Item" private var _icon_frame:int;// = 1 private var _lore:String;// = "" private var _item_rarity;// = 0 private var _purple_num:int;// = 0 public var playerOwner:PlayerCharacter; public var priceModifier:int;// = 0 private var _creator:String;// = "" static const grey = 0; static const white = 1; static const green = 2; static const blue = 3; static const purple = 4; static const orange = 5; static const quest = 6; static const ITEM_VALUE_INCREASE_PER_LEVEL = 20; public function Item():void{ } public function get item_level():int{ return (this._item_level); } public function set item_level(_arg1:int):void{ this._item_level = _arg1; } public function get item_name():String{ return (this._item_name); } public function set item_name(_arg1:String):void{ this._item_name = _arg1; } public function get icon_frame():int{ return (this._icon_frame); } public function set icon_frame(_arg1:int):void{ this._icon_frame = _arg1; } public function get lore():String{ return (this._lore); } public function set lore(_arg1:String):void{ this._lore = _arg1; } public function get item_rarity():int{ return (this._item_rarity); } public function set item_rarity(_arg1:int):void{ this._item_rarity = _arg1; } public function get purple_num():int{ return (this._purple_num); } public function set purple_num(_arg1:int):void{ this._purple_num = _arg1; } public function get item_value():int{ return (getWorth()); } public function get creator():String{ return (this._creator); } public function set creator(_arg1:String):void{ this._creator = _arg1; } public function itemStatsString(_arg1:String):String{ return (_arg1); } public function getItemTypeString(){ return ("Item"); } public function itemData():ItemData{ var _local1:ItemData = new ItemData(); _local1.item_level = this.item_level; _local1.item_rarity = this.item_rarity; _local1.purple_num = this.purple_num; return (_local1); } public function getWorth():int{ return (99); } public static function textColorForRarity(_arg1:int):uint{ var _local2:* = 0xCCCCCC; var _local3:* = 0x66FF00; var _local4:* = 26367; var _local5:* = 0x9900FF; var _local6:* = 0xCC0000; var _local7:* = 0xFFFFFF; var _local8:* = 0xFF6600; var _local9:* = 0xFFFF00; if (_arg1 == Item.white){ return (_local7); }; if (_arg1 == Item.green){ return (_local3); }; if (_arg1 == Item.blue){ return (_local4); }; if (_arg1 == Item.purple){ return (_local5); }; if (_arg1 == Item.orange){ return (_local8); }; if (_arg1 == Item.quest){ return (_local9); }; return (_local2); } } }//package
Section 211
//ItemComparison (ItemComparison) package { import flash.display.*; import flash.text.*; public class ItemComparison extends MovieClip { public var itemName:TextField; public var indicator:MovieClip; public function ItemComparison(_arg1:PlayerCharacter=null, _arg2:int=-1, _arg3:Equipment=null):void{ var _local5:int; var _local6:int; super(); if ((((_arg1 == null)) || ((_arg2 == -1)))){ return; }; var _local4:Equipment = _arg1.gear[_arg2]; if (_local4 != null){ itemName.text = _local4.item_name; itemName.textColor = Item.textColorForRarity(_local4.item_rarity); dmf.embolden(itemName); if (_arg1.itemUsable(_arg3)){ _local5 = _arg1.evaluateEquipment(_local4); _local6 = _arg1.evaluateEquipment(_arg3); if (_local5 > _local6){ indicator.gotoAndStop("worse"); } else { if (_local6 > _local5){ indicator.gotoAndStop("better"); } else { indicator.gotoAndStop("equal"); }; }; } else { indicator.gotoAndStop("none"); }; } else { itemName.text = "None"; itemName.textColor = Item.textColorForRarity(Item.grey); dmf.embolden(itemName); if (_arg1.itemUsable(_arg3)){ if ((((((_arg2 == Equipment.offhand)) && (!((_arg1.gear[Equipment.weapon] == null))))) && (Weapon(_arg1.gear[Equipment.weapon]).twoHanded))){ indicator.gotoAndStop("blocked"); } else { indicator.gotoAndStop("better"); }; } else { indicator.gotoAndStop("none"); }; }; } } }//package
Section 212
//ItemData (ItemData) package { public class ItemData { private var _item_level:int;// = 1 private var _item_rarity;// = 0 private var _material:int;// = -1 private var _prefix:int;// = -1 private var _suffix:int;// = -1 private var _purple_num:int;// = 0 public function ItemData():void{ } public function get item_level():int{ return (this._item_level); } public function set item_level(_arg1:int):void{ this._item_level = _arg1; } public function get item_rarity():int{ return (this._item_rarity); } public function set item_rarity(_arg1:int):void{ this._item_rarity = _arg1; } public function get material():int{ return (this._material); } public function set material(_arg1:int):void{ this._material = _arg1; } public function get prefix():int{ return (this._prefix); } public function set prefix(_arg1:int):void{ this._prefix = _arg1; } public function get suffix():int{ return (this._suffix); } public function set suffix(_arg1:int):void{ this._suffix = _arg1; } public function get purple_num():int{ return (this._purple_num); } public function set purple_num(_arg1:int):void{ this._purple_num = _arg1; } } }//package
Section 213
//ItemDestroyTarget (ItemDestroyTarget) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.geom.*; public class ItemDestroyTarget extends MovieClip { var tooltip:Tooltip; private function newTooltip():Boolean{ return (true); } function mouseOverTarget(_arg1:MouseEvent):void{ if (_arg1.buttonDown){ return; }; if (tooltip == null){ if (!newTooltip()){ return; }; }; var _local2:* = _arg1.target.mouseX; var _local3:* = _arg1.target.mouseY; var _local4:Point = _arg1.target.localToGlobal(new Point(_arg1.target.mouseX, _arg1.target.mouseY)); if ((_local4.x + tooltip.width) > DungeonMain.APP_WIDTH){ _local2 = (_local2 + (DungeonMain.APP_WIDTH - (_local4.x + tooltip.width))); }; if ((_local4.y + tooltip.height) > DungeonMain.APP_HEIGHT){ _local3 = (_local3 + (DungeonMain.APP_HEIGHT - (_local4.y + tooltip.height))); }; tooltip.x = _local2; tooltip.y = _local3; _arg1.updateAfterEvent(); } function mouseMoveTarget(_arg1:MouseEvent):void{ if (_arg1.buttonDown){ return; }; if (tooltip == null){ if (!newTooltip()){ return; }; }; var _local2:* = _arg1.target.mouseX; var _local3:* = _arg1.target.mouseY; var _local4:Point = _arg1.target.localToGlobal(new Point(_arg1.target.mouseX, _arg1.target.mouseY)); if ((_local4.x + tooltip.width) > DungeonMain.APP_WIDTH){ _local2 = (_local2 + (DungeonMain.APP_WIDTH - (_local4.x + tooltip.width))); }; if ((_local4.y + tooltip.height) > DungeonMain.APP_HEIGHT){ _local3 = (_local3 + (DungeonMain.APP_HEIGHT - (_local4.y + tooltip.height))); }; tooltip.x = _local2; tooltip.y = _local3; _arg1.updateAfterEvent(); } function mouseOutTarget(_arg1:MouseEvent):void{ if (tooltip != null){ removeChild(tooltip); tooltip = null; }; } } }//package
Section 214
//ItemModeTab (ItemModeTab) package { import flash.display.*; import flash.text.*; public dynamic class ItemModeTab extends MovieClip { public var tab_text:TextField; } }//package
Section 215
//ItemTooltip (ItemTooltip) package { import flash.display.*; import flash.text.*; public class ItemTooltip extends Tooltip { public var item_ref:Item; public var equipped_text:MovieClip; public var tooltip_bg:Sprite; public var name_label:TextField; public var type_label:TextField; public var level_label:TextField; public var stats_label:TextField; public var usable_label:TextField; public var enchanted_label:TextField; public var specialLabel:TextField; public var priceLabel:TextField; public var gold:Sprite; public function ItemTooltip(_arg1:Item=null, _arg2:PlayerCharacter=null, _arg3:Boolean=false){ if (_arg1 == null){ return; }; if (!_arg3){ removeChild(equipped_text); }; item_ref = _arg1; name_label.autoSize = TextFieldAutoSize.CENTER; name_label.text = Item(item_ref).item_name; dm.embolden(name_label); var _local4:* = name_label.height; name_label.autoSize = TextFieldAutoSize.NONE; if (_local4 == 16){ name_label.height = (_local4 + 5); } else { name_label.height = (_local4 + 2); }; setTextColor(); level_label.y = ((name_label.y + name_label.height) + 2); type_label.y = ((name_label.y + name_label.height) + 2); if (item_ref.item_level){ level_label.text = ("Level " + String(item_ref.item_level)); } else { if ((item_ref is Consumable)){ level_label.text = ("Stack: " + String(Consumable(item_ref).stack)); } else { removeChild(level_label); }; }; if (item_ref.item_rarity == Item.quest){ type_label.text = "Quest Item"; } else { type_label.text = item_ref.getItemTypeString(); }; var _local5 = ""; if (item_ref.lore != ""){ _local5 = (("\"" + item_ref.lore) + "\"\n\n"); }; _local5 = (_local5 + item_ref.itemStatsString("")); stats_label.text = _local5; stats_label.autoSize = TextFieldAutoSize.CENTER; stats_label.y = ((type_label.y + type_label.height) + 8); if ((((item_ref is Equipment)) && (Equipment(item_ref).enchantmentType))){ enchanted_label.text = ("Enchanted: " + Enchantment.nameForEnchantment(Equipment(item_ref).enchantmentType)); enchanted_label.y = ((stats_label.y + stats_label.height) + 8); usable_label.y = ((enchanted_label.y + enchanted_label.height) + 8); } else { removeChild(enchanted_label); usable_label.y = ((stats_label.y + stats_label.height) + 8); }; if ((item_ref is Equipment)){ usable_label.text = Equipment(item_ref).usableString(); } else { usable_label.text = ""; }; usable_label.autoSize = TextFieldAutoSize.CENTER; var _local6:* = 0xCC0000; var _local7:* = 0xFFFFFF; if (_arg2 != null){ if (_arg2.itemUsable(item_ref)){ usable_label.textColor = _local7; } else { usable_label.textColor = _local6; }; }; priceLabel.text = String(item_ref.getWorth()); priceLabel.autoSize = TextFieldAutoSize.RIGHT; priceLabel.y = ((usable_label.y + usable_label.height) + 2); gold.x = (priceLabel.x - 12); gold.y = (priceLabel.y + 4); specialLabel.y = priceLabel.y; if (item_ref.creator.length){ specialLabel.text = ("by " + item_ref.creator); } else { specialLabel.text = ""; }; tooltip_bg.height = ((priceLabel.y + priceLabel.height) + 4); } override public function get realWidth():int{ return (this.tooltip_bg.width); } override public function get realHeight():int{ return (this.tooltip_bg.height); } public function setTextColor(){ name_label.textColor = Item.textColorForRarity(item_ref.item_rarity); } } }//package
Section 216
//ItemTooltipController (ItemTooltipController) package { import flash.events.*; public class ItemTooltipController { private var tooltip:ItemTooltip; private var c_tooltip:ItemTooltip; private var char_ref:PlayerCharacter; public function ItemTooltipController():void{ } public function setChar(_arg1:PlayerCharacter){ this.char_ref = _arg1; } public function showTooltip(_arg1:MouseEvent, _arg2:Item):void{ if (_arg1 == null){ return; }; if (_arg1.buttonDown){ destroyTooltip(); return; }; if (_arg2 == null){ trace("item_ref null"); return; }; if (tooltip != null){ if (tooltip.item_ref != _arg2){ destroyTooltip(); } else { return; }; }; if (((!((char_ref == null))) && ((_arg2 is Equipment)))){ if (((((!((char_ref.gear[Equipment(_arg2).slot] == null))) && (!((char_ref.gear[Equipment(_arg2).slot] == _arg2))))) && (char_ref.itemUsable(_arg2)))){ c_tooltip = new ItemTooltip(char_ref.gear[Equipment(_arg2).slot], char_ref, true); c_tooltip.mouseEnabled = false; c_tooltip.mouseChildren = false; c_tooltip.name = "c_tooltip"; if (dm.stage != null){ dm.stage.addChild(c_tooltip); }; }; }; tooltip = new ItemTooltip(_arg2, char_ref, false); tooltip.mouseEnabled = false; tooltip.mouseChildren = false; tooltip.name = "tooltip"; if (dm.stage != null){ dm.stage.addChild(tooltip); }; updatePositionFromEvent(_arg1); } public function updatePositionFromEvent(_arg1:MouseEvent):void{ var _local2:int; if (tooltip != null){ tooltip.setForEvent(_arg1); if (c_tooltip != null){ c_tooltip.x = tooltip.x; c_tooltip.y = ((tooltip.y - c_tooltip.realHeight) - 2); if (c_tooltip.y < 0){ _local2 = Math.abs(c_tooltip.y); c_tooltip.y = (c_tooltip.y + _local2); tooltip.y = (tooltip.y + _local2); }; }; }; } public function removeTooltip(_arg1:MouseEvent, _arg2:Item){ if (((!((tooltip == null))) && ((tooltip.item_ref == _arg2)))){ destroyTooltip(); }; } public function destroyTooltip():void{ if (tooltip != null){ tooltip.fade(); }; if (c_tooltip != null){ c_tooltip.fade(); }; tooltip = null; c_tooltip = null; } public function enableDoubleClick(_arg1:InventoryIcon, _arg2:Function):void{ if (tooltip == null){ return; }; tooltip.doubleClickEnabled = true; tooltip.addEventListener(MouseEvent.DOUBLE_CLICK, _arg2, false, 0, true); } } }//package
Section 217
//Jewellery (Jewellery) package { public class Jewellery extends Equipment { public function Jewellery(){ whoEquips = Equipment.allEquip; grey_name = "Tarnished"; materials.push("Silver", "Gold", "Platinum", "Obsidian", "Crystalline"); base_armor_rating = 0; grey_chance = 0; white_chance = 0; green_chance = 70; blue_chance = 29; purple_chance = 1; } override public function getItemTypeString(){ return ("Jewellery"); } override public function itemStatsString(_arg1:String):String{ if (armor_rating){ _arg1 = (String(armor_rating) + " Armor Rating\n"); }; return (super.itemStatsString(_arg1)); } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Might", base_item_stat_bonus]); suffixes.push(["Deftness", base_item_stat_bonus]); } override public function generateItem(_arg1:int):void{ var _local2:* = false; var _local3:* = false; item_rarity = Math.max(Item.green, item_rarity); if (item_rarity == Item.green){ if (dmf.randomNum(0, 100) >= 50){ _local3 = true; } else { _local2 = true; }; }; getItemModifiers(); if ((((item_rarity == Item.blue)) || (_local3))){ prefix = rollForPrefix(item_rarity); }; if ((((item_rarity == Item.blue)) || (_local2))){ suffix = rollForSuffix(item_rarity); }; if (prefix >= 0){ applyPrefix(); }; if (suffix >= 0){ applySuffix(); }; if (base_armor_rating){ armor_rating = scaleArmorForLevel((base_armor_rating * (1 + (base_armor_mod / 100)))); }; if (((materials.length) && ((item_rarity < Item.purple)))){ material = rollForMaterial(item_rarity, materials); } else { material = -1; }; if (material >= 0){ item_name = ((materials[material] + " ") + item_name); }; if (prefix >= 0){ item_name = ((prefixes[prefix][0] + " ") + item_name); }; if (suffix >= 0){ item_name = ((item_name + " of ") + suffixes[suffix][0]); }; if (item_rarity == Item.grey){ item_name = ((grey_name + " ") + item_name); }; } } }//package
Section 218
//LegendaryLure (LegendaryLure) package { public class LegendaryLure extends Consumable { public function LegendaryLure(){ item_name = "Legendary Lure"; lore = "Nobody knows what it's made from. Some say it's made of those who ask what it's made from. But it works."; summons_legendary = true; item_rarity = Item.orange; icon_frame = 185; } override public function getWorth():int{ return (((super.getWorth() * (3 + Math.ceil((item_level / 10)))) * 9)); } } }//package
Section 219
//lethal_effect (lethal_effect) package { import flash.display.*; public dynamic class lethal_effect extends MovieClip { public function lethal_effect(){ addFrameScript(44, frame45); } function frame45(){ this.stop(); } } }//package
Section 220
//LevelUpGlow (LevelUpGlow) package { import flash.display.*; public dynamic class LevelUpGlow extends MovieClip { } }//package
Section 221
//LightArmor (LightArmor) package { public class LightArmor extends Armor { public function LightArmor(){ type = Armor.light; mod_quickness = (mod_quickness - 0); whoEquips = Equipment.allEquip; base_armor_rating = 4; grey_name = "Threadbare"; materials.push("Linen", "Wool", "Velvet", "Silk", "Suncloth", "Aetherweave"); } override public function getItemTypeString(){ return ("Light Armor"); } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ return (super.itemStatsString(_arg1)); } } }//package
Section 222
//LightGreenBar (LightGreenBar) package { import flash.display.*; public dynamic class LightGreenBar extends Sprite { } }//package
Section 223
//Lightning (Lightning) package { import flash.display.*; public dynamic class Lightning extends MovieClip { public var flash:LightningFlash; public function Lightning(){ addFrameScript(0, frame1); } function frame1(){ dm.sound.play(SoundControl.lightning); } } }//package
Section 224
//lightning_sound (lightning_sound) package { import flash.media.*; public dynamic class lightning_sound extends Sound { } }//package
Section 225
//LightningFlash (LightningFlash) package { import flash.display.*; public dynamic class LightningFlash extends MovieClip { public var lightning:RandomLightning; public function LightningFlash(){ addFrameScript(3, frame4); } function frame4(){ this.stop(); } } }//package
Section 226
//Links (Links) package { public class Links { public static const KONG_HOME:String = "http://www.kongregate.com/?gamereferral=monstersden"; public static const KONG_GAME:String = "http://www.kongregate.com/games/garin/monsters-den-book-of-dread/?gamereferral=monstersden"; public static const ARMORGAMES:String = "http://www.armorgames.com"; } }//package
Section 227
//LoaderClass (LoaderClass) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.net.*; import CPMStar.*; import flash.system.*; import flash.external.*; public class LoaderClass extends MovieClip { public var loaded_label:TextField; public var total_label:TextField; public var errorText:TextField; public var bar:MovieClip; public var kongIntro:MovieClip; public var armorIntro:MovieClip; public var onKong:MovieClip; public var adBox:MovieClip; public var clickPlayButton:SimpleButton; public var dungeonMain:MovieClip; var loading:Boolean;// = false static const SITELOCKED:Boolean = true; static const SITELOCK_URL:String = "armorgames.com"; public function LoaderClass(){ addFrameScript(0, frame1, 3, frame4, 4, frame5, 5, frame6); onKong.biclopsLogo.addEventListener(MouseEvent.CLICK, biclopsClick); onKong.kongLogo.addEventListener(MouseEvent.CLICK, kongClick); stage.showDefaultContextMenu = false; this.gotoAndStop(1); onKong.gotoAndStop(1); onKong.armorLogo.visible = false; removeChild(clickPlayButton); if (((SITELOCKED) && (!(hostUrlContains(SITELOCK_URL))))){ removeChild(loaded_label); removeChild(total_label); removeChild(adBox); removeChild(bar); errorText.text = ("Sorry, this version of the game will only run on " + SITELOCK_URL); errorText.textColor = 0xFFFFFF; } else { loading = true; addEventListener(Event.ENTER_FRAME, enterLoaderFrame); if (hostUrlContains("kongregate.com")){ removeChild(adBox); } else { if (hostUrlContains("andkon.com")){ onKong.gotoAndStop(2); removeChild(adBox); } else { if (hostUrlContains("uqudos.com")){ removeChild(adBox); clickPlayButton.addEventListener(MouseEvent.MOUSE_DOWN, playClick); } else { if (((hostUrlContains("armorgames.com")) || ((SITELOCK_URL == "armorgames.com")))){ removeChild(adBox); onKong.removeChild(onKong.sponsoredText); onKong.removeChild(onKong.kongLogo); onKong.y = -62; onKong.armorLogo.visible = true; } else { onKong.x = -86; onKong.y = 50; initializeAds(); clickPlayButton.addEventListener(MouseEvent.MOUSE_DOWN, playClick); }; }; }; }; }; } private function playClick(_arg1:MouseEvent):void{ trace("playClick"); clickPlayButton.removeEventListener(MouseEvent.MOUSE_DOWN, playClick); if (contains(adBox)){ removeChild(adBox); }; if (contains(clickPlayButton)){ removeChild(clickPlayButton); }; removeEventListener(Event.ENTER_FRAME, enterLoaderFrame); if (onKong.kongLogo != null){ onKong.kongLogo.removeEventListener(MouseEvent.CLICK, kongClick); }; onKong.biclopsLogo.removeEventListener(MouseEvent.CLICK, biclopsClick); this.gotoAndStop(3); if (hostUrlContains("kongregate.com")){ this.gotoAndStop(6); } else { if (hostUrlContains("andkon.com")){ this.gotoAndStop(6); } else { if (hostUrlContains("armorgames.com")){ this.gotoAndStop(5); } else { this.gotoAndStop(4); }; }; }; } private function debugSandbox():void{ errorText.text = String(Security.sandboxType); } private function hostUrlContains(_arg1:String):Boolean{ if (stage.loaderInfo.loaderURL.indexOf(_arg1) != -1){ return (true); }; return (false); } function biclopsClick(_arg1:MouseEvent):void{ var url:String; var e = _arg1; url = "http://www.monstrumgames.com"; try { ExternalInterface.call("window.open", url, "_blank", ""); } catch(error) { navigateToURL(new URLRequest(url), "_blank"); }; } function kongClick(_arg1:MouseEvent):void{ var url:String; var e = _arg1; url = Links.KONG_HOME; try { ExternalInterface.call("window.open", url, "_blank", ""); } catch(error) { navigateToURL(new URLRequest(url), "_blank"); }; } function armorClick(_arg1:MouseEvent):void{ var url:String; var e = _arg1; url = Links.ARMORGAMES; try { ExternalInterface.call("window.open", url, "_blank", ""); } catch(error) { navigateToURL(new URLRequest(url), "_blank"); }; } function enterLoaderFrame(_arg1:Event):void{ if (loading){ updateText(_arg1); } else { if (hostUrlContains("kongregate.com")){ playClick(null); } else { if (hostUrlContains("andkon.com")){ playClick(null); } else { if (hostUrlContains("armorgames.com")){ playClick(null); } else { addChild(clickPlayButton); }; }; }; }; } private function initializeAds():void{ var _local1:int; var _local2:int; var _local3:DisplayObject; if (hostUrlContains("armorgames.com")){ _local1 = 1052; _local2 = 15; } else { _local1 = 1429; _local2 = 501; }; if (Security.sandboxType != "localWithFile"){ _local3 = AdLoader.LoadAd(_local1, _local2); adBox.addChild(_local3); }; } private function updateText(_arg1:Event):void{ var _local2:* = stage.loaderInfo.bytesTotal; var _local3:* = stage.loaderInfo.bytesLoaded; loaded_label.text = (String(Math.round((_local3 / 0x0400))) + "kB"); total_label.text = (String(Math.round((_local2 / 0x0400))) + "kB"); bar.width = Math.round(((_local3 / _local2) * 550)); if (_local3 >= _local2){ loading = false; }; } function frame1(){ this.gotoAndStop(1); } function frame4(){ kongIntro.addEventListener(MouseEvent.CLICK, kongClick); } function frame5(){ if (armorIntro){ armorIntro.addEventListener(MouseEvent.CLICK, armorClick); }; } function frame6(){ this.stop(); } } }//package
Section 228
//LoadParty (LoadParty) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.net.*; public class LoadParty extends MovieClip { public var party1:SaveGameStatusContainer; public var party2:SaveGameStatusContainer; public var party3:SaveGameStatusContainer; public var highestRatingField:TextField; public var highestLevelField:TextField; public var highestWaveField:TextField; public var optionsButton:OptionsBookButton; public function LoadParty():void{ DungeonMain.registerAliases(); party1.slot = 1; party2.slot = 2; party3.slot = 3; loadSlot(1); loadSlot(2); loadSlot(3); if (DungeonMain.highScore < party1.score){ DungeonMain.highScore = party1.score; }; if (DungeonMain.highScore < party2.score){ DungeonMain.highScore = party2.score; }; if (DungeonMain.highScore < party3.score){ DungeonMain.highScore = party3.score; }; if (DungeonMain.highLevel < party1.level){ DungeonMain.highLevel = party1.level; }; if (DungeonMain.highLevel < party2.level){ DungeonMain.highLevel = party2.level; }; if (DungeonMain.highLevel < party3.level){ DungeonMain.highLevel = party3.level; }; highestRatingField.text = String(DungeonMain.highScore); highestLevelField.text = String(DungeonMain.highLevel); highestWaveField.text = String(DungeonMain.bestSurvival); addEventListener(Event.ADDED_TO_STAGE, added); } function added(_arg1:Event):void{ var _local3:*; removeEventListener(Event.ADDED_TO_STAGE, added); var _local2:* = 128; if (((DungeonMain.showHints) && (!(Dungeon.hintShown(_local2))))){ _local3 = new HintDialog("Saving", "Monsters' Den saves your progress automatically. You may quit at any time, and return to continue playing your game later.", true, true); DungeonMain.hints = (DungeonMain.hints + _local2); stage.addChild(_local3); dm.main.saveInterface(); }; } private function loadSlot(_arg1:int):void{ var _local2:SharedObject; var _local4:Party; var _local5:SharedObject; if ((((_arg1 < 1)) || ((_arg1 > 3)))){ return; }; var _local3:SaveGameStatusContainer = SaveGameStatusContainer(getChildByName(("party" + _arg1))); _local2 = SharedObject.getLocal((("slot" + _arg1) + "_party")); if (_local2.size > 0){ _local4 = Party(_local2.data.pc_party); if (_local4 == null){ _local3.emptySlot(); return; }; _local5 = SharedObject.getLocal((("slot" + _arg1) + "_chars")); if (_local5.size > 0){ if (_local5.data.char1 != null){ _local4.members[0] = _local5.data.char1; }; if (_local5.data.char2 != null){ _local4.members[1] = _local5.data.char2; }; if (_local5.data.char3 != null){ _local4.members[2] = _local5.data.char3; }; if (_local5.data.char4 != null){ _local4.members[3] = _local5.data.char4; }; }; if (_local3 != null){ _local3.setParty(_local4, _local2.data.battle); }; } else { _local3.emptySlot(); }; } public function menuClick(_arg1:MouseEvent):void{ if (root != null){ dm.main.mainMenu(); cleanup(); dm.main.removeChild(this); }; } public function newGame(_arg1:int):void{ dm.main.startGame(_arg1); cleanup(); } public function deleteSlot(_arg1:int):void{ if ((((_arg1 < 1)) || ((_arg1 >= 4)))){ return; }; DungeonMain.deleteSave(_arg1); var _local2:SaveGameStatusContainer = SaveGameStatusContainer(getChildByName(("party" + _arg1))); if (_local2 != null){ _local2.emptySlot(); }; } public function cleanup():void{ party1.cleanup(); party2.cleanup(); party3.cleanup(); optionsButton.cleanup(); } } }//package
Section 229
//LootSettings (LootSettings) package { import flash.events.*; import flash.display.*; public class LootSettings extends Sprite { public var returnButton:MovieClip; public var checkGrey:dCheckBox; public var checkWhite:dCheckBox; public var checkGreen:dCheckBox; public var checkBlue:dCheckBox; public var checkPurple:dCheckBox; public var checkLightArmor:dCheckBox; public var checkMediumArmor:dCheckBox; public var checkHeavyArmor:dCheckBox; public var checkEnchantments:dCheckBox; public var checkConsumables:dCheckBox; static const GREY = 1; static const WHITE = 2; static const GREEN = 4; static const BLUE = 8; static const PURPLE = 16; static const LIGHT = 32; static const MEDIUM = 64; static const HEAVY = 128; static const CONSUMABLES = 0x0100; static const ENCHANTMENTS = 0x0200; public function LootSettings():void{ checkGrey.setDescription("'Damaged'", true, Item.textColorForRarity(Item.grey)); checkWhite.setDescription("'Common'", true, Item.textColorForRarity(Item.white)); checkGreen.setDescription("'Magical'", true, Item.textColorForRarity(Item.green)); checkBlue.setDescription("'Rare'", true, Item.textColorForRarity(Item.blue)); checkPurple.setDescription("'Unique'", true, Item.textColorForRarity(Item.purple)); checkLightArmor.setDescription("Light Armor"); checkMediumArmor.setDescription("Medium Armor"); checkHeavyArmor.setDescription("Heavy Armor"); checkEnchantments.setDescription("Enchantments"); checkConsumables.setDescription("Consumables"); initValues(); returnButton.addEventListener(MouseEvent.MOUSE_DOWN, returnClick); } public function cleanup():void{ returnButton.removeEventListener(MouseEvent.MOUSE_DOWN, returnClick); } private function returnClick(_arg1:MouseEvent):void{ updateValues(); cleanup(); dm.main.saveParty(); if (parent != null){ if ((parent is TreasureReport)){ TreasureReport(parent).updateSettings(); }; parent.removeChild(this); }; } private function updateValues():void{ var _local1:uint; if (checkGrey.checked){ _local1 = (_local1 + GREY); }; if (checkWhite.checked){ _local1 = (_local1 + WHITE); }; if (checkGreen.checked){ _local1 = (_local1 + GREEN); }; if (checkBlue.checked){ _local1 = (_local1 + BLUE); }; if (checkPurple.checked){ _local1 = (_local1 + PURPLE); }; if (checkLightArmor.checked){ _local1 = (_local1 + LIGHT); }; if (checkMediumArmor.checked){ _local1 = (_local1 + MEDIUM); }; if (checkHeavyArmor.checked){ _local1 = (_local1 + HEAVY); }; if (checkConsumables.checked){ _local1 = (_local1 + CONSUMABLES); }; if (checkEnchantments.checked){ _local1 = (_local1 + ENCHANTMENTS); }; if (dm.party != null){ dm.party.lootSettings = _local1; }; } private function initValues():void{ var _local1:uint; if (dm.party != null){ _local1 = dm.party.lootSettings; }; if ((_local1 & GREY) == GREY){ checkGrey.setChecked(true); } else { checkGrey.setChecked(false); }; if ((_local1 & WHITE) == WHITE){ checkWhite.setChecked(true); } else { checkWhite.setChecked(false); }; if ((_local1 & GREEN) == GREEN){ checkGreen.setChecked(true); } else { checkGreen.setChecked(false); }; if ((_local1 & BLUE) == BLUE){ checkBlue.setChecked(true); } else { checkBlue.setChecked(false); }; if ((_local1 & PURPLE) == PURPLE){ checkPurple.setChecked(true); } else { checkPurple.setChecked(false); }; if ((_local1 & LIGHT) == LIGHT){ checkLightArmor.setChecked(true); } else { checkLightArmor.setChecked(false); }; if ((_local1 & MEDIUM) == MEDIUM){ checkMediumArmor.setChecked(true); } else { checkMediumArmor.setChecked(false); }; if ((_local1 & HEAVY) == HEAVY){ checkHeavyArmor.setChecked(true); } else { checkHeavyArmor.setChecked(false); }; if ((_local1 & CONSUMABLES) == CONSUMABLES){ checkConsumables.setChecked(true); } else { checkConsumables.setChecked(false); }; if ((_local1 & ENCHANTMENTS) == ENCHANTMENTS){ checkEnchantments.setChecked(true); } else { checkEnchantments.setChecked(false); }; } public static function defaultValues():uint{ return ((((((((((GREY + WHITE) + GREEN) + BLUE) + PURPLE) + LIGHT) + MEDIUM) + HEAVY) + CONSUMABLES) + ENCHANTMENTS)); } } }//package
Section 230
//lose_power_effect (lose_power_effect) package { import flash.display.*; public dynamic class lose_power_effect extends MovieClip { } }//package
Section 231
//mAetherguard (mAetherguard) package { public class mAetherguard extends MonsterCharacter { public function mAetherguard(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; classname = "Planar Entity"; ethereal = 20; charname = "Aetherguard"; portrait = CharGraphic.aetherguard; mindless = true; description = "Slightly resistant to physical damage."; quickness = 50; health_max = Math.round((health_max * 1.2)); health = health_max; damage = Math.round((damage * 1.4)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sAetherLightning(this)); } } }//package
Section 232
//mage_staff_sound (mage_staff_sound) package { import flash.media.*; public dynamic class mage_staff_sound extends Sound { } }//package
Section 233
//MageWeapon (MageWeapon) package { public class MageWeapon extends Weapon { public function MageWeapon(){ materials.push("Elm", "Oak", "Ash", "Yew", "Voidwood", "Planespine"); whoEquips = (Equipment.mageEquip + Equipment.conjurorEquip); } override public function getItemTypeString(){ return ("Mage Weapon"); } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ return (super.itemStatsString(_arg1)); } } }//package
Section 234
//mArachnoid (mArachnoid) package { public class mArachnoid extends MonsterCharacter { public function mArachnoid(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; charname = "Arachnoid"; classname = "Deep Creature"; portrait = CharGraphic.arachnoid; mindless = true; description = "Twisted fusion of man and spider. Tangles its enemies in webbing."; poisonResist = 25; quickness = 45; damage_resistance = 0; regenerate = 0; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sArachnoidWeb(this)); } } }//package
Section 235
//mAscendant (mAscendant) package { public class mAscendant extends MonsterCharacter { public function mAscendant(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; power_per_turn = Math.round((power_per_turn * 1.5)); regenerate = 10; charname = Horde.getBeholderName(); classname = "Ascended Human"; portrait = CharGraphic.ascendant; mindless = false; description = "Cult Leader. Defensive spellcaster. Regenerates."; accuracy = 150; damage_resistance = 0; poisonResist = 75; stunResist = 75; quickness = 50; lethalityImmune = true; damage = Math.round((damage * 1.2)); health_max = Math.round((health_max * 1.45)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sAscendantRanged(this)); skills.push(new sCelestialArmor(this)); skills.push(new sCelestialSpeed(this)); skills.push(new sCelestialAccuracy(this)); } } }//package
Section 236
//mBasilisk (mBasilisk) package { public class mBasilisk extends MonsterCharacter { public function mBasilisk(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Deep Creature"; charname = "Basilisk"; portrait = CharGraphic.basilisk; mindless = true; description = "Stuns with attacks."; quickness = 30; damage_resistance = 0; causes_stun_percent = 30; regenerate = 0; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 0.8)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sBasiliskPetrify(this)); } } }//package
Section 237
//mBeholder (mBeholder) package { public class mBeholder extends MonsterCharacter { public function mBeholder(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; charname = Horde.getBeholderName(); classname = "Beholder"; portrait = CharGraphic.beholder; mindless = false; description = "Deep Creature Leader. Powerful spellcaster. Ignores armor."; accuracy = 150; damage_resistance = 0; poisonResist = 30; stunResist = 50; quickness = 40; lethalityImmune = true; damage = Math.round((damage * 1.5)); health_max = Math.round((health_max * 1.25)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sBeholderRanged(this)); skills.push(new sBeholderDrain(this)); skills.push(new sBeholderRecover(this)); } } }//package
Section 238
//mBoneHorror (mBoneHorror) package { public class mBoneHorror extends MonsterCharacter { public function mBoneHorror(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Bone Horror"; portrait = CharGraphic.bone_horror; mindless = true; description = "Undead. Lumbering, jagged monstrosity of bone. Reflects damage."; damage_reflection = 10; quickness = 20; health_max = Math.round((health_max * 1.3)); health = health_max; damage = Math.round((damage * 1.4)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); } } }//package
Section 239
//mCultArcher (mCultArcher) package { public class mCultArcher extends MonsterCharacter { public function mCultArcher(_arg1:int=1){ super(_arg1); type = MonsterCharacter.human; classname = "Human"; power_per_turn = Math.round((power_per_turn * 1.5)); charname = "Protector"; portrait = CharGraphic.cult_archer; mindless = true; description = "Armored. Ranged attack."; quickness = 60; damage_resistance = 20; health_max = Math.round((health_max * 0.9)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterRangedAttack(this)); skills.push(new sCultistArrow(this)); } } }//package
Section 240
//mCultChosen (mCultChosen) package { public class mCultChosen extends MonsterCharacter { public function mCultChosen(_arg1:int=1){ super(_arg1); type = MonsterCharacter.human; classname = "Human"; power_per_turn = Math.round((power_per_turn * 1.5)); charname = "Chosen"; portrait = CharGraphic.cult_chosen; mindless = true; description = "Armored. Warrior/Spellcaster."; quickness = 40; damage_resistance = 20; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1.2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sCultistMeleeStun(this)); skills.push(new sCultistSever(this)); } } }//package
Section 241
//mCultEngine (mCultEngine) package { public class mCultEngine extends MonsterCharacter { public function mCultEngine(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; power_per_turn = Math.round((power_per_turn * 1.5)); charname = Horde.getEngineName(); classname = "Nexus Engine"; portrait = CharGraphic.cult_engine; mindless = false; description = "Sacred Icon. Gathers and stores planar energy."; accuracy = 120; damage_resistance = 35; poisonResist = 100; stunResist = 100; quickness = 10; lethalityImmune = true; damage = Math.round((damage * 1.55)); health_max = Math.round((health_max * 1.3)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterMeleeAE(this)); skills.push(new sEngineConduit(this)); skills.push(new sVoidCannon(this)); } } }//package
Section 242
//mCultNeophyte (mCultNeophyte) package { public class mCultNeophyte extends MonsterCharacter { public function mCultNeophyte(_arg1:int=1){ super(_arg1); type = MonsterCharacter.human; classname = "Human"; power_per_turn = Math.round((power_per_turn * 1.5)); charname = "Neophyte"; portrait = CharGraphic.cult_neophyte; mindless = false; description = "Sacrifice themselves to summon more powerful allies."; quickness = 35; health_max = Math.round((health_max * 0.8)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sTransformAetherguard(this)); } } }//package
Section 243
//mCultPriest (mCultPriest) package { public class mCultPriest extends MonsterCharacter { public function mCultPriest(_arg1:int=1){ super(_arg1); type = MonsterCharacter.human; classname = "Human"; power_per_turn = Math.round((power_per_turn * 1.5)); charname = "Acolyte"; portrait = CharGraphic.cult_priest; mindless = false; description = "Spellcaster. Summons planar entities."; quickness = 35; health_max = Math.round((health_max * 0.8)); health = health_max; damage = Math.round((damage * 0.8)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterMagicAttack(this)); skills.push(new sCultistHeal(this)); skills.push(new sSummonVoidstalker(this)); } } }//package
Section 244
//mCultWarrior (mCultWarrior) package { public class mCultWarrior extends MonsterCharacter { public function mCultWarrior(_arg1:int=1){ super(_arg1); type = MonsterCharacter.human; classname = "Human"; power_per_turn = Math.round((power_per_turn * 1.5)); charname = "Guardian"; portrait = CharGraphic.cult_warrior; mindless = true; description = "Armored."; quickness = 45; damage_resistance = 20; health_max = Math.round((health_max * 0.9)); health = health_max; damage = Math.round((damage * 0.9)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sCultistMeleeStun(this)); } } }//package
Section 245
//mDeathKnight (mDeathKnight) package { public class mDeathKnight extends MonsterCharacter { public function mDeathKnight(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; poisonResist = 50; charname = Horde.getKnightName(); classname = "Fallen Knight"; portrait = CharGraphic.death_knight; mindless = false; description = "Undead Leader. Powerful warrior."; accuracy = 140; damage_resistance = 30; poisonResist = 50; stunResist = 75; quickness = 40; lethalityImmune = true; damage = Math.round((damage * 1.5)); health_max = Math.round((health_max * 1.3)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterMeleeAE(this)); skills.push(new sDeathKnightRally(this)); } } }//package
Section 246
//mDemon (mDemon) package { public class mDemon extends MonsterCharacter { public function mDemon(_arg1:int=1){ super(_arg1); charname = "The Corruptor"; classname = "Demon"; type = MonsterCharacter.special; portrait = CharGraphic.demon; mindless = false; description = "Dungeon Lord. Source of the danger to this world."; accuracy = 140; damage_resistance = 20; poisonResist = 50; stunResist = 75; power_per_turn = 20; quickness = 50; lethalityImmune = true; damage = Math.round((damage * 1.5)); health_max = Math.round((health_max * 3)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sDemonDoubleAttack(this)); skills.push(new sDemonPoison(this)); skills.push(new sDemonClone(this)); } override public function getUniqueItems(_arg1:int):Array{ var _local2:Equipment; var _local3:Array; _local3 = new Array(); _local2 = new iRing(level, Item.orange); _local2.item_name = "Signet of the Demonslayer"; _local2.lore = "Presented to honor those who freed the world from the demon's tyranny."; _local2.replenishing = 20; _local2.powerRegen = 5; _local2.resistPoison = 50; _local2.resistStun = 50; _local2.icon_frame = 116; _local3.push(_local2); _local2 = new iCloak(level, Item.orange); _local2.item_name = "Demonhide Cloak"; _local2.lore = "Fashioned from the skin of the demon itself."; _local2.lethality = 4; _local2.armor_rating = _local2.scaleArmorForLevel(20); _local2.setStrength(3, 5); _local2.setEndurance(3, 5); _local2.setIntellect(3, 5); _local2.setDexterity(3, 5); _local2.icon_frame = 117; _local3.push(_local2); return (_local3); } } }//package
Section 247
//mDragon (mDragon) package { public class mDragon extends MonsterCharacter { public function mDragon(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Dragon"; charname = Horde.getDragonName(); portrait = CharGraphic.dragon; mindless = false; description = "Deep Creature Leader. Attacks multiple enemies."; accuracy = 140; damage_resistance = 20; poisonResist = 0; stunResist = 75; quickness = 25; lethalityImmune = true; damage = Math.round((damage * 1.5)); health_max = Math.round((health_max * 1.6)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sDragonFlame(this)); skills.push(new sDragonTail(this)); } } }//package
Section 248
//mDreadfather (mDreadfather) package { public class mDreadfather extends MonsterCharacter { public function mDreadfather(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; classname = "Demon"; poisonResist = 75; stunResist = 90; charname = "Dreadfather"; portrait = CharGraphic.dreadfather; mindless = false; description = "Lord of Terror."; lethalityImmune = true; power_per_turn = 25; accuracy = 135; quickness = 55; health_max = Math.round((health_max * 3.5)); health = health_max; if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sDreadfatherDrain(this)); skills.push(new sDreadfatherRevive(this)); skills.push(new sForceRetreat(this)); } override public function getUniqueItems(_arg1:int):Array{ var _local2:Equipment; var _local3:Number; var _local4:Array; _local3 = (_arg1 / DungeonMain.MAX_LEVEL); _local4 = new Array(); _local2 = new iClothHat(level, Item.orange); _local2.item_name = "Dreadfather's Visage"; _local2.lore = "Best not to think about how this was made."; _local2.armor_rating = _local2.scaleArmorForLevel(25); _local2.mod_strength = Math.ceil((3 * _local3)); _local2.mod_dexterity = Math.ceil((3 * _local3)); _local2.mod_intellect = Math.ceil((3 * _local3)); _local2.resistStun = 50; _local2.icon_frame = 135; _local4.push(_local2); _local2 = new Offhand(); _local2.item_level = this.level; _local2.item_rarity = Item.orange; _local2.item_name = "The Book of Dread"; _local2.lore = "Dark secrets are held within."; _local2.powerRegen = 4; _local2.vampiric_percent = 10; _local2.mod_intellect = Math.ceil((4 * _local3)); _local2.setPoisonDamage(10); _local2.whoEquips = (Equipment.allEquip - Equipment.barbarianEquip); _local2.icon_frame = 136; _local4.push(_local2); return (_local4); } } }//package
Section 249
//mDwarfCrossbow (mDwarfCrossbow) package { public class mDwarfCrossbow extends MonsterCharacter { public function mDwarfCrossbow(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; classname = "Dwarf"; poisonResist = 20; stunResist = 50; charname = "Crossbowman"; portrait = CharGraphic.dwarf_crossbow; mindless = true; description = "Armored. Ranged attack ignores enemy armor."; quickness = 35; damage_resistance = 20; health_max = Math.round((health_max * 0.9)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sDwarfCrossbowAttack(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 250
//mDwarfManiac (mDwarfManiac) package { public class mDwarfManiac extends MonsterCharacter { public function mDwarfManiac(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; classname = "Dwarf"; poisonResist = 20; stunResist = 100; charname = "Dwarf Maniac"; portrait = CharGraphic.dwarf_maniac; mindless = true; description = "Charges the back row. Immune to stun."; quickness = 40; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1.1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sDwarfCharge(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 251
//mDwarfPrince (mDwarfPrince) package { public class mDwarfPrince extends MonsterCharacter { public function mDwarfPrince(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; poisonResist = 20; stunResist = 75; charname = Horde.getDwarfName(); classname = "Mountain Prince"; portrait = CharGraphic.dwarf_fruit; mindless = false; description = "Dwarf Leader. Noble lord."; accuracy = 130; damage_resistance = 0; quickness = 40; lethalityImmune = true; damage = Math.round((damage * 1)); health_max = Math.round((health_max * 1.5)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sDwarfCrossbowAttack(this)); skills.push(new sDwarfSponge(this)); skills.push(new sDwarfPride(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 252
//mDwarfRunecaster (mDwarfRunecaster) package { public class mDwarfRunecaster extends MonsterCharacter { public function mDwarfRunecaster(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; classname = "Dwarf"; poisonResist = 20; stunResist = 50; charname = "Runecaster"; portrait = CharGraphic.dwarf_scarred; mindless = false; description = "Defensive spellcaster."; quickness = 20; damage_resistance = 10; health_max = Math.round((health_max * 0.8)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sDwarvenAle(this)); skills.push(new sRuneProtection(this)); skills.push(new sRuneStrength(this)); } } }//package
Section 253
//mDwarfVeteran (mDwarfVeteran) package { public class mDwarfVeteran extends MonsterCharacter { public function mDwarfVeteran(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; classname = "Dwarf"; poisonResist = 20; stunResist = 50; charname = "Dwarf Veteran"; portrait = CharGraphic.dwarf_veteran; mindless = true; description = "Recovers from injury."; regenerate = 7; quickness = 35; health_max = Math.round((health_max * 1.2)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sDwarfHammerAE(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 254
//mDwarfWarleader (mDwarfWarleader) package { public class mDwarfWarleader extends MonsterCharacter { public function mDwarfWarleader(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; poisonResist = 20; stunResist = 75; charname = Horde.getDwarfName(); classname = "Battleforger"; portrait = CharGraphic.dwarf_warlord; mindless = false; description = "Dwarf Leader. Expert warrior. Heavily armored."; accuracy = 130; damage_resistance = 50; quickness = 30; lethalityImmune = true; damage = Math.round((damage * 1.35)); health_max = Math.round((health_max * 1.3)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterMeleeAE(this)); skills.push(new sDwarfOnslaught(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 255
//mDwarfWarrior (mDwarfWarrior) package { public class mDwarfWarrior extends MonsterCharacter { public function mDwarfWarrior(_arg1:int=1){ super(_arg1); type = MonsterCharacter.dwarf; classname = "Dwarf"; poisonResist = 20; stunResist = 50; charname = "Dwarf Warrior"; portrait = CharGraphic.dwarf_warrior; mindless = true; description = "Armored."; quickness = 30; damage_resistance = 30; health_max = Math.round((health_max * 0.8)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sDwarfPunishing(this)); skills.push(new sDwarvenAle(this)); } } }//package
Section 256
//MediumArmor (MediumArmor) package { public class MediumArmor extends Armor { public function MediumArmor(){ type = Armor.medium; mod_quickness = (mod_quickness - 1); whoEquips = ((Equipment.allEquip - Equipment.mageEquip) - Equipment.conjurorEquip); base_armor_rating = 10; grey_name = "Patched"; materials.push("Leather", "Studded", "Scaled", "Trollhide", "Symbiotic", "Shiftsteel"); } override public function getWorth():int{ return (Math.round((1.1 * super.getWorth()))); } override public function getItemTypeString(){ return ("Medium Armor"); } override public function getItemModifiers():void{ super.getItemModifiers(); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } override public function itemStatsString(_arg1:String):String{ return (super.itemStatsString(_arg1)); } } }//package
Section 257
//MeleeWeapon (MeleeWeapon) package { public class MeleeWeapon extends Weapon { public function MeleeWeapon(){ materials.push("Iron", "Steel", "Damascene", "Mithril", "Magesteel", "Planeforged"); } override public function getItemTypeString(){ if (twoHanded){ return ("2H Melee Weapon"); }; return ("Melee Weapon"); } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Might", base_item_stat_bonus]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 258
//mFearSower (mFearSower) package { public class mFearSower extends MonsterCharacter { public function mFearSower(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; classname = "Fearsower"; poisonResist = 50; stunResist = 50; charname = "Fearsower"; portrait = CharGraphic.fearSower; mindless = false; description = "Advance agent of the Dreadfather."; accuracy = 100; quickness = 60; health_max = Math.round((health_max * 1.2)); health = health_max; damage = Math.round((damage * 1.2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sInstillFear(this)); skills.push(new sWither(this)); } } }//package
Section 259
//mGargoyle (mGargoyle) package { public class mGargoyle extends MonsterCharacter { public function mGargoyle(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Deep Creature"; type = MonsterCharacter.creature; charname = "Gargoyle"; portrait = CharGraphic.gargoyle; mindless = true; description = "Flying creature. Highly resistant to damage."; quickness = 60; damage_resistance = 80; poisonResist = 100; regenerate = 0; health_max = Math.round((health_max * 0.2)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sMonsterFlightAttack(this)); skills.push(new sMonsterStoneForm(this)); } } }//package
Section 260
//mGhost (mGhost) package { public class mGhost extends MonsterCharacter { public function mGhost(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 100; stunResist = 100; ethereal = 80; charname = "Wraith"; portrait = CharGraphic.ghost; mindless = true; description = "Highly resistant to physical attacks. Ignores armor."; quickness = 60; health_max = Math.round((health_max * 0.3)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sGhostAttack(this)); skills.push(new sGhostTouch(this)); skills.push(new sGhostHide(this)); } } }//package
Section 261
//mGoblinArtificer (mGoblinArtificer) package { public class mGoblinArtificer extends MonsterCharacter { public function mGoblinArtificer(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Goblin Artificer"; portrait = CharGraphic.goblin; mindless = true; description = "Ranged explosive attack. Hated by their kin."; quickness = 60; accuracy = 95; health_max = Math.round((health_max * 0.8)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sGoblinCrossbow(this)); skills.push(new sGoblinGrenade(this)); } } }//package
Section 262
//mGorgon (mGorgon) package { public class mGorgon extends MonsterCharacter { public function mGorgon(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Legendary Creature"; charname = "Gorgon"; portrait = CharGraphic.gorgon; mindless = false; description = "Renowned for her ability to turn her foes to stone."; accuracy = 140; quickness = 60; damage_resistance = 0; causes_stun_percent = 0; regenerate = 0; poisonResist = 50; stunResist = 100; lethalityImmune = true; health_max = Math.round((health_max * 4.3)); health_max = legendaryBonusHealth(_arg1); health = health_max; damage = Math.round((damage * 2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sGorgonSlash(this)); skills.push(new sGorgonGaze(this)); skills.push(new sGorgonSnakes(this)); } override public function getUniqueItems(_arg1:int):Array{ var _local2:Equipment; var _local3:Array; _local3 = new Array(); _local2 = new Offhand(); _local2.item_level = this.level; _local2.item_rarity = Item.orange; _local2.item_name = "Head of the Gorgon"; _local2.lore = "Sever its head, and turn the power of the Gorgon against your enemies."; _local2.powerRegen = 5; _local2.resistPoison = 50; _local2.causes_stun_percent = 50; _local2.whoEquips = Equipment.allEquip; _local2.icon_frame = 130; _local3.push(_local2); _local2 = new iRing(level, Item.orange); _local2.item_name = "Serpentine Band"; _local2.lore = "A trophy from the Gorgon."; _local2.setPoisonDamage(10); _local2.resistPoison = 50; _local2.setStrength(3, 6); _local2.setDexterity(3, 6); _local2.setQuickness(5, 10); _local2.whoEquips = Equipment.allEquip; _local2.icon_frame = 172; _local3.push(_local2); return (_local3); } } }//package
Section 263
//mGreebler (mGreebler) package { public class mGreebler extends MonsterCharacter { public function mGreebler(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Deep Creature"; charname = "Greebler"; portrait = CharGraphic.greebler; description = "Poisonous claws. Can attack at range."; quickness = 65; health_max = Math.round((health_max * 0.8)); health = health_max; damage = Math.round((damage * 0.8)); poison_damage = Math.round((damage * 0.2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sMonsterShadowStrike(this)); } } }//package
Section 264
//mHydraBody (mHydraBody) package { public class mHydraBody extends MonsterCharacter { public function mHydraBody(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Legendary Creature"; charname = "Hydra"; portrait = CharGraphic.hydraBody; mindless = false; description = "Regenerates health and heads."; accuracy = 95; quickness = 30; damage_resistance = 0; causes_stun_percent = 0; regenerate = 5; poisonResist = 40; stunResist = 50; lethalityImmune = true; health_max = Math.round((health_max * 3.3)); health_max = legendaryBonusHealth(_arg1); health = health_max; damage = 0; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sHydraGrowHeads(this)); } override public function getUniqueItems(_arg1:int):Array{ var _local2:Equipment; var _local3:Array; trace("mHydraBody.getUniqueItems"); _local3 = new Array(); _local2 = new iSword(_arg1, Item.orange); _local2.item_name = "Hydra's Tooth"; _local2.lore = "Hastily bound, this razor-sharp tooth confers some of the Hydra's regenerative abilities on the wielder."; _local2.whoEquips = (Equipment.allEquip - Equipment.clericEquip); _local2.icon_frame = 133; Weapon(_local2).base_damage_mod = 100; _local2.setLethality(10, 15); _local2.setHealthRegen(10); _local2.generateItem(Item.orange); _local3.push(_local2); _local2 = new iCloak(_arg1, Item.orange); _local2.item_name = "Hydraskin Cloak"; _local2.lore = "Wrapping oneself in the skin of the Hydra is known to have recuperative effects."; _local2.whoEquips = Equipment.allEquip; _local2.icon_frame = 134; _local2.base_armor_mod = 300; _local2.setHealthRegen(10); _local2.powerRegen = 2; _local2.replenishing = 50; _local2.generateItem(Item.orange); _local3.push(_local2); return (_local3); } } }//package
Section 265
//mHydraHead (mHydraHead) package { public class mHydraHead extends MonsterCharacter { public function mHydraHead(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Legendary Creature"; charname = "Hydra Head"; if (dmf.randomNum(0, 100) > 50){ portrait = CharGraphic.hydraHead1; } else { portrait = CharGraphic.hydraHead2; }; mindless = true; description = "Regenerates health."; accuracy = 125; quickness = 40; damage_resistance = 0; causes_stun_percent = 0; regenerate = 5; poisonResist = 40; lethalityImmune = true; health_max = Math.round((health_max * 1.3)); health_max = legendaryBonusHealth(_arg1); health = health_max; damage = Math.round((damage * 1.2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sHydraBite(this)); } override public function getOrangeLoot():Item{ return (null); } public function togglePortrait():void{ if (portrait == CharGraphic.hydraHead1){ portrait = CharGraphic.hydraHead2; } else { portrait = CharGraphic.hydraHead1; }; } } }//package
Section 266
//MiscTooltip (MiscTooltip) package { import flash.display.*; import flash.text.*; public class MiscTooltip extends Tooltip { public var title_label:TextField; public var text_label:TextField; public var tooltip_bg:Sprite; public function MiscTooltip(_arg1:String="", _arg2:String=""){ if (_arg1 == null){ _arg1 = "Blank"; }; if (_arg2 == null){ _arg2 = "Tooltip contents failed to load."; }; title_label.autoSize = TextFieldAutoSize.CENTER; title_label.text = _arg1; dm.embolden(title_label); var _local3:* = title_label.height; title_label.autoSize = TextFieldAutoSize.NONE; if (_local3 == 16){ title_label.height = (_local3 + 6); } else { title_label.height = (_local3 + 4); }; text_label.y = (title_label.y + title_label.height); text_label.text = _arg2; text_label.autoSize = TextFieldAutoSize.CENTER; tooltip_bg.height = ((text_label.y + text_label.height) + 12); } } }//package
Section 267
//miss_magic_sound (miss_magic_sound) package { import flash.media.*; public dynamic class miss_magic_sound extends Sound { } }//package
Section 268
//miss_melee_sound (miss_melee_sound) package { import flash.media.*; public dynamic class miss_melee_sound extends Sound { } }//package
Section 269
//miss_ranged_sound (miss_ranged_sound) package { import flash.media.*; public dynamic class miss_ranged_sound extends Sound { } }//package
Section 270
//miss_thrown_sound (miss_thrown_sound) package { import flash.media.*; public dynamic class miss_thrown_sound extends Sound { } }//package
Section 271
//mLich (mLich) package { public class mLich extends MonsterCharacter { public function mLich(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Lich"; portrait = CharGraphic.lich; mindless = false; description = "Undead. Spellcaster."; quickness = 35; health_max = Math.round((health_max * 0.8)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterMagicCold(this)); skills.push(new sLichStun(this)); skills.push(new sLichAE(this)); } } }//package
Section 272
//mLightningDrake (mLightningDrake) package { public class mLightningDrake extends MonsterCharacter { public function mLightningDrake(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; charname = "Storm Drake"; classname = "Deep Creature"; portrait = CharGraphic.lightning_drake; mindless = true; description = "Flying creature. Has lightning attack."; quickness = 55; damage_resistance = 0; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1.1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sMonsterFlightAttack(this)); skills.push(new sLightningDrakeAE(this)); } } }//package
Section 273
//mMinotaur (mMinotaur) package { public class mMinotaur extends MonsterCharacter { public function mMinotaur(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; classname = "Legendary Creature"; charname = "Minotaur"; portrait = CharGraphic.minotaur; mindless = false; description = "Half man, Half bull."; accuracy = 130; quickness = 50; damage_resistance = 0; causes_stun_percent = 20; stunResist = 100; regenerate = 0; lethalityImmune = true; health_max = Math.round((health_max * 6)); health_max = legendaryBonusHealth(_arg1); health = health_max; damage = Math.round((damage * 2.2)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterMeleeAE(this)); skills.push(new sMinotaurLabyrinth(this)); } override public function getUniqueItems(_arg1:int):Array{ var _local2:Equipment; var _local3:Array; _local3 = new Array(); _local2 = new iAxe(_arg1, Item.orange); _local2.item_name = "Minotaur's Axe"; _local2.lore = "The axe wielded by the mighty Minotaur."; _local2.whoEquips = ((Equipment.barbarianEquip + Equipment.warriorEquip) + Equipment.rangerEquip); _local2.icon_frame = 137; Weapon(_local2).base_damage_mod = 100; _local2.setStrength(1, 6); _local2.setEndurance(1, 6); _local2.generateItem(Item.orange); _local3.push(_local2); _local2 = new Offhand(); _local2.item_name = "Minotaur Horn"; _local2.lore = "Makes a fine trumpet."; _local2.item_level = this.level; _local2.item_rarity = Item.orange; _local2.setPowerRegen(2, 4); _local2.setHealthRegen(5); _local2.replenishing = 30; _local2.setResistStun(); _local2.setAccuracy(); _local2.quickRetreat = true; _local2.whoEquips = Equipment.allEquip; _local2.icon_frame = 181; _local3.push(_local2); return (_local3); } } }//package
Section 274
//mNecromancer (mNecromancer) package { public class mNecromancer extends MonsterCharacter { public function mNecromancer(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; charname = Horde.getNecromancerName(); classname = "Arch-Lich"; portrait = CharGraphic.necromancer; mindless = false; description = "Undead Leader. Powerful spellcaster."; accuracy = 150; damage_resistance = 10; poisonResist = 50; stunResist = 30; quickness = 35; lethalityImmune = true; damage = Math.round((damage * 1.7)); health_max = Math.round((health_max * 1.4)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterMagicCold(this)); skills.push(new sNecroDrain(this)); skills.push(new sNecroSponge(this)); } } }//package
Section 275
//MochiBot (MochiBot) package { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ var self:MochiBot; var server:String; var lv:URLVariables; var url:String; var req:URLRequest; var loader:Loader; var parent = _arg1; var tag = _arg2; try { self = new (MochiBot); if (Security.sandboxType == "localWithFile"){ return (null); }; parent.addChild(self); Security.allowDomain("core.mochibot.com"); Security.allowInsecureDomain("core.mochibot.com"); server = "http://core.mochibot.com/my/core.swf"; lv = new URLVariables(); lv["sb"] = Security.sandboxType; lv["v"] = Capabilities.version; lv["swfid"] = tag; lv["mv"] = "8"; lv["fv"] = "9"; url = self.root.loaderInfo.loaderURL; if (url.indexOf("http") == 0){ lv["url"] = url; trace("mochibot init: on web"); } else { lv["url"] = "local"; trace("mochibot init: local"); }; req = new URLRequest(server); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); self.addChild(loader); loader.load(req); } catch(error) { trace("Mochibot error"); }; return (self); } } }//package
Section 276
//monster_arrow (monster_arrow) package { import flash.display.*; public dynamic class monster_arrow extends MovieClip { public var spark:monster_arrow_impact; public var blood:BloodRandom; public function monster_arrow(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterArrow); this.spark.x = dm.randomNum(15, 43); this.spark.y = dm.randomNum(15, 43); } function frame45(){ this.stop(); } } }//package
Section 277
//monster_arrow_drainpower (monster_arrow_drainpower) package { import flash.display.*; public dynamic class monster_arrow_drainpower extends MovieClip { public var spark:monster_arrow_impact; public var blood:BloodRandom; public function monster_arrow_drainpower(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterArrow); this.spark.x = dm.randomNum(15, 43); this.spark.y = dm.randomNum(15, 43); } function frame45(){ this.stop(); } } }//package
Section 278
//monster_arrow_impact (monster_arrow_impact) package { import flash.display.*; public dynamic class monster_arrow_impact extends MovieClip { public var hit:MovieClip; public function monster_arrow_impact(){ addFrameScript(11, frame12); } function frame12(){ this.gotoAndStop(12); } } }//package
Section 279
//monster_drain_effect (monster_drain_effect) package { import flash.display.*; public dynamic class monster_drain_effect extends MovieClip { public function monster_drain_effect(){ addFrameScript(44, frame45); } function frame45(){ this.stop(); } } }//package
Section 280
//monster_magic_attack (monster_magic_attack) package { import flash.display.*; public dynamic class monster_magic_attack extends MovieClip { public function monster_magic_attack(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterMagicAttack); } function frame45(){ this.stop(); } } }//package
Section 281
//monster_magic_sound (monster_magic_sound) package { import flash.media.*; public dynamic class monster_magic_sound extends Sound { } }//package
Section 282
//monster_thrown (monster_thrown) package { import flash.display.*; public dynamic class monster_thrown extends MovieClip { public var spark:monster_arrow_impact; public var blood:BloodRandom; public function monster_thrown(){ addFrameScript(0, frame1, 4, frame5, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.thrown); } function frame5(){ this.spark.x = dm.randomNum(15, 43); this.spark.y = dm.randomNum(15, 43); } function frame45(){ this.stop(); } } }//package
Section 283
//MonsterCharacter (MonsterCharacter) package { public class MonsterCharacter extends Character { private var _originalPos:int;// = -1 private var _regenerate:int;// = 0 private var _mindless:Boolean;// = true private var _ethereal:int;// = 0 private var _damageImmune:Boolean;// = false private var _cannotTarget:Boolean;// = false private var _vampiric_percent:int;// = 0 private var _causes_stun_percent:int;// = 0 private var _damage_reflection:int;// = 0 private var _accuracy_damage:int;// = 0 private var _poison_damage:int;// = 0 static const undead:int = 1; static const greenskin:int = 2; static const creature:int = 3; static const human:int = 4; static const dwarf:int = 5; static const special:int = 6; static const HEALTH_SCALE_RATE = 60; static const DAMAGE_SCALE_RATE = 35; static const BASE_HEALTH = 100; static const BASE_DAMAGE = 20; static const BEGINNER_HEALTH_MOD = 0.7; static const BEGINNER_DAMAGE_MOD = 0.75; static const EXTREME_HEALTH_MOD = 1.2; static const EXTREME_DAMAGE_MOD = 1.2; public function MonsterCharacter(_arg1:int=1){ this.level = _arg1; classname = "Monster"; health_max = getHealthMax(_arg1); damage = getBaseDamage(_arg1); } public function get originalPos():int{ return (this._originalPos); } public function set originalPos(_arg1:int):void{ this._originalPos = _arg1; } public function get regenerate():int{ return (this._regenerate); } public function set regenerate(_arg1:int):void{ this._regenerate = _arg1; } public function get mindless():Boolean{ return (this._mindless); } public function set mindless(_arg1:Boolean):void{ this._mindless = _arg1; } public function get ethereal():int{ return (this._ethereal); } public function set ethereal(_arg1:int):void{ this._ethereal = _arg1; } public function get damageImmune():Boolean{ return (this._damageImmune); } public function set damageImmune(_arg1:Boolean):void{ this._damageImmune = _arg1; } public function get cannotTarget():Boolean{ return (this._cannotTarget); } public function set cannotTarget(_arg1:Boolean):void{ this._cannotTarget = _arg1; } public function get vampiric_percent():int{ return (this._vampiric_percent); } public function set vampiric_percent(_arg1:int):void{ this._vampiric_percent = _arg1; } public function get causes_stun_percent():int{ return (this._causes_stun_percent); } public function set causes_stun_percent(_arg1:int):void{ this._causes_stun_percent = _arg1; } public function get damage_reflection():int{ return (this._damage_reflection); } public function set damage_reflection(_arg1:int):void{ this._damage_reflection = _arg1; } public function get accuracy_damage():int{ return (this._accuracy_damage); } public function set accuracy_damage(_arg1:int):void{ this._accuracy_damage = _arg1; } public function get poison_damage():int{ return (this._poison_damage); } public function set poison_damage(_arg1:int):void{ this._poison_damage = _arg1; } override public function getHealthRegen(_arg1:Boolean=true):int{ var _local2:* = Math.round(((regenerate / 100) * health_max)); if (_arg1){ _local2 = (_local2 + buff_healthRegen); }; return (_local2); } override public function getVampiric(_arg1:Boolean=true):int{ if (_arg1){ return ((vampiric_percent + buff_vampiric)); }; return (vampiric_percent); } override public function getDamageReflection(_arg1:Boolean=true):int{ if (_arg1){ return ((damage_reflection + buff_damageReflect)); }; return (damage_reflection); } override public function getPoisonDamage(_arg1:Boolean=true):int{ return (poison_damage); } override public function getAccuracyDamage(_arg1:Boolean=true):int{ return (accuracy_damage); } override public function getStunChance(_arg1:Boolean=true):int{ if (_arg1){ return ((causes_stun_percent + buff_stun)); }; return (causes_stun_percent); } override public function getDamageResist(_arg1:Boolean=true):int{ if (_arg1){ return (Math.min(99, (((damage_resistance + buff_damageResist) + temp_damage_resistance) - debuff_damageResist))); }; return (Math.min(99, damage_resistance)); } override public function damageAfterArmor(_arg1:int, _arg2:Character):int{ var _local3:int = ((damage_resistance + buff_damageResist) - debuff_damageResist); if (_local3 >= 100){ _local3 = 99; }; if (_local3 != 0){ _arg1 = Math.round((_arg1 * (1 - (_local3 / 100)))); }; if (_arg1 <= 0){ _arg1 = 1; }; return (_arg1); } override public function getEffectiveHealth():int{ var _local1:* = ((100 - getDamageResist()) / 100); var _local2:* = Math.round((health / _local1)); return (_local2); } public function resetSkills():void{ var _local1:* = 0; while (_local1 < skills.length) { skills[_local1].aiCastCount = 0; _local1++; }; } public function initSkills():void{ trace((("ALERT! Monster " + charname) + " skills not initialiased correctly!")); } override public function reduceHealth(_arg1:int):int{ var _local2:* = health; var _local3:* = super.reduceHealth(_arg1); if ((((((health <= 0)) && ((_local2 > 0)))) && ((_local3 > 0)))){ }; return (_local3); } public function getUniqueItems(_arg1:int):Array{ trace("MonsterCharacter.getUniqueItems"); var _local2:Array = new Array(); return (_local2); } public function getGenericItems(_arg1:int):Array{ var _local3:Equipment; var _local2:Array = new Array(); trace("MonsterCharacter.getUniqueItems"); _local3 = new iClothHat(_arg1, Item.orange); _local3.item_name = "Victor's Laurels"; _local3.armor_rating = _local3.scaleArmorForLevel(6); _local3.setStrength(3, 5); _local3.setIntellect(3, 5); _local3.setPowerRegen(3, 4); _local3.setQuickness(5, 5); _local3.icon_frame = 154; _local2.push(_local3); _local3 = new iClothRobe(_arg1, Item.orange); _local3.item_name = "Robe of Affliction"; _local3.armor_rating = (_local3.armor_rating * 2); _local3.setBlind(); _local3.setStunChance(); _local3.setVampiric(); _local3.setPoisonDamage(); _local3.setLethality(3, 5); _local3.setIntellect(); _local3.icon_frame = 173; _local2.push(_local3); _local3 = new iLeatherGloves(_arg1, Item.orange); _local3.item_name = "Very Nimble Gloves"; _local3.armor_rating = (_local3.armor_rating * 2); _local3.setDexterity(5, 7); _local3.quickRetreat = true; _local3.setQuickness(5, 10); _local3.setLethality(); _local3.icon_frame = 156; _local2.push(_local3); _local3 = new iLeatherBoots(_arg1, Item.orange); _local3.item_name = "Quicksilver Boots"; _local3.armor_rating = (_local3.armor_rating * 2); _local3.setStrength(3, 5); _local3.setDexterity(3, 5); _local3.setIntellect(3, 5); _local3.setBlind(); _local3.setQuickness(10, 15); _local3.icon_frame = 171; _local2.push(_local3); _local3 = new iPlateHelmet(_arg1, Item.orange); _local3.item_name = "Omega Helm"; _local3.armor_rating = (_local3.armor_rating * 2); _local3.setEndurance(5, 7); _local3.setHealthRegen(); _local3.setLethality(); _local3.icon_frame = 155; _local2.push(_local3); _local3 = new iPlateGreaves(_arg1, Item.orange); _local3.item_name = "Greaves of the Dwarf-King"; _local3.lore = "Uncomfortably tight."; _local3.armor_rating = (_local3.armor_rating * 2); _local3.setEndurance(4, 6); _local3.setResistStun(); _local3.setStunChance(12, 15); _local3.damageBonusVsCreatureType = MonsterCharacter.dwarf; _local3.damageBonusVsCreatureModifier = 1.3; _local3.armorBonusVsCreatureType = MonsterCharacter.dwarf; _local3.armorBonusVsCreatureModifier = 1.3; _local3.icon_frame = 162; _local2.push(_local3); _local3 = new iPlateGloves(_arg1, Item.orange); _local3.item_name = "High Five"; _local3.creator = "Logan"; _local3.armor_rating = (_local3.armor_rating * 2); _local3.powerRegen = 5; _local3.accuracyBonus = 5; _local3.lethality = 5; _local3.causes_stun_percent = 5; _local3.mod_quickness = 5; _local3.icon_frame = 163; _local2.push(_local3); _local3 = new iRing(_arg1, Item.orange); _local3.item_name = "Ring of Boundless Energy"; _local3.setPowerRegen(2, 4); _local3.replenishing = 100; _local3.setQuickness(5, 15); _local3.icon_frame = 164; _local2.push(_local3); _local3 = new iCrossbow(_arg1, Item.orange); _local3.item_name = "Foe-Piercer"; _local3.lore = "Built by master craftsmen, in a long-forgotten age."; Weapon(_local3).base_damage_mod = 70; _local3.setQuickness(2, 5); _local3.setDexterity(3, 6); _local3.setLethality(5, 10); _local3.setStunChance(20, 30); _local3.icon_frame = 183; _local3.generateItem(Item.orange); _local2.push(_local3); _local3 = new iStaff(_arg1, Item.orange); _local3.item_name = "Staff of Destiny"; _local3.lore = "No man may harm the wielder."; Weapon(_local3).base_damage_mod = 70; _local3.armorBonusVsCreatureType = MonsterCharacter.human; _local3.armorBonusVsCreatureModifier = 5; _local3.setQuickness(5, 10); _local3.setIntellect(3, 6); _local3.setEndurance(3, 6); _local3.setHealthRegen(10); _local3.icon_frame = 182; _local3.generateItem(Item.orange); _local2.push(_local3); _local3 = new iParryingDagger(_arg1, Item.orange); _local3.item_name = "Mythic Shadow"; _local3.armor_rating = Math.round((_local3.armor_rating * 1.6)); _local3.setBlind(8, 11); _local3.setQuickness(10, 13); _local3.setStrength(2, 4); _local3.setPoisonDamage(10); _local3.creator = "Dark Nova"; _local3.whoEquips = Equipment.rogueEquip; _local3.icon_frame = 178; _local2.push(_local3); _local3 = new iQuiver(_arg1, Item.orange); _local3.item_name = "The Magical Quiver of Archranger Bilko, Undead Hunter"; _local3.lore = "Bilko was one of the most legendary Rangers to have ever lived."; _local3.damageBonusVsCreatureType = MonsterCharacter.undead; _local3.damageBonusVsCreatureModifier = 1.2; _local3.setDexterity(2, 4); _local3.setIntellect(); _local3.setHealthRegen(10); _local3.setPowerRegen(5); _local3.creator = "SwordPaladin"; _local3.icon_frame = 180; _local2.push(_local3); return (_local2); } public function getOrangeLoot():Item{ var _local2:Array; var _local5:int; var _local6:*; var _local7:ErrorDialog; var _local1 = 50; var _local3:Array = dmf.shuffleArray(getUniqueItems(level)); var _local4:Array = dmf.shuffleArray(getGenericItems(level)); trace(((("MonsterCharacter.getOrangeLoot() - uniques: " + _local3.length) + ", generics: ") + _local4.length)); if ((((_local3 == null)) || (!(_local3.length)))){ _local2 = _local4; } else { if ((((_local4 == null)) || (!(_local4.length)))){ _local2 = _local3; } else { if (dmf.randomNum(0, 99) < _local1){ _local2 = _local3.concat(_local4); } else { _local2 = _local4.concat(_local3); }; }; }; if (_local2.length){ _local5 = 0; while (_local5 < _local2.length) { if (TreasureChest.testItemSuitable(_local2[_local5], dm.main.pc_party)){ return (_local2[_local5]); }; _local5++; }; return (_local2[0]); //unresolved jump }; if (((DungeonMain.KONGREGATE) || (DungeonMain.BETA))){ _local6 = "An error has occurred. Please submit a bug report with the following information:\n\n"; _local6 = (_local6 + "Orange loot generation error!\n"); _local6 = (_local6 + (((("monster: " + charname) + " (") + level) + ")\n")); if (_local3 != null){ _local6 = (_local6 + (("uniques: " + _local3.length) + "\n")); }; if (_local4 != null){ _local6 = (_local6 + (("generics: " + _local4.length) + "\n")); }; _local7 = new ErrorDialog("Error!", _local6); dm.stage.addChild(_local7); }; return (null); } public function resetMonster():void{ clearStatusEffects(); resetSkills(); health = health_max; power = power_max; } public function legendaryBonusHealth(_arg1:int):int{ var _local2:Number = (1 + ((level - 1) * 0.03)); return (Math.ceil((health_max * _local2))); } public static function getHealthIncrease(_arg1:int, _arg2:Boolean=true):int{ var _local4:int; _arg1--; var _local3:* = Math.round((_arg1 * (BASE_HEALTH * (HEALTH_SCALE_RATE / 100)))); if (_arg2){ _local4 = 10; if (((!((dm.party == null))) && (dm.party.extreme))){ _local4 = 8; }; if (_arg1){ _local3 = (_local3 + Math.round((_arg1 * (_arg1 / _local4)))); }; }; return (_local3); } public static function getHealthMax(_arg1:int, _arg2:Boolean=true):int{ var _local3:* = (BASE_HEALTH + getHealthIncrease(_arg1, _arg2)); if (!_arg2){ return (_local3); }; if (_arg1 == 1){ _local3 = Math.round((_local3 * 0.7)); } else { if (_arg1 == 2){ _local3 = Math.round((_local3 * 0.8)); } else { if (_arg1 == 3){ _local3 = Math.round((_local3 * 0.9)); }; }; }; if (dm.party != null){ if (dm.party.beginner){ _local3 = (_local3 * BEGINNER_HEALTH_MOD); }; if (dm.party.extreme){ _local3 = (_local3 * EXTREME_HEALTH_MOD); }; }; return (_local3); } public static function getBaseDamage(_arg1:int):int{ var _local3:int; var _local2:* = (BASE_DAMAGE + Math.round(((_arg1 - 1) * (BASE_DAMAGE * (DAMAGE_SCALE_RATE / 100))))); if (_arg1 == 1){ _local2 = Math.round((_local2 * 0.7)); } else { if (_arg1 == 2){ _local2 = Math.round((_local2 * 0.8)); } else { if (_arg1 == 3){ _local2 = Math.round((_local2 * 0.9)); }; }; }; if (_arg1 > 9){ _local3 = Math.round((_local2 * ((_arg1 - 9) / 200))); _local3 = Math.min(_local3, (PlayerCharacter.baseHealthForLevel(_arg1) * 0.5)); _local2 = (_local2 + _local3); }; if (dm.party != null){ if (dm.party.beginner){ _local2 = (_local2 * BEGINNER_DAMAGE_MOD); }; if (dm.party.extreme){ _local2 = (_local2 * EXTREME_DAMAGE_MOD); }; }; return (_local2); } } }//package
Section 284
//mOrcBerserker (mOrcBerserker) package { public class mOrcBerserker extends MonsterCharacter { public function mOrcBerserker(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Orc Berserker"; portrait = CharGraphic.orc; mindless = true; description = "Attacks twice."; quickness = 60; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterDoubleAttack(this)); } } }//package
Section 285
//mOrcChampion (mOrcChampion) package { public class mOrcChampion extends MonsterCharacter { public function mOrcChampion(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Orc Champion"; portrait = CharGraphic.orc_champion; mindless = true; description = "Orcish elite."; quickness = 45; damage_resistance = 10; health_max = Math.round((health_max * 1.1)); health = health_max; damage = Math.round((damage * 1.1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sOrcSponge(this)); } } }//package
Section 286
//mOrcJuggernaut (mOrcJuggernaut) package { public class mOrcJuggernaut extends MonsterCharacter { public function mOrcJuggernaut(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; charname = Horde.getGreenskinName(); classname = "Half-Troll"; portrait = CharGraphic.orc_juggernaut; mindless = false; description = "Greenskin Leader. Slow, hulking warrior. Regenerates."; accuracy = 120; damage_resistance = 0; poisonResist = 50; stunResist = 75; quickness = 45; lethalityImmune = true; regenerate = 10; damage = Math.round((damage * 1.5)); health_max = Math.round((health_max * 1.6)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterDoubleAttack(this)); skills.push(new sTrollHowl(this)); } } }//package
Section 287
//mOrcSavage (mOrcSavage) package { public class mOrcSavage extends MonsterCharacter { public function mOrcSavage(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Orc Savage"; portrait = CharGraphic.orc_woman; mindless = true; description = "Strong ranged attack, but inaccurate."; quickness = 65; accuracy = 65; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1.1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sOrcAxeThrow(this)); skills.push(new sMonsterDoubleAttack(this)); } } }//package
Section 288
//mOrcShaman (mOrcShaman) package { public class mOrcShaman extends MonsterCharacter { public function mOrcShaman(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Orc Shaman"; portrait = CharGraphic.orc_shaman; mindless = false; description = "Spellcaster. Heals allies and curses enemies."; quickness = 35; health_max = Math.round((health_max * 0.9)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterHeal(this)); skills.push(new sMonsterCurse(this)); } } }//package
Section 289
//mOrcWarlord (mOrcWarlord) package { public class mOrcWarlord extends MonsterCharacter { public function mOrcWarlord(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; charname = Horde.getGreenskinName(); classname = "Orc Warlord"; portrait = CharGraphic.orc_warlord; mindless = false; description = "Greenskin Leader."; accuracy = 140; damage_resistance = 20; poisonResist = 25; stunResist = 75; quickness = 35; lethalityImmune = true; health_max = Math.round((health_max * 1.5)); if (((!((dm.party == null))) && (dm.party.extreme))){ health_max = (health_max * MonsterCharacter.EXTREME_HEALTH_MOD); }; health = health_max; damage = Math.round((damage * 1.6)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sWarlordRevive(this)); skills.push(new sWarlordFocus(this)); skills.push(new sWarlordBuff(this)); } } }//package
Section 290
//morpheus_calls_loop02 (morpheus_calls_loop02) package { import flash.media.*; public dynamic class morpheus_calls_loop02 extends Sound { } }//package
Section 291
//MovementArrowHead (MovementArrowHead) package { import flash.display.*; public dynamic class MovementArrowHead extends MovieClip { } }//package
Section 292
//mPoisonDrake (mPoisonDrake) package { public class mPoisonDrake extends MonsterCharacter { public function mPoisonDrake(_arg1:int=1){ super(_arg1); type = MonsterCharacter.creature; charname = "Poison Drake"; classname = "Deep Creature"; portrait = CharGraphic.poison_drake; mindless = true; description = "Spits poison."; quickness = 45; damage_resistance = 0; poisonResist = 100; health_max = Math.round((health_max * 1)); health = health_max; damage = Math.round((damage * 1)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sPoisonDrakeShot(this)); skills.push(new sPoisonDrakeAE(this)); } } }//package
Section 293
//mSkeleton (mSkeleton) package { public class mSkeleton extends MonsterCharacter { public function mSkeleton(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Skeleton"; portrait = CharGraphic.skeleton; mindless = true; description = "Undead. Fragile, but slowly mends."; quickness = 40; health_max = Math.round((health_max * 1)); health = health_max; damage_resistance = -10; regenerate = 6; stunResist = 0; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); } } }//package
Section 294
//mSkeletonArcher (mSkeletonArcher) package { public class mSkeletonArcher extends MonsterCharacter { public function mSkeletonArcher(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Undead Archer"; portrait = CharGraphic.skeleton_archer; mindless = true; description = "Undead. Ranged attack. Fragile, but slowly mends."; quickness = 50; health_max = Math.round((health_max * 1)); health = health_max; damage_resistance = -10; regenerate = 6; stunResist = 0; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterRangedAttack(this)); } } }//package
Section 295
//mTroll (mTroll) package { public class mTroll extends MonsterCharacter { public function mTroll(_arg1:int=1){ super(_arg1); type = MonsterCharacter.greenskin; classname = "Greenskin"; stunResist = 25; charname = "Troll"; portrait = CharGraphic.troll; mindless = true; description = "Regenerates health. Slow. Strong attack."; quickness = 20; accuracy = 80; damage_resistance = 0; regenerate = 15; health_max = Math.round((health_max * 1.2)); health = health_max; damage = Math.round((damage * 1.6)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttackWeapon(this)); skills.push(new sMonsterPierce(this)); } } }//package
Section 296
//Music (Music) package { import flash.events.*; import flash.media.*; import flash.utils.*; public class Music { const fade_in_time = 1000; const fade_out_time = 500; const sound_fade_steps = 25; var fadeStepCount;// = 0 var channel:SoundChannel; var active:Boolean;// = false var fadeInTimer:Timer; var fadeOutTimer:Timer; static var volumeSetting = 0.15; public function Music(_arg1:Sound=null, _arg2:Boolean=true, _arg3:Boolean=true):void{ if (_arg1 == null){ return; }; var _local4:* = 1; if (_arg2){ _local4 = 99999; }; channel = _arg1.play(0, _local4); if (channel == null){ return; }; active = true; if (_arg3){ this.fadeIn(); } else { this.setVolume(volumeSetting); }; } public function setVolume(_arg1:Number):void{ if (channel == null){ return; }; _arg1 = Math.max(0, _arg1); _arg1 = Math.min(volumeSetting, _arg1); channel.soundTransform = new SoundTransform(_arg1); } public function mute():void{ setVolume(0); } public function stop():void{ if (channel != null){ channel.stop(); }; active = false; } public function fadeIn(_arg1:int=1000):void{ if (channel == null){ return; }; channel.soundTransform = new SoundTransform(0); fadeStepCount = 0; fadeInTimer = new Timer((_arg1 / sound_fade_steps), sound_fade_steps); fadeInTimer.addEventListener(TimerEvent.TIMER, musicFadeInStep); fadeInTimer.addEventListener(TimerEvent.TIMER_COMPLETE, musicFadeInDone); fadeInTimer.start(); } function musicFadeInStep(_arg1:TimerEvent):void{ fadeStepCount++; var _local2:* = (1 / sound_fade_steps); var _local3:* = (fadeStepCount * _local2); _local3 = (_local3 * volumeSetting); if (channel != null){ channel.soundTransform = new SoundTransform(_local3); }; } function musicFadeInDone(_arg1:TimerEvent):void{ fadeInTimer.removeEventListener(TimerEvent.TIMER, musicFadeInStep); fadeInTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, musicFadeInDone); if (channel != null){ channel.soundTransform = new SoundTransform(volumeSetting); }; } public function fadeOut(_arg1:int=1000):void{ if (channel == null){ return; }; active = false; fadeStepCount = sound_fade_steps; channel.soundTransform = new SoundTransform(volumeSetting); fadeOutTimer = new Timer((_arg1 / sound_fade_steps), sound_fade_steps); fadeOutTimer.addEventListener(TimerEvent.TIMER, musicFadeOutStep); fadeOutTimer.addEventListener(TimerEvent.TIMER_COMPLETE, musicFadeOutDone); fadeOutTimer.start(); } function musicFadeOutStep(_arg1:TimerEvent):void{ fadeStepCount--; var _local2:* = (1 / sound_fade_steps); var _local3:* = (fadeStepCount * _local2); _local3 = (_local3 * volumeSetting); if (channel != null){ channel.soundTransform = new SoundTransform(_local3); }; } function musicFadeOutDone(_arg1:TimerEvent):void{ fadeOutTimer.removeEventListener(TimerEvent.TIMER, musicFadeOutStep); fadeOutTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, musicFadeOutDone); if (channel != null){ channel.stop(); }; } } }//package
Section 297
//MuteButton (MuteButton) package { import flash.events.*; import flash.display.*; public class MuteButton extends MovieClip { public function MuteButton():void{ setGraphic(); addEventListener(MouseEvent.MOUSE_DOWN, clicked); } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_DOWN, clicked); } public function setGraphic():void{ if (GlobalVolume.volumeSetting == GlobalVolume.volumeOff){ gotoAndStop("mute"); } else { gotoAndStop("on"); }; } private function clicked(_arg1:MouseEvent):void{ if (GlobalVolume.volumeSetting > GlobalVolume.volumeOff){ GlobalVolume.volumeSetting = GlobalVolume.volumeOff; } else { GlobalVolume.volumeSetting = GlobalVolume.volumeFull; }; GlobalVolume.setVolume(GlobalVolume.volumeSetting); setGraphic(); if (dm.main != null){ dm.main.saveInterface(); }; } } }//package
Section 298
//mVampire (mVampire) package { public class mVampire extends MonsterCharacter { public function mVampire(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Vampire"; portrait = CharGraphic.vampire; mindless = true; description = "Undead. Drains health."; quickness = 60; vampiric_percent = Math.floor((75 + (_arg1 * 0.5))); health_max = Math.round((health_max * 0.9)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sVampireAttack(this)); } } }//package
Section 299
//mVoidstalker (mVoidstalker) package { public class mVoidstalker extends MonsterCharacter { public function mVoidstalker(_arg1:int=1){ super(_arg1); summoned = true; type = MonsterCharacter.special; classname = "Planar Entity"; ethereal = 20; charname = "Voidstalker"; portrait = CharGraphic.voidstalker; description = "Slightly resistant to physical damage. Reduces target's accuracy. Can attack at range."; accuracy_damage = 30; quickness = 80; health_max = Math.round((health_max * 0.7)); health = health_max; damage = Math.round((damage * 0.9)); initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sMonsterAttack(this)); skills.push(new sMonsterShadowStrike(this)); } } }//package
Section 300
//mWhirlwind (mWhirlwind) package { public class mWhirlwind extends MonsterCharacter { public function mWhirlwind(_arg1:int=1){ super(_arg1); type = MonsterCharacter.special; classname = "Whirlwind"; charname = "Whirlwind"; portrait = CharGraphic.whirlwind; description = "Localised weather event. Dissipates at end of round."; summoned = true; quickness = 0; accuracy = 0; damageImmune = true; cannotTarget = true; poisonResist = 100; stunResist = 100; health_max = 1; health = health_max; damage = 0; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sDissipate(this)); } } }//package
Section 301
//mZombie (mZombie) package { public class mZombie extends MonsterCharacter { public function mZombie(_arg1:int=1){ super(_arg1); type = MonsterCharacter.undead; classname = "Undead"; poisonResist = 50; charname = "Zombie"; portrait = CharGraphic.zombie; mindless = true; description = "Undead. Slow, but tough. Has debilitating attacks."; quickness = 20; health_max = Math.round((health_max * 1.3)); health = health_max; initSkills(); } override public function initSkills():void{ skills.length = 0; skills.push(new sZombieAttack(this)); skills.push(new sZombieAE(this)); } } }//package
Section 302
//NewProceedButton (NewProceedButton) package { import flash.display.*; public dynamic class NewProceedButton extends SimpleButton { } }//package
Section 303
//NumericIndicatorHealth (NumericIndicatorHealth) package { import flash.display.*; import flash.text.*; public dynamic class NumericIndicatorHealth extends Sprite { public var numbers:TextField; public var bar:MovieClip; } }//package
Section 304
//NumericIndicatorPower (NumericIndicatorPower) package { import flash.display.*; import flash.text.*; public dynamic class NumericIndicatorPower extends Sprite { public var numbers:TextField; public var bar:MovieClip; } }//package
Section 305
//Offhand (Offhand) package { public class Offhand extends Equipment { public function Offhand(){ slot = offhand; } override public function getItemTypeString(){ return ("Offhand"); } override public function getItemModifiers():void{ super.getItemModifiers(); suffixes.push(["Might", base_item_stat_bonus]); } override public function itemStatsString(_arg1:String):String{ if (armor_rating){ _arg1 = (_arg1 + (String(armor_rating) + " Armor Rating\n")); }; return (super.itemStatsString(_arg1)); } override public function generateItem(_arg1:int):void{ var _local2:* = false; var _local3:* = false; if (item_rarity == Item.green){ if (dmf.randomNum(0, 100) >= 50){ _local3 = true; } else { _local2 = true; }; }; if (item_rarity == Item.grey){ item_rarity = Item.white; }; getItemModifiers(); if ((((item_rarity == Item.blue)) || (_local3))){ prefix = rollForPrefix(item_rarity); }; if ((((item_rarity == Item.blue)) || (_local2))){ suffix = rollForSuffix(item_rarity); }; if (prefix >= 0){ applyPrefix(); }; if (suffix >= 0){ applySuffix(); }; if (base_armor_rating){ armor_rating = scaleArmorForLevel((base_armor_rating * (1 + (base_armor_mod / 100)))); }; if (prefix >= 0){ item_name = ((prefixes[prefix][0] + " ") + item_name); }; if (suffix >= 0){ item_name = ((item_name + " of ") + suffixes[suffix][0]); }; } } }//package
Section 306
//OnOffSelectorMenu (OnOffSelectorMenu) package { import flash.events.*; import flash.display.*; import flash.text.*; public class OnOffSelectorMenu extends MovieClip { public var offLabel:TextField; public var onLabel:TextField; public var isOn:Boolean;// = false public function OnOffSelectorMenu():void{ offLabel.addEventListener(MouseEvent.MOUSE_DOWN, clickOff); onLabel.addEventListener(MouseEvent.MOUSE_DOWN, clickOn); } public function cleanup():void{ offLabel.removeEventListener(MouseEvent.MOUSE_DOWN, clickOff); onLabel.removeEventListener(MouseEvent.MOUSE_DOWN, clickOn); } public function setTo(_arg1:Boolean):void{ if (_arg1){ this.gotoAndStop("on"); } else { this.gotoAndStop("off"); }; this.isOn = _arg1; } function clickOff(_arg1:MouseEvent):void{ setTo(false); } function clickOn(_arg1:MouseEvent):void{ setTo(true); } } }//package
Section 307
//OptionsBookButton (OptionsBookButton) package { import flash.events.*; import flash.display.*; public class OptionsBookButton extends SimpleButton { public function OptionsBookButton():void{ this.addEventListener(MouseEvent.MOUSE_DOWN, clickedOn); } public function cleanup():void{ this.removeEventListener(MouseEvent.MOUSE_DOWN, clickedOn); } function clickedOn(_arg1:MouseEvent):void{ if (stage != null){ stage.addChild(new OptionsScreen()); }; } } }//package
Section 308
//OptionsButton (OptionsButton) package { import flash.events.*; import flash.display.*; public class OptionsButton extends MovieClip { public function OptionsButton():void{ this.addEventListener(MouseEvent.MOUSE_DOWN, clickedOn); } public function cleanup():void{ this.removeEventListener(MouseEvent.MOUSE_DOWN, clickedOn); } function clickedOn(_arg1:MouseEvent):void{ if (stage != null){ stage.addChild(new OptionsScreen()); }; } } }//package
Section 309
//OptionsScreen (OptionsScreen) package { import flash.events.*; import flash.display.*; public class OptionsScreen extends MovieClip { public var vc:VolumeControlMenu; public var quality_selector:QualitySelectorMenu; public var blur_selector:OnOffSelectorMenu; public var portrait_selector:OnOffSelectorMenu; public var tooltip_selector:TooltipSelectorMenu; public var pathfinding_selector:OnOffSelectorMenu; public var yes_btn:MovieClip; public var showHintsBox:dCheckBox; public function OptionsScreen(){ this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, exitClick); vc.init(); showHintsBox.setChecked(DungeonMain.showHints); showHintsBox.setDescription("Show hints and tips"); pathfinding_selector.setTo(DungeonMain.pathfinding); blur_selector.setTo(DungeonMain.combatBlur); portrait_selector.setTo(DungeonMain.portraitHighlight); } function exitClick(_arg1:MouseEvent):void{ DungeonMain.showHints = showHintsBox.checked; DungeonMain.combatBlur = blur_selector.isOn; DungeonMain.portraitHighlight = portrait_selector.isOn; DungeonMain.pathfinding = pathfinding_selector.isOn; if (parent != null){ parent.removeChild(this); } else { if ((((dm.stage == null)) && (!((stage == null))))){ dm.stage = stage; }; if (((!((dm.stage == null))) && (dm.stage.contains(this)))){ dm.stage.removeChild(this); }; }; if (dm.main != null){ dm.main.saveInterface(); }; cleanup(); } private function cleanup():void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, exitClick); blur_selector.cleanup(); portrait_selector.cleanup(); quality_selector.cleanup(); tooltip_selector.cleanup(); pathfinding_selector.cleanup(); } } }//package
Section 310
//PageTurn (PageTurn) package { import flash.events.*; import flash.display.*; public class PageTurn extends MovieClip { public var page:MovieClip; private var child:Sprite; public function PageTurn(_arg1:Sprite=null):void{ addFrameScript(1, frame2, 14, frame15); this.gotoAndStop(1); this.addEventListener(Event.ENTER_FRAME, onFrame); if (_arg1 != null){ setChild(_arg1); }; } public function setChild(_arg1:Sprite):void{ if (((!((child == null))) && (page.contains(child)))){ page.removeChild(child); }; this.child = _arg1; page.addChild(_arg1); } public function animate():void{ this.gotoAndPlay(1); } public function remove():void{ this.removeEventListener(Event.ENTER_FRAME, onFrame); if (((((!((child == null))) && (!((page == null))))) && (page.contains(child)))){ page.removeChild(child); }; if (parent != null){ parent.removeChild(this); trace("page removed"); }; } public function onFrame(_arg1:Event):void{ if (currentFrame == totalFrames){ remove(); }; } function frame2(){ dm.sound.play(SoundControl.pageTurn); } function frame15(){ this.stop(); this.remove(); } } }//package
Section 311
//PandorasBox (PandorasBox) package { public class PandorasBox extends Consumable { public function PandorasBox(){ item_name = "Pandora's Box"; lore = "Historically speaking, it's not a very good idea to open the box."; summons_insanity = true; item_rarity = Item.orange; icon_frame = 186; } override public function getWorth():int{ return ((super.getWorth() * ((3 * (3 + Math.ceil((item_level / 10)))) * 9))); } } }//package
Section 312
//Paperdoll (Paperdoll) package { import flash.display.*; public class Paperdoll extends Sprite { public var head:PaperdollEmptySlot; public var armor:PaperdollEmptySlot; public var gloves:PaperdollEmptySlot; public var boots:PaperdollEmptySlot; public var cloak:PaperdollEmptySlot; public var weapon:PaperdollEmptySlot; public var offhand:PaperdollEmptySlot; public var ring:PaperdollEmptySlot; public var legs:PaperdollEmptySlot; public function Paperdoll():void{ } public function getSlotX(_arg1:int):int{ var _local2:* = 0; if (_arg1 == Equipment.head){ _local2 = head.x; } else { if (_arg1 == Equipment.armor){ _local2 = armor.x; } else { if (_arg1 == Equipment.gloves){ _local2 = gloves.x; } else { if (_arg1 == Equipment.boots){ _local2 = boots.x; } else { if (_arg1 == Equipment.back){ _local2 = cloak.x; } else { if (_arg1 == Equipment.weapon){ _local2 = weapon.x; } else { if (_arg1 == Equipment.offhand){ _local2 = offhand.x; } else { if (_arg1 == Equipment.ring){ _local2 = ring.x; } else { if (_arg1 == Equipment.legs){ _local2 = legs.x; }; }; }; }; }; }; }; }; }; return (_local2); } public function getSlotY(_arg1:int):int{ var _local2:* = 0; if (_arg1 == Equipment.head){ _local2 = head.y; } else { if (_arg1 == Equipment.armor){ _local2 = armor.y; } else { if (_arg1 == Equipment.gloves){ _local2 = gloves.y; } else { if (_arg1 == Equipment.boots){ _local2 = boots.y; } else { if (_arg1 == Equipment.back){ _local2 = cloak.y; } else { if (_arg1 == Equipment.weapon){ _local2 = weapon.y; } else { if (_arg1 == Equipment.offhand){ _local2 = offhand.y; } else { if (_arg1 == Equipment.ring){ _local2 = ring.y; } else { if (_arg1 == Equipment.legs){ _local2 = legs.y; }; }; }; }; }; }; }; }; }; return (_local2); } } }//package
Section 313
//PaperdollEmptySlot (PaperdollEmptySlot) package { import flash.display.*; public dynamic class PaperdollEmptySlot extends MovieClip { public function PaperdollEmptySlot(){ addFrameScript(0, frame1); } function frame1(){ this.gotoAndStop(1); } } }//package
Section 314
//Party (Party) package { public class Party { var members:Array; var save_slot:int;// = 1 var inventory:Array; var overflow:Array; private var _level:int;// = 1 private var _campaign:int;// = 1 private var _difficulty:int; private var _difficultyMods:uint;// = 0 private var _usedTeleportItemThisLevel:Boolean;// = false private var _version:String;// = "1.0" private var _sneaking:int;// = 0 private var _gold:int;// = 0 private var _stat_party_defeats:int;// = 0 private var _stat_member_deaths:int;// = 0 private var _stat_shrines_used:int;// = 0 private var _stat_hordes_defeated:int;// = 0 private var _stat_leaders_defeated:int;// = 0 private var _stat_rooms_explored:int;// = 0 private var _stat_rooms_total:int;// = 0 private var _lootSettings:uint; private var _invFilter:int; private var _invSort:int; private var _sortAscending:Boolean;// = true static const max_size = 4; static const MAX_INVENTORY = 45; static const MAX_OVERFLOW = 15; static const SCORE_LEVEL = 1000; static const SCORE_LEADERS = 500; static const SCORE_DEATHS = -100; static const SCORE_SHRINES = -150; static const SCORE_DEFEATS = -1000; public function Party():void{ var _local1:*; var _local2:*; members = new Array(); inventory = new Array(); overflow = new Array(); _difficulty = Difficulty.STANDARD; _lootSettings = LootSettings.defaultValues(); _invFilter = InventoryPanel.FILTER_ALL; _invSort = InventoryPanel.SORT_NONE; super(); _local1 = 0; while (_local1 < 5) { addToInventory(new SneakyScroll()); _local1++; }; _local1 = 0; while (_local1 < 5) { addToInventory(new PotionHealthSmall()); _local1++; }; _local1 = 0; while (_local1 < 5) { addToInventory(new PotionPowerSmall()); _local1++; }; _local1 = 0; while (_local1 < 5) { addToInventory(new PotionReviveWeak()); _local1++; }; if (DungeonMain.debugitems){ _local1 = 0; while (_local1 < 5) { addToInventory(new CleanSlate()); addToInventory(new PandorasBox()); addToInventory(new LegendaryLure()); addToInventory(new PortalScroll()); _local1++; }; addToInventory(new ShopTeleportItem()); }; } public function get level():int{ return (this._level); } public function set level(_arg1:int):void{ this._level = _arg1; } public function get campaign():int{ return (this._campaign); } public function set campaign(_arg1:int):void{ this._campaign = _arg1; } public function get difficulty():int{ return (this._difficulty); } public function set difficulty(_arg1:int):void{ this._difficulty = _arg1; } public function get beginner():Boolean{ return ((this._difficulty == Difficulty.BEGINNER)); } public function get extreme():Boolean{ return ((this._difficulty == Difficulty.EXTREME)); } public function get difficultyMods():uint{ return (this._difficultyMods); } public function set difficultyMods(_arg1:uint):void{ this._difficultyMods = _arg1; } public function get hardcore():Boolean{ return (((this._difficultyMods & Difficulty.HARDCORE) == Difficulty.HARDCORE)); } public function get tactical():Boolean{ return (((this._difficultyMods & Difficulty.TACTICAL) == Difficulty.TACTICAL)); } public function get attrition():Boolean{ return (((this._difficultyMods & Difficulty.ATTRITION) == Difficulty.ATTRITION)); } public function get usedTeleportItemThisLevel():Boolean{ return (_usedTeleportItemThisLevel); } public function set usedTeleportItemThisLevel(_arg1:Boolean):void{ this._usedTeleportItemThisLevel = _arg1; } public function get version():String{ return (this._version); } public function set version(_arg1:String):void{ this._version = _arg1; } public function get sneaking():int{ return (this._sneaking); } public function set sneaking(_arg1:int):void{ this._sneaking = _arg1; } public function get gold():int{ return (this._gold); } public function set gold(_arg1:int):void{ this._gold = _arg1; } public function get stat_party_defeats():int{ return (this._stat_party_defeats); } public function set stat_party_defeats(_arg1:int):void{ this._stat_party_defeats = _arg1; } public function get stat_member_deaths():int{ return (this._stat_member_deaths); } public function set stat_member_deaths(_arg1:int):void{ this._stat_member_deaths = _arg1; } public function get stat_shrines_used():int{ return (this._stat_shrines_used); } public function set stat_shrines_used(_arg1:int):void{ this._stat_shrines_used = _arg1; } public function get stat_hordes_defeated():int{ return (this._stat_hordes_defeated); } public function set stat_hordes_defeated(_arg1:int):void{ this._stat_hordes_defeated = _arg1; } public function get stat_leaders_defeated():int{ return (this._stat_leaders_defeated); } public function set stat_leaders_defeated(_arg1:int):void{ this._stat_leaders_defeated = _arg1; } public function get stat_rooms_explored():int{ return (this._stat_rooms_explored); } public function set stat_rooms_explored(_arg1:int):void{ this._stat_rooms_explored = _arg1; } public function get stat_rooms_total():int{ return (this._stat_rooms_total); } public function set stat_rooms_total(_arg1:int):void{ this._stat_rooms_total = _arg1; } public function get lootSettings():int{ return (this._lootSettings); } public function set lootSettings(_arg1:int):void{ this._lootSettings = _arg1; } public function get invFilter():int{ return (this._invFilter); } public function set invFilter(_arg1:int):void{ this._invFilter = _arg1; } public function get invSort():int{ return (this._invSort); } public function set invSort(_arg1:int):void{ this._invSort = _arg1; } public function get sortAscending():Boolean{ return (this._sortAscending); } public function set sortAscending(_arg1:Boolean):void{ this._sortAscending = _arg1; } public function duplicate():Party{ var _local1:Party = new Party(); _local1.save_slot = save_slot; _local1.level = level; _local1.campaign = campaign; _local1.difficulty = difficulty; _local1.difficultyMods = difficultyMods; _local1.version = version; _local1.sneaking = sneaking; _local1.gold = gold; _local1.stat_party_defeats = stat_party_defeats; _local1.stat_member_deaths = stat_member_deaths; _local1.stat_shrines_used = stat_shrines_used; _local1.stat_hordes_defeated = stat_hordes_defeated; _local1.stat_leaders_defeated = stat_leaders_defeated; _local1.stat_rooms_explored = stat_rooms_explored; _local1.stat_rooms_total = stat_rooms_total; _local1.lootSettings = lootSettings; _local1.invFilter = invFilter; _local1.invSort = invSort; _local1.sortAscending = sortAscending; return (_local1); } public function levelUp():void{ var _local1:* = 0; while (_local1 < members.length) { members[_local1].levelUp(); _local1++; }; } public function getTotalClearPercent():Number{ return ((stat_hordes_defeated / (level * 10))); } public function getTotalExplorePercent():Number{ return ((stat_rooms_explored / stat_rooms_total)); } public function getLevelScore():int{ var _local1:int; var _local2:Number = getTotalExplorePercent(); var _local3:Number = getTotalClearPercent(); _local1 = (_local1 + (level * SCORE_LEVEL)); _local1 = (_local1 * (_local2 + _local3)); return (Math.round(_local1)); } public function getScore(_arg1:Boolean=true):int{ var _local3:Number; var _local2:int; _local2 = (_local2 + getLevelScore()); _local2 = (_local2 + (stat_leaders_defeated * SCORE_LEADERS)); _local2 = (_local2 + (stat_member_deaths * SCORE_DEATHS)); _local2 = (_local2 + (stat_shrines_used * SCORE_SHRINES)); _local2 = (_local2 + (stat_party_defeats * SCORE_DEFEATS)); if (_arg1){ _local3 = Difficulty.getMultiplier(difficulty, difficultyMods); _local2 = Math.round((_local2 * (_local3 / 100))); }; return (_local2); } public function roomMovedRegen(_arg1:int=1):Boolean{ var _local3:int; var _local4:int; var _local5:PlayerCharacter; if (_arg1 <= 0){ return (false); }; trace((("roomMovedRegen (" + _arg1) + ")")); var _local2:Boolean; for each (_local5 in members) { if (_local5.health < _local5.health_max){ _local3 = Math.round(((_local5.getHealthRegen() * _arg1) / 3)); _local5.increaseHealth(_local3); _local2 = true; }; if (_local5.power < _local5.power_max){ _local4 = Math.round(((_local5.getPowerRegen() * _arg1) / 3)); _local5.increasePower(_local4); _local2 = true; }; trace(((("h: " + _local3) + ", p: ") + _local4)); }; return (_local2); } public function unequipItem(_arg1:Equipment):Boolean{ var _local2:* = false; var _local3:* = -1; var _local4:* = 0; while (_local4 < members.length) { if (members[_local4].gear[_arg1.slot] == _arg1){ _local3 = _local4; break; }; _local4++; }; if (_local3 != -1){ if (addToInventory(_arg1)){ members[_local3].gear[_arg1.slot] = null; _local2 = true; }; } else { _local2 = true; }; return (_local2); } public function removeFromInventory(_arg1:Item):Boolean{ var _local2:* = false; var _local3:int = getItemIndex(_arg1); if (_local3 >= 0){ inventory.splice(_local3, 1); _local2 = true; } else { _local3 = getOverflowIndex(_arg1); if (_local3 >= 0){ overflow.splice(_local3, 1); _local2 = true; }; }; if (_local2){ balanceInventory(); }; return (_local2); } public function fullRecovery():void{ var _local1:* = 0; while (_local1 < members.length) { members[_local1].health = members[_local1].health_max; members[_local1].power = members[_local1].power_max; members[_local1].clearStatusEffects(); _local1++; }; } public function isPartyDead():Boolean{ var _local1:* = 0; while (_local1 < members.length) { if ((((members[_local1].health > 0)) && ((members[_local1].summoned == false)))){ return (false); }; _local1++; }; return (true); } public function scanForItemUpdates():Boolean{ var _local4:*; var _local5:int; var _local6:int; var _local7:int; var _local8:int; return (false); var _local3:* = 0; while (_local3 < arguments.length) { _local5 = Item(arguments[_local3]).item_level; if (_local5 > 9){ if ((arguments[_local3] is Weapon)){ _local7 = (30 * (_local5 - 1)); _local8 = Math.round((Weapon(arguments[_local3]).damage / (((_local5 - 1) * (_local7 / 300)) + 1))); trace(((("current damage: " + Weapon(arguments[_local3]).damage) + ", calculate base damage: ") + _local8)); Weapon(arguments[_local3]).damage = Weapon(arguments[_local3]).scaleWeaponDamageForLevel(_local8); } else { if ((arguments[_local3] is iPlateGloves)){ if (arguments[_local3].icon_frame == 108){ arguments[_local3].icon_frame = 110; } else { if (arguments[_local3].icon_frame == 107){ arguments[_local3].icon_frame = 109; }; }; }; }; _local6 = 0; if (arguments[_local3].mod_strength){ _local6 = arguments[_local3].mod_strength; if (_local6 <= Equipment.max_stat_for_purple){ arguments[_local3].mod_strength = 0; arguments[_local3].setStrength((_local6 - 2), _local6); }; }; if (arguments[_local3].mod_endurance){ _local6 = arguments[_local3].mod_endurance; if (_local6 <= Equipment.max_stat_for_purple){ arguments[_local3].mod_endurance = 0; arguments[_local3].setEndurance((_local6 - 2), _local6); trace(((("scaled endurance: old=" + _local6) + ", new=") + arguments[_local3].mod_endurance)); }; }; if (arguments[_local3].mod_dexterity){ _local6 = arguments[_local3].mod_dexterity; if (_local6 <= Equipment.max_stat_for_purple){ arguments[_local3].mod_dexterity = 0; arguments[_local3].setDexterity((_local6 - 2), _local6); trace(((("scaled dexterity: old=" + _local6) + ", new=") + arguments[_local3].mod_dexterity)); }; }; if (arguments[_local3].mod_intellect){ _local6 = arguments[_local3].mod_intellect; if (_local6 <= Equipment.max_stat_for_purple){ arguments[_local3].mod_intellect = 0; arguments[_local3].setIntellect((_local6 - 2), _local6); trace(((("scaled intellect: old=" + _local6) + ", new=") + arguments[_local3].mod_intellect)); }; }; }; _local3++; }; _local3 = 0; while (_local3 < 4) { addToInventory(new CleanSlate()); _local3++; }; return (true); } public function deathPenalty():Boolean{ var _local6:Boolean; var _local1:* = false; fullRecovery(); if (this.beginner){ return (false); }; var _local2:int; while (_local2 < members.length) { _local1 = ((members[_local2].loseRandomEquipment()) || (_local1)); _local2++; }; var _local3:Array = dm.shuffleArray(inventory); var _local4:int; trace("checking for destroyable items in party inventory"); var _local5:int; while (_local5 < _local3.length) { if (_local4 >= 2){ break; }; trace(("testing item " + _local3[_local5].item_name)); if ((_local3[_local5] is Equipment)){ trace("is equipment"); _local6 = destroyItem(_local3[_local5]); if (_local6){ trace("destroyed"); _local1 = true; _local4++; }; }; _local5++; }; return (_local1); } private function sameConsumableType(_arg1:Item, _arg2:Item):Boolean{ if ((((_arg1 is Consumable)) && ((_arg2 is Consumable)))){ if (_arg1.item_name == _arg2.item_name){ return (true); }; return (false); //unresolved jump }; return (false); } public function addToInventory(_arg1:Item):Boolean{ var _local2:int; if (_arg1 == null){ return (false); }; if ((_arg1 is Consumable)){ _local2 = 0; while (_local2 < inventory.length) { if (sameConsumableType(inventory[_local2], _arg1)){ inventory[_local2].stack++; return (true); }; _local2++; }; _local2 = 0; while (_local2 < overflow.length) { if (sameConsumableType(overflow[_local2], _arg1)){ overflow[_local2].stack++; return (true); }; _local2++; }; }; if (inventory.length < Party.MAX_INVENTORY){ inventory.push(_arg1); return (true); }; if (overflow.length < Party.MAX_OVERFLOW){ overflow.push(_arg1); return (true); }; return (false); } public function getItemIndex(_arg1:Item):int{ var _local2:* = 0; while (_local2 < inventory.length) { if (this.inventory[_local2] == _arg1){ return (_local2); }; _local2++; }; return (-1); } public function getOverflowIndex(_arg1:Item):int{ var _local2:* = 0; while (_local2 < overflow.length) { if (this.overflow[_local2] == _arg1){ return (_local2); }; _local2++; }; return (-1); } public function getHealthPotion(_arg1:Boolean=false):Consumable{ var _local2:Item; for each (_local2 in inventory) { if (_arg1){ if ((_local2 is PotionHealthSmall)){ return (Consumable(_local2)); }; } else { if ((_local2 is PotionHealth)){ return (Consumable(_local2)); }; }; }; return (null); } public function getPowerPotion(_arg1:Boolean=false):Consumable{ var _local2:Item; for each (_local2 in inventory) { if (_arg1){ if ((_local2 is PotionPowerSmall)){ return (Consumable(_local2)); }; } else { if ((_local2 is PotionPower)){ return (Consumable(_local2)); }; }; }; return (null); } public function destroyItem(_arg1:Item):Boolean{ var _local2:* = false; var _local3:* = 0; while (_local3 < Party.MAX_INVENTORY) { if (inventory[_local3] == _arg1){ (inventory[_local3] == null); inventory.splice(_local3, 1); _local2 = true; break; }; _local3++; }; if (!_local2){ _local3 = 0; while (_local3 < Party.MAX_OVERFLOW) { if (overflow[_local3] == _arg1){ (overflow[_local3] == null); overflow.splice(_local3, 1); _local2 = true; break; }; _local3++; }; }; if (!_local2){ return (false); }; balanceInventory(); return (true); } public function balanceInventory():void{ while (((overflow.length) && ((inventory.length < Party.MAX_INVENTORY)))) { inventory.push(overflow[0]); overflow.splice(0, 1); }; } public function memberInPos(_arg1:int):PlayerCharacter{ var _local2:PlayerCharacter; if (_arg1 <= 0){ return (null); }; if (_arg1 > 6){ return (null); }; for each (_local2 in members) { if (_local2.pos == _arg1){ return (_local2); }; }; return (null); } public function setMemberPos(_arg1:PlayerCharacter, _arg2:int){ var _local3:*; var _local4:*; var _local7:PlayerCharacter; var _local8:Boolean; var _local5:Boolean; var _local6:Boolean; for each (_local7 in members) { if (_local7.pos == _arg2){ _local5 = true; }; if (_local7 == _arg1){ _local6 = true; }; }; if (!_local6){ return; }; if (_local5){ _local3 = 1; while (_local3 <= 6) { _local8 = true; _local4 = 0; while (_local4 < members.length) { if (members[_local4].pos == _local3){ _local8 = false; }; _local4++; }; if (_local8){ _arg1.pos = _local3; break; }; _local3++; }; } else { _arg1.pos = _arg2; }; } public function findEmptySlot(_arg1:Boolean):int{ var _local2:*; if (_arg1){ _local2 = 1; while (_local2 <= 3) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; }; _local2 = 4; while (_local2 <= 6) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; if (_arg1){ return (0); }; _local2 = 1; while (_local2 <= 3) { if (memberInPos(_local2) == null){ return (_local2); }; _local2++; }; return (0); } public function getConsumables():Array{ var _local1:Item; var _local2:Array = new Array(); for each (_local1 in inventory) { if ((_local1 is Consumable)){ _local2.push(_local1); }; }; for each (_local1 in overflow) { if ((_local1 is Consumable)){ _local2.push(_local1); }; }; return (_local2); } public function getMisc():Array{ var _local1:Item; var _local2:Array = new Array(); for each (_local1 in inventory) { if ((_local1 is Equipment)){ continue; } else { if ((_local1 is Consumable)){ continue; } else { _local2.push(_local1); }; }; }; for each (_local1 in overflow) { if ((_local1 is Equipment)){ continue; } else { if ((_local1 is Consumable)){ continue; } else { _local2.push(_local1); }; }; }; return (_local2); } public function getEquipment():Array{ var _local1:Item; var _local2:Array = new Array(); for each (_local1 in inventory) { if ((_local1 is Equipment)){ _local2.push(_local1); }; }; for each (_local1 in overflow) { if ((_local1 is Equipment)){ _local2.push(_local1); }; }; return (_local2); } public function hasShopTeleportItem():Boolean{ var _local1:Item; for each (_local1 in inventory) { if (((_local1) && ((_local1 is ShopTeleportItem)))){ return (true); }; }; return (false); } public function needCampaignFragment():Boolean{ var _local1:Item; if (campaign != Campaign.DELUXE){ return (false); }; for each (_local1 in inventory) { if ((_local1 is CampaignItemFragment)){ if (Consumable(_local1).stack >= 9){ return (false); }; return (true); } else { if ((_local1 is CampaignItemStone)){ return (false); }; }; }; return (true); } public function removeQuestItems():void{ var _local1:Item; trace("Party.removeQuestItems"); for each (_local1 in inventory) { if (_local1.item_rarity == Item.quest){ destroyItem(_local1); }; }; } public function addDemonLoot():void{ addAllOrangesFrom(new mDemon(level)); } public function addDeluxeLoot():void{ addAllOrangesFrom(new mDreadfather(level)); } public function addAllOrangesFrom(_arg1:MonsterCharacter):void{ var _local3:Item; var _local2:Array = _arg1.getUniqueItems(level); for each (_local3 in _local2) { addToInventory(_local3); }; } public function hasAlly():Boolean{ var _local1:PlayerCharacter; for each (_local1 in members) { if ((_local1 is PC_Adventurer)){ return (true); }; }; return (false); } public function getAlly():PlayerCharacter{ var _local1:PlayerCharacter; for each (_local1 in members) { if ((_local1 is PC_Adventurer)){ return (_local1); }; }; return (null); } } }//package
Section 315
//PartyCreation (PartyCreation) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class PartyCreation extends MovieClip { var pc_party:Party; var tooltip:Tooltip; public var char1:CharCreationPanel; public var char2:CharCreationPanel; public var char3:CharCreationPanel; public var char4:CharCreationPanel; public var empty1:SimpleButton; public var empty2:SimpleButton; public var empty3:SimpleButton; public var empty4:SimpleButton; public var enter_button:SimpleButton; public var optionsButton:OptionsBookButton; var addCharTimer:Timer; var timerCount;// = 0 public function PartyCreation():void{ var _local2:*; var _local3:SimpleButton; super(); pc_party = new Party(); enter_button.addEventListener(MouseEvent.MOUSE_DOWN, enterClick); var _local1:* = 1; while (_local1 <= 4) { _local2 = CharCreationPanel(getChildByName(("char" + _local1))); _local2.slot = _local1; _local2.createChar(); _local3 = SimpleButton(getChildByName(("empty" + _local1))); if (_local3 != null){ _local3.addEventListener(MouseEvent.MOUSE_DOWN, createClick); _local3.y = -400; }; _local1++; }; } function addCharTimerTick(_arg1:TimerEvent):void{ timerCount++; var _local2:* = CharCreationPanel(getChildByName(("char" + timerCount))); if (_local2 == null){ return; }; if (_local2.char != null){ return; }; if (_local2.animating){ return; }; _local2.createChar(); } function backClick(_arg1:MouseEvent):void{ pc_party = null; if (((parent) && ((parent is DungeonMain)))){ this.cleanup(); DungeonMain(parent).loadGameMenu(); DungeonMain(parent).removeChild(this); }; } public function cleanup():void{ enter_button.removeEventListener(MouseEvent.MOUSE_DOWN, enterClick); empty1.removeEventListener(MouseEvent.MOUSE_DOWN, createClick); empty2.removeEventListener(MouseEvent.MOUSE_DOWN, createClick); empty3.removeEventListener(MouseEvent.MOUSE_DOWN, createClick); empty4.removeEventListener(MouseEvent.MOUSE_DOWN, createClick); optionsButton.cleanup(); var _local1:* = 1; while (_local1 <= 4) { CharCreationPanel(getChildByName(("char" + _local1))).cleanup(); _local1++; }; } function createClick(_arg1:MouseEvent):void{ var _local3:CharCreationPanel; var _local2:* = 1; while (_local2 <= 4) { if (_arg1.currentTarget == getChildByName(("empty" + _local2))){ _local3 = CharCreationPanel(getChildByName(("char" + _local2))); if (_local3 != null){ _local3.createChar(); _local3.y = _arg1.currentTarget.y; _arg1.currentTarget.y = -200; }; }; _local2++; }; } public function isNameTaken(_arg1:String):Boolean{ var _local3:CharCreationPanel; var _local2:* = 1; while (_local2 <= 4) { _local3 = CharCreationPanel(getChildByName(("char" + _local2))); if (_local3.char == null){ } else { if (_local3.char.charname == _arg1){ return (true); }; }; _local2++; }; return (false); } private function convertClass(_arg1:PlayerCharacter, _arg2:int):PlayerCharacter{ var _local6:PlayerCharacter; var _local3:* = _arg1.charname; var _local4:* = _arg1.portrait; var _local5:Boolean = _arg1.male; if (_arg2 == PlayerCharacter.WARRIOR){ _local6 = new PC_Warrior(pc_party); } else { if (_arg2 == PlayerCharacter.MAGE){ _local6 = new PC_Mage(pc_party); } else { if (_arg2 == PlayerCharacter.RANGER){ _local6 = new PC_Ranger(pc_party); } else { if (_arg2 == PlayerCharacter.ROGUE){ _local6 = new PC_Rogue(pc_party); } else { if (_arg2 == PlayerCharacter.CLERIC){ _local6 = new PC_Cleric(pc_party); } else { if (_arg2 == PlayerCharacter.CONJUROR){ _local6 = new PC_Conjuror(pc_party); } else { if (_arg2 == PlayerCharacter.BARBARIAN){ _local6 = new PC_Barbarian(pc_party); }; }; }; }; }; }; }; _local6.charname = _local3; _local6.portrait = _local4; _local6.male = _local5; _local6.useCustomPortrait = _arg1.useCustomPortrait; _local6.customPortraitUrl = _arg1.customPortraitUrl; _local6.customPortrait = _arg1.customPortrait; return (_local6); } private function charCount():int{ var _local3:*; var _local1:* = 0; var _local2:* = 1; while (_local2 <= 4) { _local3 = CharCreationPanel(getChildByName(("char" + _local2))); if (_local3 == null){ } else { if (_local3.char == null){ } else { _local1++; }; }; _local2++; }; return (_local1); } function enterClick(_arg1:MouseEvent):void{ var _local2:CharCreationPanel; var _local4:WarningDialog; var _local6:*; var _local3:int = charCount(); if (_local3 == 0){ _local4 = new WarningDialog(); _local4.setText("You must add some characters to your party before entering the dungeon."); addChild(_local4); return; }; pc_party.members.length = 0; var _local5:* = 1; while (_local5 <= 4) { _local2 = CharCreationPanel(getChildByName(("char" + _local5))); if (_local2 == null){ } else { if (_local2.char == null){ } else { if (((DungeonMain.LOCKED) && ((_local2.selected_class == PlayerCharacter.CONJUROR)))){ _local4 = new WarningDialog(); _local4.setText("The Conjuror class cannot be used on this site. Please select a different class before proceeding."); addChild(_local4); return; }; _local2.finalize(); _local6 = pc_party.members.push(convertClass(_local2.char, _local2.selected_class)); }; }; _local5++; }; this.cleanup(); dm.main.creationFinished(pc_party); } } }//package
Section 316
//PassiveSkillIcon (PassiveSkillIcon) package { import flash.events.*; import flash.display.*; import flash.text.*; public class PassiveSkillIcon extends MovieClip { public var skillRank:TextField; public var char_ref:PlayerCharacter; private var offense:Boolean;// = true var tooltip:PassiveSkillTooltip; private var mousingOver:Boolean;// = false private var mouseOverFrames:int;// = 0 private var mousedOverEvent:MouseEvent; public function PassiveSkillIcon():void{ addFrameScript(0, frame1); this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); this.addEventListener(Event.ADDED_TO_STAGE, added); this.addEventListener(Event.ENTER_FRAME, onFrame); } public function cleanup():void{ this.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); this.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); this.removeEventListener(Event.ADDED_TO_STAGE, added); this.removeEventListener(Event.ENTER_FRAME, onFrame); } function added(_arg1:Event):void{ this.addEventListener(Event.REMOVED_FROM_STAGE, removed); } function removed(_arg1:Event):void{ this.removeEventListener(Event.REMOVED_FROM_STAGE, removed); if (this.tooltip != null){ mouseOutTarget(null); }; } public function updateSkill(_arg1:PlayerCharacter, _arg2:Boolean):void{ this.char_ref = _arg1; this.offense = _arg2; this.gotoAndStop(_arg1.getPassiveSkillIcon(_arg2)); if (_arg2){ setSkillRank(char_ref.passive_skill_offense); } else { setSkillRank(char_ref.passive_skill_defense); }; } public function setSkillRank(_arg1:int):void{ skillRank.text = (String(_arg1) + "/25"); } private function newTooltip(_arg1:MouseEvent):Boolean{ var _local2:int; if (offense){ _local2 = char_ref.passive_skill_offense; } else { _local2 = char_ref.passive_skill_defense; }; if (((!((parent == null))) && ((parent is BuySkills)))){ if (offense){ _local2 = (_local2 + BuySkills(parent).pass1_points); } else { _local2 = (_local2 + BuySkills(parent).pass2_points); }; }; var _local3:String = char_ref.getPassiveSkillName(offense); var _local4:String = char_ref.getPassiveSkillDescription(offense, _local2); tooltip = new PassiveSkillTooltip(_local3, _local4, _local2); tooltip.mouseEnabled = false; tooltip.mouseChildren = false; tooltip.name = "tooltip_skill"; tooltip.setForEvent(_arg1); if (stage != null){ stage.addChild(tooltip); return (true); }; return (false); } function mouseOverTarget(_arg1:MouseEvent):void{ mousingOver = true; mouseOverFrames = 0; mousedOverEvent = _arg1; } function mouseOutTarget(_arg1:MouseEvent):void{ if (tooltip != null){ tooltip.fade(); tooltip = null; }; mousingOver = false; mouseOverFrames = 0; } private function onFrame(_arg1:Event):void{ if (mousingOver){ mouseOverFrames++; }; if (mouseOverFrames > Tooltip.delayFrames){ newTooltip(mousedOverEvent); mousingOver = false; mouseOverFrames = 0; }; } function frame1(){ this.stop(); } } }//package
Section 317
//PassiveSkillTooltip (PassiveSkillTooltip) package { import flash.display.*; import flash.text.*; public class PassiveSkillTooltip extends Tooltip { public var tooltip_bg:Sprite; public var title_label:TextField; public var text_label:TextField; public var rank_label:TextField; public function PassiveSkillTooltip(_arg1:String="", _arg2:String="", _arg3:int=0){ if (_arg1 == null){ _arg1 = "Blank"; }; if (_arg2 == null){ _arg2 = "Tooltip contents failed to load."; }; title_label.text = _arg1; dmf.embolden(title_label); rank_label.text = (("Rank " + String(_arg3)) + "/25"); text_label.text = _arg2; text_label.autoSize = TextFieldAutoSize.CENTER; tooltip_bg.height = ((text_label.y + text_label.height) + 15); } } }//package
Section 318
//pBloodSprite (pBloodSprite) package { public class pBloodSprite extends PlayerSummon { public function pBloodSprite(_arg1:int=1){ super(_arg1); classname = "Bloodsprite"; charname = "Bloodsprite"; portrait = CharGraphic.sprite_red; description = "Summoned."; quickness = 60; power_per_turn = 0; health_max = Math.round((health_max * 0.5)); health = health_max; damage = Math.round((damage * 0.5)); skills.push(new sSummonAttack(this)); skills.push(new sSpriteRestoreHealth(this)); initSummonSkills(); } } }//package
Section 319
//PC_Adventurer (PC_Adventurer) package { public class PC_Adventurer extends PlayerCharacter { public function PC_Adventurer(_arg1:Party=null):void{ this.party = _arg1; if (_arg1 != null){ this.level = _arg1.level; } else { this.level = 1; }; var _local2:int = Math.round((1 + (level * (STATS_PER_LEVEL + 1.5)))); strength = _local2; endurance = _local2; dexterity = _local2; intellect = _local2; quickness = 50; charname = randomName(true); playerclass = PlayerCharacter.ADVENTURER; classname = "Adventurer"; description = "Cannot be revived."; portrait = CharGraphic.adventurer; pos = 0; poisonResist = 25; stunResist = 50; health_max = getMaxHealth(); health = health_max; damage = getAdvDamage(); initAdvSkills(); } public function getAdvDamage():int{ var _local1:int = Weapon.scaleWeaponDamageForLevelNew(Weapon.sword_base_damage, this.level); _local1 = (_local1 + (strength * PlayerCharacter.DAMAGE_PER_STAT)); return (_local1); } public function initAdvSkills():void{ skills.length = 0; skills.push(new sAdventurerAttack(this)); skills.push(new sAdventurerThrow(this)); skills.push(new sAdventurerHeal(this)); var _local1:* = 0; while (_local1 < skills.length) { skills[_local1].position = (_local1 + 1); skills[_local1].active = true; _local1++; }; } override public function canQuickRetreat():Boolean{ return (false); } override public function reduceHealth(_arg1:int):int{ if (invulnerable){ return (0); }; var _local2:* = health; health = (health - _arg1); if ((((health < cannotDieMin)) && ((cannotDie > 0)))){ health = Math.min(_local2, cannotDieMin); }; if (health < 0){ health = 0; clearStatusEffects(); }; if (health > health_max){ health = health_max; }; return ((_local2 - health)); } override public function getEvilClone():MonsterCharacter{ return (null); } } }//package
Section 320
//PC_Barbarian (PC_Barbarian) package { public class PC_Barbarian extends PlayerCharacter { public static const OFFENSE_PER_POINT:int = 2; public static const DEFENSE_PER_POINT:int = 4; public function PC_Barbarian(_arg1:Party=null){ this.party = _arg1; quickness = 55; health_max = getMaxHealth(); health = health_max; level = 1; charname = "Bruce"; playerclass = PlayerCharacter.BARBARIAN; classname = "Barbarian"; portrait = CharGraphic.warrior1; pos = 0; skills.push(new sWeaponAttack(this)); skills.push(new sBarbarianReckless(this)); skills.push(new sBarbarianCharge(this)); skills.push(new sBarbarianBrutalize(this)); skills.push(new sBarbarianPulverize(this)); skills.push(new sBarbarianJostle(this)); skills.push(new sBarbarianBoast(this)); skills.push(new sBarbarianWhirlwind(this)); skills.push(new sBarbarianPowerGain(this)); skills.push(new sBarbarianIntimidate(this)); skills.push(new sBarbarianLastStand(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ this.gear[Equipment.armor] = new iLeatherChest(1, Item.grey); this.gear[Equipment.gloves] = new iLeatherGloves(1, Item.grey); this.gear[Equipment.legs] = new iLeatherLegs(1, Item.grey); this.gear[Equipment.boots] = new iLeatherBoots(1, Item.grey); this.gear[Equipment.weapon] = new iAxe(1, Item.grey); } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Brutality"); }; return ("Vengeance"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (14); }; return (13); } public function get brutality():int{ return (Math.round((OFFENSE_PER_POINT * passive_skill_offense))); } public function get vengeance():int{ return (Math.round((DEFENSE_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((OFFENSE_PER_POINT * _local3))); } else { _local4 = String(Math.round((DEFENSE_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(OFFENSE_PER_POINT)) + "% chance that an attack will cause 50% additional damage.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(DEFENSE_PER_POINT)) + "% chance when damage received that damage inflicted next turn increases by 30%.\n\nCurrent: ") + _local4) + "%")); } } }//package
Section 321
//PC_Cleric (PC_Cleric) package { public class PC_Cleric extends PlayerCharacter { public static const WRATH_PER_POINT:int = 3; public static const BENEDICTION_PER_POINT:int = 4; public function PC_Cleric(_arg1:Party=null){ this.party = _arg1; quickness = 45; charname = "Jeremy"; playerclass = PlayerCharacter.CLERIC; classname = "Cleric"; portrait = CharGraphic.cleric1; pos = 0; health_max = getMaxHealth(); health = health_max; skills.push(new sWeaponAttack(this)); skills.push(new sClericHeal(this)); skills.push(new sClericSmite(this)); skills.push(new sClericFlash(this)); skills.push(new sClericHealGroup(this)); skills.push(new sClericDamageBuff(this)); skills.push(new sClericRevive(this)); skills.push(new sClericAE(this)); skills.push(new sClericPurify(this)); skills.push(new sClericShield(this)); skills.push(new sClericMelee(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ var _local1:Armor; _local1 = new iPlateBreastplate(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateGloves(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateBoots(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateGreaves(1, Item.grey); this.gear[_local1.slot] = _local1; var _local2:* = new iMace(1, Item.grey); this.gear[_local2.slot] = _local2; } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Wrath"); }; return ("Benediction"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (5); }; return (4); } public function get wrath():int{ return (Math.round((WRATH_PER_POINT * passive_skill_offense))); } public function get benediction():int{ return (Math.round((BENEDICTION_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((WRATH_PER_POINT * _local3))); } else { _local4 = String(Math.round((BENEDICTION_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(WRATH_PER_POINT)) + "% chance that the Smite spell will stun the target.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(BENEDICTION_PER_POINT)) + "% chance that the Heal spell will remove all negative afflictions from the target.\n\nCurrent: ") + _local4) + "%")); } } }//package
Section 322
//PC_Conjuror (PC_Conjuror) package { public class PC_Conjuror extends PlayerCharacter { public static const AUG_STRENGTH_PER_POINT:int = 2; public static const AUG_HEALTH_PER_POINT:int = 2; public function PC_Conjuror(_arg1:Party=null):void{ this.party = _arg1; quickness = 40; charname = "Hubert"; playerclass = PlayerCharacter.CONJUROR; classname = "Conjuror"; portrait = CharGraphic.mage1; pos = 0; health_max = getMaxHealth(); health = health_max; skills.push(new sMageAttack(this)); skills.push(new sConjurorWolf(this)); skills.push(new sConjurorShadow(this)); skills.push(new sConjurorManaSprite(this)); skills.push(new sConjurorBloodSprite(this)); skills.push(new sConjurorWargolem(this)); skills.push(new sConjurorWhirlwind(this)); skills.push(new sConjurorBanish(this)); skills.push(new sConjurorHeal(this)); skills.push(new sConjurorArmor(this)); skills.push(new sConjurorRevive(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ this.gear[Equipment.head] = new iClothHat(1, Item.grey); this.gear[Equipment.armor] = new iClothRobe(1, Item.grey); this.gear[Equipment.gloves] = new iClothGloves(1, Item.grey); this.gear[Equipment.legs] = new iClothLegs(1, Item.grey); this.gear[Equipment.boots] = new iClothShoes(1, Item.grey); this.gear[Equipment.weapon] = new iStaff(1, Item.grey); } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Augment Strength"); }; return ("Augment Health"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (8); }; return (9); } public function get aug_strength():int{ return (Math.round((AUG_STRENGTH_PER_POINT * passive_skill_offense))); } public function get aug_health():int{ return (Math.round((AUG_HEALTH_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((AUG_STRENGTH_PER_POINT * _local3))); } else { _local4 = String(Math.round((AUG_HEALTH_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(AUG_STRENGTH_PER_POINT)) + "% extra damage for summoned creatures' attacks.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(AUG_HEALTH_PER_POINT)) + "% extra health for summoned creatures.\n\nCurrent: ") + _local4) + "%")); } } }//package
Section 323
//PC_Mage (PC_Mage) package { public class PC_Mage extends PlayerCharacter { public static const OFFENSE_PER_POINT:int = 1; public static const DEFENSE_PER_POINT:int = 1; public function PC_Mage(_arg1:Party=null){ this.party = _arg1; quickness = 40; charname = "Errol"; playerclass = PlayerCharacter.MAGE; classname = "Mage"; portrait = CharGraphic.mage1; pos = 0; health_max = getMaxHealth(); health = health_max; skills.push(new sMageAttack(this)); skills.push(new sMageBolt(this)); skills.push(new sMageExplosion(this)); skills.push(new sMageAE(this)); skills.push(new sMagePrison(this)); skills.push(new sMageInvisibility(this)); skills.push(new sMageArmor(this)); skills.push(new sMageThorns(this)); skills.push(new sMageSword(this)); skills.push(new sMageTouch(this)); skills.push(new sMageDrain(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ this.gear[Equipment.head] = new iClothHat(1, Item.grey); this.gear[Equipment.armor] = new iClothRobe(1, Item.grey); this.gear[Equipment.gloves] = new iClothGloves(1, Item.grey); this.gear[Equipment.legs] = new iClothLegs(1, Item.grey); this.gear[Equipment.boots] = new iClothShoes(1, Item.grey); this.gear[Equipment.weapon] = new iStaff(1, Item.grey); } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Spell Mastery"); }; return ("Shielding"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (10); }; return (11); } public function get mastery():int{ return (Math.round((OFFENSE_PER_POINT * passive_skill_offense))); } public function get shielding():int{ return (Math.round((DEFENSE_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((OFFENSE_PER_POINT * _local3))); } else { _local4 = String(Math.round((DEFENSE_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(OFFENSE_PER_POINT)) + "% chance that no power cost will be deducted when casting a spell.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(DEFENSE_PER_POINT)) + "% chance that incoming damage will be nullified at the cost of 10 power.\n\nCurrent: ") + _local4) + "%")); } } }//package
Section 324
//PC_Ranger (PC_Ranger) package { public class PC_Ranger extends PlayerCharacter { public static const OFFENSE_PER_POINT:int = 2; public static const DEFENSE_PER_POINT:int = 1; public function PC_Ranger(_arg1:Party=null):void{ this.party = _arg1; quickness = 55; charname = "Hamish"; playerclass = PlayerCharacter.RANGER; classname = "Ranger"; portrait = CharGraphic.ranger1; pos = 0; health_max = getMaxHealth(); health = health_max; skills.push(new sRangedAttack(this)); skills.push(new sRangerPenetrate(this)); skills.push(new sRangerRegen(this)); skills.push(new sRangerHeal(this)); skills.push(new sRangerHunt(this)); skills.push(new sRangerAE(this)); skills.push(new sRangerStun(this)); skills.push(new sRangerMultiMelee(this)); skills.push(new sRangerPoison(this)); skills.push(new sRangerFocus(this)); skills.push(new sRangerHaste(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ this.gear[Equipment.head] = new iLeatherHat(1, Item.grey); this.gear[Equipment.armor] = new iLeatherChest(1, Item.grey); this.gear[Equipment.gloves] = new iLeatherGloves(1, Item.grey); this.gear[Equipment.legs] = new iLeatherLegs(1, Item.grey); this.gear[Equipment.boots] = new iLeatherBoots(1, Item.grey); this.gear[Equipment.weapon] = new iBow(1, Item.grey); } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Creature Lore"); }; return ("Vitality"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (15); }; return (12); } public function get creatureLore():int{ return (Math.round((OFFENSE_PER_POINT * passive_skill_offense))); } public function get vitality():int{ return (Math.round((DEFENSE_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((OFFENSE_PER_POINT * _local3))); } else { _local4 = String(Math.round((DEFENSE_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(OFFENSE_PER_POINT)) + "% chance on attack to identify the target's vulnerability, reducing their damage resistance by 40 for the remainder of the battle.\n(This skill may reduce damage resistance below zero)\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(DEFENSE_PER_POINT)) + "% of maximum health added to base health regeneration.\n\nCurrent: ") + _local4) + "%")); } override public function getHealthRegen(_arg1:Boolean=true):int{ var _local2:int; if (vitality){ _local2 = (_local2 + Math.ceil((health_max * (vitality / 100)))); }; if (_arg1){ _local2 = (_local2 + buff_healthRegen); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].healthRegen); }; _local3++; }; return (_local2); } } }//package
Section 325
//PC_Rogue (PC_Rogue) package { public class PC_Rogue extends PlayerCharacter { public static const POISONCRAFT_PER_POINT:int = 2; public static const ELUSIVENESS_PER_POINT:int = 3; public function PC_Rogue(_arg1:Party=null){ this.party = _arg1; quickness = 70; charname = "Deepak"; playerclass = PlayerCharacter.ROGUE; classname = "Rogue"; portrait = CharGraphic.rogue1; pos = 0; health_max = getMaxHealth(); health = health_max; skills.push(new sWeaponAttack(this)); skills.push(new sRoguePoison(this)); skills.push(new sRogueCritical(this)); skills.push(new sRogueSneakAttack(this)); skills.push(new sRogueBlind(this)); skills.push(new sRogueOpening(this)); skills.push(new sRogueHide(this)); skills.push(new sRogueSap(this)); skills.push(new sRogueLuck(this)); skills.push(new sRogueFinisher(this)); skills.push(new sRogueCripple(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ this.gear[Equipment.head] = new iLeatherHat(1, Item.grey); this.gear[Equipment.armor] = new iLeatherChest(1, Item.grey); this.gear[Equipment.gloves] = new iLeatherGloves(1, Item.grey); this.gear[Equipment.legs] = new iLeatherLegs(1, Item.grey); this.gear[Equipment.boots] = new iLeatherBoots(1, Item.grey); this.gear[Equipment.weapon] = new iDagger(1, Item.grey); } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Poisoncraft"); }; return ("Elusiveness"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (6); }; return (7); } public function get poisoncraft():int{ return (Math.round((POISONCRAFT_PER_POINT * passive_skill_offense))); } public function get elusiveness():int{ return (Math.round((ELUSIVENESS_PER_POINT * passive_skill_defense))); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((POISONCRAFT_PER_POINT * _local3))); } else { _local4 = String(Math.round((ELUSIVENESS_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(POISONCRAFT_PER_POINT)) + "% of damage caused by weapon attacks is added to the target as poison.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(ELUSIVENESS_PER_POINT)) + "% chance that enemies will not directly target the rogue for attacks, if other targets are available. The rogue can still be a secondary target of an area attack directed at someone else.\n\nCurrent: ") + _local4) + "%")); } } }//package
Section 326
//PC_Warrior (PC_Warrior) package { public class PC_Warrior extends PlayerCharacter { public static const LEADERSHIP_PER_POINT:int = 3; public static const ARMOR_PER_POINT:int = 2; public function PC_Warrior(_arg1:Party=null){ this.party = _arg1; quickness = 50; health_max = getMaxHealth(); health = health_max; level = 1; charname = "Bruce"; playerclass = PlayerCharacter.WARRIOR; classname = "Warrior"; portrait = CharGraphic.warrior1; pos = 0; skills.push(new sWeaponAttack(this)); skills.push(new sWarriorPowerAttack(this)); skills.push(new sWarriorDefiance(this)); skills.push(new sWarriorAE(this)); skills.push(new sWarriorAdrenaline(this)); skills.push(new sWarriorHeal(this)); skills.push(new sWarriorShield(this)); skills.push(new sWarriorInspire(this)); skills.push(new sWarriorExecute(this)); skills.push(new sWarriorBloodlust(this)); skills.push(new sWarriorSpeedAttack(this)); setActiveSkillsDefault(); generateDefaultGear(); } public function generateDefaultGear(){ var _local1:Armor; _local1 = new iPlateHelmet(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateBreastplate(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateGloves(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateBoots(1, Item.grey); this.gear[_local1.slot] = _local1; _local1 = new iPlateGreaves(1, Item.grey); this.gear[_local1.slot] = _local1; var _local2:* = new iSword(1, Item.grey); this.gear[_local2.slot] = _local2; } override public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Leadership"); }; return ("Armor Proficiency"); } override public function getPassiveSkillIcon(_arg1:Boolean):int{ if (_arg1){ return (2); }; return (3); } override public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ var _local4:String; var _local3:int; if (_arg2 != -1){ _local3 = _arg2; } else { if (_arg1){ _local3 = passive_skill_offense; } else { _local3 = passive_skill_defense; }; }; if (_arg1){ _local4 = String(Math.round((LEADERSHIP_PER_POINT * _local3))); } else { _local4 = String(Math.round((ARMOR_PER_POINT * _local3))); }; if (_arg1){ return ((((("Each skill rank:\n" + String(LEADERSHIP_PER_POINT)) + "% chance that a successful attack by the Warrior will cause a random ally to perform a bonus attack on the same target.\n\nCurrent: ") + _local4) + "%")); }; return ((((("Each skill rank:\n" + String(ARMOR_PER_POINT)) + "% bonus to the Armor Rating gained from armor.\n\nCurrent: ") + _local4) + "%")); } override public function getArmorRating():int{ var _local1:Number = super.getArmorRating(); _local1 = (_local1 * (1 + ((ARMOR_PER_POINT * passive_skill_defense) / 100))); return (Math.ceil(_local1)); } public function get leadership():int{ return (Math.round((LEADERSHIP_PER_POINT * passive_skill_offense))); } } }//package
Section 327
//player_arrow (player_arrow) package { import flash.display.*; public dynamic class player_arrow extends MovieClip { public var spark:MovieClip; public function player_arrow(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.playerArrow); this.spark.x = dm.randomNum(15, 43); this.spark.y = dm.randomNum(15, 43); } function frame45(){ this.stop(); } } }//package
Section 328
//player_mage_attack (player_mage_attack) package { import flash.display.*; public dynamic class player_mage_attack extends MovieClip { public function player_mage_attack(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.playerMagicAttack); } function frame45(){ this.stop(); } } }//package
Section 329
//player_multi_slash (player_multi_slash) package { import flash.display.*; public dynamic class player_multi_slash extends MovieClip { public var hslash:MovieClip; public function player_multi_slash(){ addFrameScript(0, frame1, 11, frame12); } function frame1(){ dm.sound.play(SoundControl.playerSlash); } function frame12(){ this.stop(); this.gotoAndStop(12); } } }//package
Section 330
//player_power_slash (player_power_slash) package { import flash.display.*; public dynamic class player_power_slash extends MovieClip { public function player_power_slash(){ addFrameScript(11, frame12); } function frame12(){ this.stop(); } } }//package
Section 331
//player_slash (player_slash) package { import flash.display.*; public dynamic class player_slash extends MovieClip { public var hslash:MovieClip; public function player_slash(){ addFrameScript(0, frame1, 11, frame12); } function frame1(){ dm.sound.play(SoundControl.playerSlash); } function frame12(){ this.gotoAndStop(12); } } }//package
Section 332
//PlayerCharacter (PlayerCharacter) package { public class PlayerCharacter extends Character { const CLONE_DAMAGE_MULTIPLIER = 0.5; const CLONE_HEALTH_MULTIPLIER = 2; protected var playerclass:int; var gear:Array; var party:Party; private var _stat_points:int;// = 0 private var _skill_points:int;// = 0 private var _passive_skill_offense:int;// = 0 private var _passive_skill_defense:int;// = 0 private var _male:Boolean;// = true private var _ignoreArmorValues:Boolean;// = false var retreating:Boolean;// = false var retreated:Boolean;// = false var old_strength:int;// = 0 var old_endurance:int;// = 0 var old_dexterity:int;// = 0 var old_intellect:int;// = 0 var old_stat_points:int;// = 0 static const WARRIOR = 1; static const CLERIC = 2; static const MAGE = 3; static const RANGER = 4; static const ROGUE = 5; static const BARBARIAN = 6; static const CONJUROR = 7; static const SUMMON = 9; static const ADVENTURER = 10; static const HEALTH_PER_ENDURANCE = 4; static const STATS_PER_LEVEL = 3; static const DAMAGE_PER_STAT = 2; static var base_health = 50; public function PlayerCharacter(_arg1:Party=null){ gear = new Array(Equipment.gearSlots); super(); level = 1; classname = "Player"; portrait = CharGraphic.warrior1; pos = 0; if (_arg1 != null){ this.party = _arg1; }; } public function get stat_points():int{ return (this._stat_points); } public function set stat_points(_arg1:int):void{ this._stat_points = _arg1; } public function get skill_points():int{ return (this._skill_points); } public function set skill_points(_arg1:int):void{ this._skill_points = _arg1; } public function get passive_skill_offense():int{ return (this._passive_skill_offense); } public function set passive_skill_offense(_arg1:int):void{ this._passive_skill_offense = _arg1; } public function get passive_skill_defense():int{ return (this._passive_skill_defense); } public function set passive_skill_defense(_arg1:int):void{ this._passive_skill_defense = _arg1; } public function get male():Boolean{ return (this._male); } public function set male(_arg1:Boolean):void{ this._male = _arg1; } public function get ignoreArmorValues():Boolean{ return (this._ignoreArmorValues); } public function set ignoreArmorValues(_arg1:Boolean):void{ this._ignoreArmorValues = _arg1; } public function setActiveSkillsDefault():void{ var _local1:* = 0; var _local2:* = 0; while (_local2 < skills.length) { if (_local1 >= 3){ break; }; if (skills[_local2] != null){ skills[_local2].unlocked = true; skills[_local2].active = true; skills[_local2].position = (_local2 + 1); _local1++; }; _local2++; }; if (DungeonMain.skillsUnlocked){ _local2 = 0; while (_local2 < skills.length) { skills[_local2].unlocked = true; _local2++; }; passive_skill_offense = 25; passive_skill_defense = 25; }; } public function loseRandomEquipment():Boolean{ var _local1:Array = new Array(); var _local2:Array = new Array(); var _local3:Array = new Array(); var _local4:int; while (_local4 < Equipment.gearSlots) { if (gear[_local4] == null){ } else { if ((((gear[_local4].item_rarity == Item.grey)) || ((gear[_local4].item_rarity == Item.white)))){ _local1.push(gear[_local4]); } else { if ((((gear[_local4].item_rarity == Item.green)) || ((gear[_local4].item_rarity == Item.blue)))){ _local2.push(gear[_local4]); } else { if (gear[_local4].item_rarity == Item.purple){ _local3.push(gear[_local4]); }; }; }; }; _local4++; }; var _local5:Boolean; if (_local1.length){ _local5 = destroyEquipment(_local1[dmf.randomNum(0, (_local1.length - 1))]); } else { if (_local2.length){ _local5 = destroyEquipment(_local2[dmf.randomNum(0, (_local2.length - 1))]); } else { if (_local3.length){ _local5 = destroyEquipment(_local3[dmf.randomNum(0, (_local3.length - 1))]); }; }; }; if (DungeonMain.debug){ trace((("dealth penalty: " + charname) + " lost equipment item")); }; return (_local5); } private function destroyEquipment(_arg1:Equipment):Boolean{ var _local2:* = 0; while (_local2 < Equipment.gearSlots) { if (gear[_local2] == _arg1){ gear[_local2] = null; return (true); }; _local2++; }; return (false); } public function recalculateMaxHealth():void{ health_max = getMaxHealth(); if (health > health_max){ health = health_max; }; } public function getMaxHealth():int{ var _local1:* = getEndurance(); return (getHealthForEndurance(_local1)); } override public function getEffectiveHealth():int{ var _local1:* = ((100 - getDamageResist()) / 100); var _local2:* = Math.round((health / _local1)); return (_local2); } public function levelTo(_arg1:int):void{ trace(((("PlayerCharacter.levelTo(" + _arg1) + ") - ") + charname)); var _local2:* = level; while (_local2 < _arg1) { levelUp(); _local2++; }; } public function levelUp():void{ level++; strength = (strength + STATS_PER_LEVEL); endurance = (endurance + STATS_PER_LEVEL); dexterity = (dexterity + STATS_PER_LEVEL); intellect = (intellect + STATS_PER_LEVEL); stat_points = (stat_points + STATS_PER_LEVEL); if (level <= 59){ skill_points++; }; var _local1:int = health_max; health_max = getMaxHealth(); health = (health + (health_max - _local1)); } public function multiplyDamageForTargetType(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:Number = 1; _local3 = 0; while (_local3 < Equipment.gearSlots) { if (((!((gear[_local3] == null))) && ((gear[_local3].damageBonusVsCreatureType == _arg2)))){ _local4 = (_local4 * gear[_local3].damageBonusVsCreatureModifier); }; _local3++; }; return (Math.round((_arg1 * _local4))); } override public function getPoisonResist(_arg1:Boolean=true):int{ var _local2:int = poisonResist; if (_arg1){ _local2 = (_local2 + (buff_resistPoison + potion_poison_resist)); }; var _local3:int; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].resistPoison); }; _local3++; }; if (_local2 > 100){ _local2 = 100; }; return (_local2); } override public function getStunResist(_arg1:Boolean=true):int{ var _local2:int = stunResist; if (_arg1){ _local2 = (_local2 + (buff_resistStun + potion_stun_resist)); }; var _local3:int; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].resistStun); }; _local3++; }; if (_local2 > 100){ _local2 = 100; }; return (_local2); } override public function getDamageReflection(_arg1:Boolean=true):int{ var _local2:int; if (_arg1){ _local2 = (_local2 + buff_damageReflect); }; var _local3:int; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].damageReflection); }; _local3++; }; return (_local2); } override public function getAccuracyDamage(_arg1:Boolean=true):int{ var _local2:int; var _local3:int; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].blind); }; _local3++; }; trace(("PlayerCharacter.getAccuracyDamage: " + _local2)); return (_local2); } override public function getLethality(_arg1:Boolean=true):int{ var _local2:int; if (((DungeonMain.debug) && (DungeonMain.instantKill))){ return (100); }; var _local3:int; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].lethality); }; _local3++; }; return (_local2); } public function getDamageReductionFromArmor():int{ var _local1:int = getArmorRating(); var _local2:* = 250; var _local3:Number = (_local2 * (1 + ((level - 1) * (Equipment.ARMOR_SCALE_CONSTANT + 0.05)))); return (Math.round(((_local1 / _local3) * 40))); } public function getArmorModifierVersus(_arg1:int):Number{ var _local2:Number = 1; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (((!((gear[_local3] == null))) && ((gear[_local3].armorBonusVsCreatureType == _arg1)))){ trace(("found damage resistance to attacker's creature type: " + gear[_local3].armorBonusVsCreatureModifier)); _local2 = (_local2 * gear[_local3].armorBonusVsCreatureModifier); }; _local3++; }; return (_local2); } override public function getDamageResist(_arg1:Boolean=true):int{ var _local2:* = 0; if (_arg1){ _local2 = (_local2 + (((buff_damageResist + temp_damage_resistance) + potion_damage_resist) - debuff_damageResist)); }; _local2 = (_local2 + getDamageReductionFromArmor()); if (_local2 >= 100){ _local2 = 99; }; return (_local2); } override public function damageAfterArmor(_arg1:int, _arg2:Character):int{ var _local3:int = getDamageResist(); _local3 = Math.round((getArmorModifierVersus(_arg2.type) * _local3)); _local3 = Math.min(_local3, 95); var _local4:Number = (1 - (_local3 / 100)); if (_local3 != 0){ _arg1 = (_arg1 * _local4); }; if (_arg1 == 0){ _arg1 = 1; }; return (_arg1); } override public function getAccuracy(_arg1:Boolean=true):int{ var _local2:* = accuracy; if (_arg1){ _local2 = (_local2 + (buff_accuracy - accuracy_penalty)); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].accuracyBonus); }; _local3++; }; _local2 = Math.max(ACCURACY_MINIMUM, _local2); return (_local2); } private function getBonus(_arg1:int):int{ var _local2:* = (_arg1 * DAMAGE_PER_STAT); return (_local2); } public function getStrengthDamageBonus():int{ var _local1:* = getStrength(); return (getBonus(_local1)); } public function getDexterityDamageBonus():int{ var _local1:* = getDexterity(); return (getBonus(_local1)); } public function getIntellectDamageBonus():int{ var _local1:* = getIntellect(); return (getBonus(_local1)); } public function getUnarmedDamage():int{ return ((getStrength() * 2)); } public function getWeaponDamage():int{ var _local1:* = 0; if (gear[Equipment.weapon] == null){ return (getUnarmedDamage()); }; if ((gear[Equipment.weapon] is iDagger)){ _local1 = (getStrengthDamageBonus() + getDexterityDamageBonus()); } else { if ((gear[Equipment.weapon] is MeleeWeapon)){ _local1 = getStrengthDamageBonus(); } else { if ((gear[Equipment.weapon] is RangedWeapon)){ _local1 = getDexterityDamageBonus(); } else { if ((gear[Equipment.weapon] is MageWeapon)){ _local1 = getIntellectDamageBonus(); }; }; }; }; return ((this.gear[Equipment.weapon].damage + _local1)); } public function getArmorRating():int{ var _local1:* = 0; var _local2:* = 0; while (_local2 < Equipment.gearSlots) { if (gear[_local2] != null){ _local1 = (_local1 + gear[_local2].armor_rating); }; _local2++; }; return (_local1); } override public function getPoisonDamage(_arg1:Boolean=true):int{ var _local2:* = 0; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].poisonDamage); }; _local3++; }; return (_local2); } public function canQuickRetreat():Boolean{ var _local1:* = false; var _local2:* = 0; while (_local2 < Equipment.gearSlots) { if (gear[_local2] != null){ if (gear[_local2].quickRetreat){ return (true); }; }; _local2++; }; return (false); } public function unequip(_arg1:Equipment):Boolean{ if (party == null){ return (false); }; if (party.addToInventory(gear[_arg1.slot])){ gear[_arg1.slot] = null; return (true); }; return (false); } public function itemUsable(_arg1:Item):Boolean{ if (!(_arg1 is Equipment)){ return (true); }; var _local2:Boolean; var _local3:Equipment = Equipment(_arg1); if (_local3.whoEquips == Equipment.allEquip){ _local2 = true; } else { if ((((playerclass == PlayerCharacter.CLERIC)) && (((_local3.whoEquips & Equipment.clericEquip) == Equipment.clericEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.WARRIOR)) && (((_local3.whoEquips & Equipment.warriorEquip) == Equipment.warriorEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.ROGUE)) && (((_local3.whoEquips & Equipment.rogueEquip) == Equipment.rogueEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.RANGER)) && (((_local3.whoEquips & Equipment.rangerEquip) == Equipment.rangerEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.MAGE)) && (((_local3.whoEquips & Equipment.mageEquip) == Equipment.mageEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.CONJUROR)) && (((_local3.whoEquips & Equipment.conjurorEquip) == Equipment.conjurorEquip)))){ _local2 = true; }; if ((((playerclass == PlayerCharacter.BARBARIAN)) && (((_local3.whoEquips & Equipment.barbarianEquip) == Equipment.barbarianEquip)))){ _local2 = true; }; }; return (_local2); } public function equip(_arg1:Equipment):Boolean{ var _local2:Boolean = itemUsable(_arg1); if ((_arg1 is Offhand)){ if (gear[Equipment.weapon] != null){ if (gear[Equipment.weapon].twoHanded){ _local2 = false; }; }; }; if ((_arg1 is Weapon)){ if (Weapon(_arg1).twoHanded){ if (gear[Equipment.offhand] != null){ _local2 = false; }; }; }; if (!_local2){ return (false); }; if (!party.unequipItem(_arg1)){ return (false); }; if (gear[_arg1.slot] != null){ if (!party.unequipItem(gear[_arg1.slot])){ return (false); }; }; if (party.removeFromInventory(_arg1)){ gear[_arg1.slot] = _arg1; return (true); }; return (false); } override public function getStrength(_arg1:Boolean=true):int{ var _local2:* = this.strength; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_strength); }; _local3++; }; return (_local2); } override public function getEndurance(_arg1:Boolean=true):int{ var _local2:* = this.endurance; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_endurance); }; _local3++; }; return (_local2); } override public function getDexterity(_arg1:Boolean=true):int{ var _local2:* = this.dexterity; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_dexterity); }; _local3++; }; return (_local2); } override public function getIntellect(_arg1:Boolean=true):int{ var _local2:* = this.intellect; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_intellect); }; _local3++; }; return (_local2); } override public function getQuickness(_arg1:Boolean=true):int{ var _local2:* = this.quickness; if (_arg1){ _local2 = (_local2 + ((buff_quickness + potion_quickness_bonus) - crippled)); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_quickness); }; _local3++; }; _local2 = Math.max(_local2, 0); return (_local2); } override public function getVampiric(_arg1:Boolean=true):int{ var _local2:* = 0; if (_arg1){ _local2 = (_local2 + buff_vampiric); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].vampiric_percent); }; _local3++; }; return (_local2); } override public function getStunChance(_arg1:Boolean=true):int{ var _local2:* = 0; if (_arg1){ _local2 = (_local2 + buff_stun); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].causes_stun_percent); }; _local3++; }; return (_local2); } override public function getHealthRegen(_arg1:Boolean=true):int{ var _local2:* = 0; if (_arg1){ _local2 = (_local2 + buff_healthRegen); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].healthRegen); }; _local3++; }; return (_local2); } override public function getPowerRegen(_arg1:Boolean=true):int{ var _local2:* = power_per_turn; if (_arg1){ _local2 = (_local2 + buff_powerRegen); }; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].powerRegen); }; _local3++; }; return (Math.round((_local2 * powerRegenMod))); } override public function getHealingBonus(_arg1:Boolean=true):int{ var _local2:* = 0; var _local3:* = 0; while (_local3 < Equipment.gearSlots) { if (gear[_local3] != null){ _local2 = (_local2 + gear[_local3].mod_healing); }; _local3++; }; return (_local2); } override public function reduceHealth(_arg1:int):int{ var _local2:* = health; var _local3:* = super.reduceHealth(_arg1); if ((((((health <= 0)) && ((_local2 > 0)))) && ((_local3 > 0)))){ party.stat_member_deaths++; }; return (_local3); } public function getReplenishing():int{ var _local1:* = 0; var _local2:* = 0; while (_local2 < Equipment.gearSlots) { if (gear[_local2] != null){ _local1 = (_local1 + gear[_local2].replenishing); }; _local2++; }; return (_local1); } public function getEvilClone():MonsterCharacter{ var _local3:*; var _local1:* = new MonsterCharacter(level); _local1.charname = ("Dark " + this.charname); _local1.classname = ("Corrupted " + this.classname); _local1.type = MonsterCharacter.human; _local1.description = "A twisted shadow cast by the Corruptor's power."; _local1.level = this.level; _local1.summoned = true; _local1.lethalityImmune = true; _local1.portrait = this.portrait; if (this.useCustomPortrait){ _local1.useCustomPortrait = true; _local1.customPortraitUrl = this.customPortraitUrl; _local1.loadCustomPortrait(); }; _local1.health_max = Math.round((this.health_max * CLONE_HEALTH_MULTIPLIER)); _local1.health = _local1.health_max; _local1.power_per_turn = this.getPowerRegen(false); _local1.strength = this.getStrength(false); _local1.endurance = this.getEndurance(false); _local1.dexterity = this.getDexterity(false); _local1.intellect = this.getIntellect(false); _local1.quickness = Math.max((this.getQuickness(false) - 5), 0); _local1.accuracy = this.getAccuracy(false); _local1.poisonResist = this.getPoisonResist(false); _local1.stunResist = this.getStunResist(false); _local1.pos = 0; _local1.mindless = false; _local1.ethereal = 0; _local1.damage_resistance = this.getDamageResist(false); _local1.vampiric_percent = this.getVampiric(false); _local1.causes_stun_percent = this.getStunChance(false); _local1.damage_reflection = Math.round((this.getDamageReflection(false) * 0.4)); _local1.accuracy_damage = this.getAccuracyDamage(false); _local1.poison_damage = this.getPoisonDamage(false); _local1.regenerate = Math.round(((this.getHealthRegen(false) / _local1.health_max) * 100)); var _local2:* = 0; while (_local2 < skills.length) { if (((skills[_local2].active) && (skills[_local2].usable(true)))){ _local3 = new skills[_local2].constructor(_local1); _local3.damage = Math.round((skills[_local2].getDamage() * CLONE_DAMAGE_MULTIPLIER)); _local3.requiresWeapon = false; _local3.requiresMelee = false; _local3.requiresRanged = false; _local3.requiresShield = false; if (_local3.usesWeaponRange){ if (((!((gear[Equipment.weapon] == null))) && ((((gear[Equipment.weapon] is RangedWeapon)) || ((gear[Equipment.weapon] is MageWeapon)))))){ _local3.rangedAttack = true; }; _local3.usesWeaponRange = false; }; _local1.skills.push(_local3); }; _local2++; }; return (_local1); } override public function genderPronoun(_arg1:Boolean=false):String{ if (_arg1){ if (this.male){ return ("He"); }; return ("She"); //unresolved jump }; if (this.male){ return ("he"); }; return ("she"); } override public function genderPossessive(_arg1:Boolean=false):String{ if (_arg1){ if (this.male){ return ("His"); }; return ("Her"); //unresolved jump }; if (this.male){ return ("his"); }; return ("her"); } override public function genderSelf(_arg1:Boolean=false):String{ if (_arg1){ if (this.male){ return ("Himself"); }; return ("Herself"); //unresolved jump }; if (this.male){ return ("himself"); }; return ("herself"); } public function evaluateEquipment(_arg1:Equipment):int{ var _local6:Number; if (_arg1 == null){ return (0); }; var _local2:int; var _local3:* = 5; if ((((playerclass == WARRIOR)) || ((playerclass == BARBARIAN)))){ if (((!((gear[Equipment.weapon] == null))) && ((gear[Equipment.weapon] is MeleeWeapon)))){ _local2 = (_local2 + (_local3 * _arg1.mod_strength)); } else { _local2 = (_local2 + (_local3 * _arg1.mod_dexterity)); }; _local2 = (_local2 + (_local3 * _arg1.mod_endurance)); } else { if (playerclass == ROGUE){ if (((!((gear[Equipment.weapon] == null))) && ((gear[Equipment.weapon] is MeleeWeapon)))){ _local2 = (_local2 + (_local3 * _arg1.mod_strength)); }; _local2 = (_local2 + (_local3 * _arg1.mod_dexterity)); _local2 = (_local2 + ((_local3 * _arg1.mod_endurance) * 0.8)); } else { if (playerclass == RANGER){ if (((!((gear[Equipment.weapon] == null))) && ((gear[Equipment.weapon] is MeleeWeapon)))){ _local2 = (_local2 + (_local3 * _arg1.mod_strength)); } else { _local2 = (_local2 + (_local3 * _arg1.mod_dexterity)); }; _local2 = (_local2 + ((_local3 * _arg1.mod_intellect) * 0.9)); _local2 = (_local2 + ((_local3 * _arg1.mod_endurance) * 0.8)); } else { if ((((playerclass == MAGE)) || ((playerclass == CONJUROR)))){ if (((!((gear[Equipment.weapon] == null))) && ((gear[Equipment.weapon] is MeleeWeapon)))){ _local2 = (_local2 + ((_local3 * _arg1.mod_strength) * 0.5)); }; _local2 = (_local2 + (_local3 * _arg1.mod_intellect)); _local2 = (_local2 + ((_local3 * _arg1.mod_endurance) * 0.8)); } else { if (playerclass == CLERIC){ if (getStrength() >= (getIntellect() * 0.8)){ _local2 = (_local2 + (_local3 * _arg1.mod_strength)); } else { _local2 = (_local2 + ((_local3 * _arg1.mod_strength) * 0.5)); }; _local2 = (_local2 + (_local3 * _arg1.mod_intellect)); _local2 = (_local2 + ((_local3 * _arg1.mod_endurance) * 0.8)); _local2 = (_local2 + (_arg1.mod_healing * 2)); }; }; }; }; }; var _local4:* = _arg1.mod_quickness; if (_arg1.mod_quickness < 0){ _local4 = (_local4 * 0.5); }; _local2 = (_local2 + _local4); _local2 = (_local2 + (_arg1.vampiric_percent * 0.5)); _local2 = (_local2 + (_arg1.causes_stun_percent * 0.6)); _local2 = (_local2 + (_arg1.damageReflection * 0.5)); _local2 = (_local2 + (_arg1.blind * 0.5)); _local2 = (_local2 + _arg1.lethality); _local2 = (_local2 + _arg1.replenishing); _local2 = (_local2 + (_arg1.poisonDamage * 1.5)); _local2 = (_local2 + (_arg1.powerRegen * 4)); _local2 = (_local2 + (_arg1.healthRegen * 2)); if (getAccuracy() < 100){ _local2 = (_local2 + _arg1.accuracyBonus); }; if (getPoisonResist(false) < 100){ _local2 = (_local2 + (_arg1.resistPoison * 0.5)); }; if (getStunResist(false) < 100){ _local2 = (_local2 + (_arg1.resistStun * 0.5)); }; if (_arg1.damageBonusVsCreatureModifier > 1){ _local2 = (_local2 * ((_arg1.damageBonusVsCreatureModifier + 3) * 0.25)); }; if (_arg1.quickRetreat){ _local2 = (_local2 * 1.1); }; var _local5:Number = 1; if ((_arg1 is Weapon)){ _local2 = (Weapon.scaleWeaponDamageForLevelNew(_local2, _arg1.item_level) * _local5); _local2 = (_local2 + (Weapon(_arg1).damage * _local5)); }; if (!ignoreArmorValues){ if (playerclass == WARRIOR){ _local6 = 1.25; } else { if (playerclass == CLERIC){ _local6 = 1.1; } else { _local6 = 1; }; }; _local2 = (_local2 * ((1 + (Equipment.ARMOR_SCALE_CONSTANT * (_arg1.item_level - 1))) * _local6)); _local2 = (_local2 + (_arg1.armor_rating * _local6)); }; return (Math.round(_local2)); } override public function isInactive():Boolean{ if (retreated){ return (true); }; return (super.isInactive()); } public function getPassiveSkillName(_arg1:Boolean):String{ if (_arg1){ return ("Generic Offensive Skill"); }; return ("Generic Defensive Skill"); } public function getPassiveSkillDescription(_arg1:Boolean, _arg2:int=-1):String{ if (_arg1){ return ("Generic Offensive Skill Description"); }; return ("Generic Defensive Skill Description"); } public function getPassiveSkillIcon(_arg1:Boolean):int{ return (1); } public static function baseHealthForLevel(_arg1:int):int{ return (getHealthForEndurance((1 + (_arg1 * STATS_PER_LEVEL)))); } public static function getHealthForEndurance(_arg1:int):int{ return ((base_health + ((_arg1 - 1) * HEALTH_PER_ENDURANCE))); } public static function randomName(_arg1:Boolean):String{ var _local2:Array; if (_arg1){ _local2 = new Array("Nigel", "Neil", "Niles", "Charles", "Boris", "Jethro", "Gerald", "Horace", "Stan", "Alan", "Hank", "Marty", "Trevor", "Trent", "Bruce", "Eugene", "Wally", "Harold", "Hamish", "Carlos", "Jeremy", "Jerome", "Jermaine", "Tito", "George", "Hans", "Chad", "Rupert", "Ruprecht", "Albert", "Alfred", "Phineas", "Brent", "Colin", "Travis", "Jarvis", "Elton", "Ernest", "Mitch"); } else { _local2 = new Array("Tiffany", "Matilda", "Jemima", "Morag", "Mildred", "Martha", "Suzanne", "Sharon", "Chantel", "Miriam", "Muriel", "Susan", "Pam", "Desiree", "Bertha", "Olga", "Peggy", "Freda", "Charlene", "Bessy", "Priscilla", "Aubrey", "Mariah", "Nancy", "Barbara", "Kathleen", "Cynthia", "Maureen", "Judith", "Tammy", "Sheila", "Joyce", "Regina", "Wanda"); }; return (_local2[dmf.randomNum(0, (_local2.length - 1))]); } } }//package
Section 333
//PlayerSummon (PlayerSummon) package { public class PlayerSummon extends PlayerCharacter { public function PlayerSummon(_arg1:int=1):void{ playerclass = PlayerCharacter.SUMMON; summoned = true; this.level = _arg1; health_max = getSummonHealth(_arg1); damage = getSummonDamage(_arg1); } protected function initSummonSkills():void{ var _local1:* = 0; while (_local1 < skills.length) { skills[_local1].position = (_local1 + 1); skills[_local1].active = true; _local1++; }; } override public function canQuickRetreat():Boolean{ return (true); } override public function reduceHealth(_arg1:int):int{ if (invulnerable){ return (0); }; var _local2:* = health; health = (health - _arg1); if ((((health < cannotDieMin)) && ((cannotDie > 0)))){ health = Math.min(_local2, cannotDieMin); }; if (health < 0){ health = 0; clearStatusEffects(); }; if (health > health_max){ health = health_max; }; return ((_local2 - health)); } override public function getDamageResist(_arg1:Boolean=true):int{ var _local2:* = 0; if (_arg1){ _local2 = (_local2 + ((buff_damageResist + temp_damage_resistance) - debuff_damageResist)); }; _local2 = (_local2 + damage_resistance); if (_local2 >= 100){ _local2 = 99; }; return (_local2); } override public function getEvilClone():MonsterCharacter{ return (null); } public static function getSummonHealth(_arg1:int):int{ var _local2:int = baseHealthForLevel(_arg1); return (_local2); } public static function getSummonDamage(_arg1:int):int{ var _local2:int = Weapon.scaleWeaponDamageForLevelNew(Weapon.sword_base_damage, _arg1); _local2 = (_local2 + ((1 + (_arg1 * PlayerCharacter.STATS_PER_LEVEL)) * PlayerCharacter.DAMAGE_PER_STAT)); return (_local2); } } }//package
Section 334
//pManaSprite (pManaSprite) package { public class pManaSprite extends PlayerSummon { public function pManaSprite(_arg1:int=1){ super(_arg1); classname = "Manasprite"; charname = "Manasprite"; portrait = CharGraphic.sprite_blue; description = "Summoned."; quickness = 60; power_per_turn = 0; health_max = Math.round((health_max * 0.5)); health = health_max; damage = Math.round((damage * 0.5)); skills.push(new sSummonAttack(this)); skills.push(new sSpriteRestorePower(this)); initSummonSkills(); } } }//package
Section 335
//poison_drake_sound (poison_drake_sound) package { import flash.media.*; public dynamic class poison_drake_sound extends Sound { } }//package
Section 336
//poison_sound (poison_sound) package { import flash.media.*; public dynamic class poison_sound extends Sound { } }//package
Section 337
//poisoneffect (poisoneffect) package { import flash.display.*; public dynamic class poisoneffect extends MovieClip { public function poisoneffect(){ addFrameScript(4, frame5, 49, frame50); } function frame5(){ dm.sound.play(SoundControl.poison, 0.75); } function frame50(){ this.stop(); } } }//package
Section 338
//PortalScroll (PortalScroll) package { public class PortalScroll extends Consumable { public function PortalScroll(_arg1:int=1){ item_name = "Portal Scroll"; town_portal = true; item_rarity = Item.purple; icon_frame = 84; } override public function getWorth():int{ return (0); } } }//package
Section 339
//PortraitAnimation (PortraitAnimation) package { import flash.display.*; public class PortraitAnimation { static const heal = 1; static const revive = 2; static const buff = 3; static const armorBuff = 4; static const fireBuff = 5; static const quicknessBuff = 6; static const regenBuff = 7; static const curse = 8; static const blind = 9; static const holyDamage = 10; static const fire = 11; static const freeze = 12; static const explosion = 13; static const debuff = 14; static const cosmicPrison = 15; static const poison = 16; static const lethal = 17; static const lightning = 18; static const protectAllies = 20; static const defiance = 21; static const mageAttack = 25; static const playerArrow = 26; static const playerUnarmed = 27; static const playerSlash = 28; static const playerMultiSlash = 29; static const playerPowerSlash = 30; static const summonSlash = 31; static const powerDrain = 39; static const gainPower = 40; static const gainHealth = 41; static const restore = 42; static const creatureSlash = 50; static const creatureWeapon = 51; static const creatureSpear = 52; static const monsterArrow = 55; static const monsterMagic = 56; static const cultistArrow = 57; static const monsterThrown = 58; static const creatureBite = 59; static const ghostAttack = 60; static const swoopAttack = 61; static const web = 70; static const fearDeath = 71; static const confuse = 72; static const summon = 80; static const transform = 81; static const summonWhirlwind = 79; static const monsterBeer = 85; static const runeStrength = 86; static const runeProtection = 87; static const runePower = 88; static const monsterThorns = 90; static const monsterDrain = 98; static const disintegrate = 99; static const clone = 100; public static function getAnimation(_arg1:int):MovieClip{ if (_arg1 <= 0){ return (null); }; var _local2:MovieClip; switch (_arg1){ case heal: _local2 = new healeffect(); break; case revive: _local2 = new revive_effect(); break; case buff: case quicknessBuff: case monsterThorns: case regenBuff: _local2 = new buff_effect(); break; case runeProtection: case runePower: _local2 = new rune_protection(); break; case runeStrength: _local2 = new rune_strength(); break; case armorBuff: case protectAllies: case defiance: _local2 = new armor_buff_effect(); break; case summonSlash: _local2 = new summon_slash(); break; case confuse: _local2 = new confuse_effect(); break; case debuff: _local2 = new debuff_effect(); break; case poison: _local2 = new poisoneffect(); break; case curse: _local2 = new curse_effect(); break; case blind: _local2 = new blind_effect(); break; case holyDamage: _local2 = new smite_effect(); break; case lethal: _local2 = new lethal_effect(); break; case fire: case explosion: case fireBuff: _local2 = new fire_effect(); break; case lightning: _local2 = new Lightning(); break; case freeze: _local2 = new frozen_effect(); break; case cosmicPrison: _local2 = new cosmic_prison(); break; case fearDeath: _local2 = new feardeath_effect(); break; case playerArrow: _local2 = new player_arrow(); break; case playerSlash: _local2 = new player_slash(); break; case playerMultiSlash: _local2 = new player_multi_slash(); break; case playerPowerSlash: _local2 = new player_power_slash(); break; case mageAttack: _local2 = new player_mage_attack(); break; case summon: _local2 = new summon_effect(); break; case transform: _local2 = new transform_effect(); break; case summonWhirlwind: _local2 = new summon_whirlwind(); break; case powerDrain: _local2 = new lose_power_effect(); break; case gainPower: _local2 = new gain_power_effect(); break; case gainHealth: _local2 = new gain_health_effect(); break; case restore: _local2 = new gain_both_effect(); break; case creatureSlash: case creatureBite: case swoopAttack: case ghostAttack: _local2 = new creature_slash(); break; case creatureWeapon: _local2 = new creature_weapon(); break; case creatureSpear: _local2 = new creature_spear(); break; case monsterMagic: _local2 = new monster_magic_attack(); break; case monsterArrow: _local2 = new monster_arrow(); break; case cultistArrow: _local2 = new monster_arrow_drainpower(); break; case monsterThrown: _local2 = new monster_thrown(); break; case web: _local2 = new web_effect(); break; case disintegrate: _local2 = new disintegrate_effect(); break; case monsterDrain: _local2 = new monster_drain_effect(); break; case monsterBeer: _local2 = new beer_effect(); break; case clone: _local2 = new clone_effect(); break; }; return (_local2); } } }//package
Section 340
//PortraitAnimationFrame (PortraitAnimationFrame) package { import flash.display.*; public class PortraitAnimationFrame extends MovieClip { public function PortraitAnimationFrame(_arg1:int=0){ this.gotoAndStop(_arg1); } } }//package
Section 341
//PortraitEffected (PortraitEffected) package { import flash.display.*; public dynamic class PortraitEffected extends MovieClip { } }//package
Section 342
//PortraitHighlight (PortraitHighlight) package { import flash.display.*; public dynamic class PortraitHighlight extends MovieClip { } }//package
Section 343
//PortraitSelect (PortraitSelect) package { import flash.display.*; public dynamic class PortraitSelect extends MovieClip { } }//package
Section 344
//potion_sound (potion_sound) package { import flash.media.*; public dynamic class potion_sound extends Sound { } }//package
Section 345
//PotionBody (PotionBody) package { public class PotionBody extends Consumable { public function PotionBody(_arg1:int=1){ item_name = "Body Enhancement Elixir"; lore = "Sometimes referred to as 'Juice'"; increase_strength = 5; increase_endurance = 5; item_rarity = Item.orange; icon_frame = 4; } } }//package
Section 346
//PotionHealth (PotionHealth) package { public class PotionHealth extends Consumable { public function PotionHealth(_arg1:int=1){ item_name = "Healing Potion"; restore_health = 75; item_rarity = Item.blue; icon_frame = 4; } } }//package
Section 347
//PotionHealthSmall (PotionHealthSmall) package { public class PotionHealthSmall extends Consumable { public function PotionHealthSmall(_arg1:int=1){ item_name = "Weak Healing Potion"; restore_health = 40; item_rarity = Item.green; icon_frame = 80; } } }//package
Section 348
//PotionPoisonResist (PotionPoisonResist) package { public class PotionPoisonResist extends Consumable { public function PotionPoisonResist(_arg1:int=1){ item_name = "Snake's Blood Potion"; restore_health = 20; poison_resist = 100; item_rarity = Item.green; icon_frame = 77; } } }//package
Section 349
//PotionPower (PotionPower) package { public class PotionPower extends Consumable { public function PotionPower(_arg1:int=1){ item_name = "Power Potion"; restore_power = 75; item_rarity = Item.blue; icon_frame = 5; } } }//package
Section 350
//PotionPowerSmall (PotionPowerSmall) package { public class PotionPowerSmall extends Consumable { public function PotionPowerSmall(_arg1:int=1){ item_name = "Weak Power Potion"; restore_power = 40; item_rarity = Item.green; icon_frame = 81; } } }//package
Section 351
//PotionQuickness (PotionQuickness) package { public class PotionQuickness extends Consumable { public function PotionQuickness(_arg1:int=1){ item_name = "Elixir of Speed"; quickness_bonus = 20; item_rarity = Item.green; icon_frame = 78; } } }//package
Section 352
//PotionRejuve (PotionRejuve) package { public class PotionRejuve extends Consumable { public function PotionRejuve(_arg1:int=1){ item_name = "Rejuvenation Potion"; restore_health = 75; restore_power = 75; item_rarity = Item.blue; icon_frame = 7; } } }//package
Section 353
//PotionRejuveSmall (PotionRejuveSmall) package { public class PotionRejuveSmall extends Consumable { public function PotionRejuveSmall(_arg1:int=1){ item_name = "Weak Rejuvenation Potion"; restore_health = 40; restore_power = 40; item_rarity = Item.green; icon_frame = 83; } } }//package
Section 354
//PotionRevive (PotionRevive) package { public class PotionRevive extends Consumable { public function PotionRevive(_arg1:int=1){ item_name = "Revival Potion"; restore_health = 75; resurrect = true; item_rarity = Item.blue; icon_frame = 6; } } }//package
Section 355
//PotionReviveWeak (PotionReviveWeak) package { public class PotionReviveWeak extends Consumable { public function PotionReviveWeak(_arg1:int=1){ item_name = "Weak Revival Potion"; restore_health = 30; resurrect = true; item_rarity = Item.green; icon_frame = 82; } } }//package
Section 356
//PotionShield (PotionShield) package { public class PotionShield extends Consumable { public function PotionShield(_arg1:int=1){ item_name = "Elixir of Protection"; damage_resist = 20; stun_resist = 50; item_rarity = Item.green; icon_frame = 79; } } }//package
Section 357
//PotionWits (PotionWits) package { public class PotionWits extends Consumable { public function PotionWits(_arg1:int=1){ item_name = "Elixir of Enhanced Wits"; increase_dexterity = 5; increase_intellect = 5; item_rarity = Item.orange; icon_frame = 5; } } }//package
Section 358
//power_up_sound (power_up_sound) package { import flash.media.*; public dynamic class power_up_sound extends Sound { } }//package
Section 359
//PowerBar (PowerBar) package { import flash.display.*; public dynamic class PowerBar extends MovieClip { public var lightbar:MovieClip; public var bar:MovieClip; } }//package
Section 360
//ProgressCleared (ProgressCleared) package { import flash.display.*; import flash.text.*; public dynamic class ProgressCleared extends MovieClip { public var bar_mask:MovieClip; public var label:TextField; public var holder:MovieClip; } }//package
Section 361
//ProgressExplored (ProgressExplored) package { import flash.display.*; import flash.text.*; public dynamic class ProgressExplored extends MovieClip { public var bar_mask:MovieClip; public var label:TextField; public var holder:MovieClip; } }//package
Section 362
//pShadow (pShadow) package { public class pShadow extends PlayerSummon { public function pShadow(_arg1:int=1){ var _local2:int; super(_arg1); classname = "Shadow"; charname = "Shadow"; description = "Summoned. Acts as decoy or curses enemies."; portrait = CharGraphic.warrior1; if (((!((dm.main == null))) && (!((dm.main.pc_party == null))))){ if (dm.main.pc_party.members.length){ _local2 = dmf.randomNum(0, (dm.main.pc_party.members.length - 1)); portrait = dm.main.pc_party.members[_local2].portrait; }; }; quickness = 50; power_per_turn = 0; health_max = 1; health = health_max; damage = 0; skills.push(new sShadowCurse(this)); skills.push(new sShadowCure(this)); initSummonSkills(); } } }//package
Section 363
//pShadowWolf (pShadowWolf) package { public class pShadowWolf extends PlayerSummon { public function pShadowWolf(_arg1:int=1){ super(_arg1); classname = "Creature"; charname = "Dire Wolf"; portrait = CharGraphic.wolf; description = "Summoned."; quickness = 55; health_max = Math.round((health_max * 0.6)); health = health_max; damage = Math.round((damage * 0.8)); skills.push(new sSummonAttack(this)); initSummonSkills(); } } }//package
Section 364
//punch_sound (punch_sound) package { import flash.media.*; public dynamic class punch_sound extends Sound { } }//package
Section 365
//pWargolem (pWargolem) package { public class pWargolem extends PlayerSummon { public function pWargolem(_arg1:int=1){ super(_arg1); classname = "Wargolem"; charname = "Wargolem"; portrait = CharGraphic.golem; description = "Summoned. Animated stone and steel."; quickness = 20; damage_resistance = 50; health_max = Math.round((health_max * 0.6)); health = health_max; damage = Math.round((damage * 0.7)); skills.push(new sSummonAttack(this)); skills[0].specialAnimation = PortraitAnimation.playerSlash; skills.push(new sWargolemHarden(this)); initSummonSkills(); } } }//package
Section 366
//QualitySelector (QualitySelector) package { import flash.events.*; import flash.display.*; import flash.text.*; public class QualitySelector extends MovieClip { public var best:TextField; public var med:TextField; public var low:TextField; public var high:TextField; private static var _quality:String = "HIGH"; public function QualitySelector():void{ best.addEventListener(MouseEvent.MOUSE_DOWN, clickBest); high.addEventListener(MouseEvent.MOUSE_DOWN, clickHigh); med.addEventListener(MouseEvent.MOUSE_DOWN, clickMed); low.addEventListener(MouseEvent.MOUSE_DOWN, clickLow); addEventListener(Event.ADDED_TO_STAGE, added); } public function cleanup():void{ best.removeEventListener(MouseEvent.MOUSE_DOWN, clickBest); high.removeEventListener(MouseEvent.MOUSE_DOWN, clickHigh); med.removeEventListener(MouseEvent.MOUSE_DOWN, clickMed); low.removeEventListener(MouseEvent.MOUSE_DOWN, clickLow); } function added(_arg1:Event):void{ trace("QualitySelector added"); removeEventListener(Event.ADDED_TO_STAGE, added); setQuality(quality); updateGraphic(); } private function updateGraphic():void{ if (stage.quality == "LOW"){ this.gotoAndStop("low"); } else { if (stage.quality == "MEDIUM"){ this.gotoAndStop("med"); } else { if (stage.quality == "HIGH"){ this.gotoAndStop("high"); } else { if (stage.quality == "BEST"){ this.gotoAndStop("best"); }; }; }; }; } function clickLow(_arg1:MouseEvent):void{ setQuality(StageQuality.LOW); updateGraphic(); } function clickMed(_arg1:MouseEvent):void{ setQuality(StageQuality.MEDIUM); updateGraphic(); } function clickHigh(_arg1:MouseEvent):void{ setQuality(StageQuality.HIGH); updateGraphic(); } function clickBest(_arg1:MouseEvent):void{ setQuality(StageQuality.BEST); updateGraphic(); } public static function get quality():String{ return (_quality); } public static function setQuality(_arg1:String):void{ trace(("setQuality: " + _arg1)); _quality = _arg1; if (dm.stage != null){ dm.stage.quality = _arg1; }; } } }//package
Section 367
//QualitySelectorMenu (QualitySelectorMenu) package { public dynamic class QualitySelectorMenu extends QualitySelector { } }//package
Section 368
//RandomBones (RandomBones) package { public dynamic class RandomBones extends RandomFrame { public function RandomBones(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package
Section 369
//RandomFloor (RandomFloor) package { import flash.display.*; public dynamic class RandomFloor extends MovieClip { } }//package
Section 370
//RandomFrame (RandomFrame) package { import flash.display.*; public class RandomFrame extends MovieClip { public function RandomFrame():void{ var _local1:int = dmf.randomNum(1, this.totalFrames); this.gotoAndStop(_local1); } } }//package
Section 371
//RandomGear (RandomGear) package { public dynamic class RandomGear extends RandomFrame { public function RandomGear(){ addFrameScript(0, frame1); } function frame1(){ this.stop(); } } }//package
Section 372
//RandomLightning (RandomLightning) package { import flash.display.*; public dynamic class RandomLightning extends MovieClip { public var f; public var r; public function RandomLightning(){ addFrameScript(0, frame1); } function frame1(){ f = dm.randomNum(1, this.totalFrames); this.gotoAndStop(f); r = dm.randomNum(0, 359); this.rotation = r; } } }//package
Section 373
//RangedWeapon (RangedWeapon) package { public class RangedWeapon extends Weapon { public function RangedWeapon(){ materials.push("Elm", "Oak", "Ash", "Yew", "Voidwood", "Planespine"); } override public function getItemTypeString(){ return ("Ranged Weapon"); } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Venomous", 5]); suffixes.push(["Deftness", base_item_stat_bonus]); } } }//package
Section 374
//RatingDialog (RatingDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; public class RatingDialog extends MovieClip { public var yes_btn:MovieClip; public var kongSubmitButton:MovieClip; public var col1:TextField; public var col2:TextField; public var col3:TextField; public var total:TextField; public var subtotal:TextField; public var difficulty:TextField; public function RatingDialog(_arg1:Party=null){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; super(); yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); kongSubmitButton.addEventListener(MouseEvent.MOUSE_DOWN, clickSubmit); if (((!(DungeonMain.KONGREGATE)) && (!(DungeonMain.debug)))){ removeChild(kongSubmitButton); }; if (_arg1 != null){ _local2 = _arg1.level; _local3 = Math.round(((_arg1.stat_rooms_explored / _arg1.stat_rooms_total) * 100)); _local4 = Math.round(((_arg1.stat_hordes_defeated / (_local2 * 10)) * 100)); _local5 = (_local3 + _local4); _local6 = _arg1.stat_member_deaths; _local7 = _arg1.stat_shrines_used; _local8 = _arg1.stat_party_defeats; _local9 = _arg1.stat_leaders_defeated; _arg1.getLevelScore(); col1.text = ((((((((((_local2 + "\n") + _local4) + "\n\n") + _local9) + "\n") + _local7) + "\n") + _local6) + "\n") + _local8); col2.text = ((((((((((Party.SCORE_LEVEL + "\n") + _local3) + "\n\n") + Party.SCORE_LEADERS) + "\n") + Party.SCORE_SHRINES) + "\n") + Party.SCORE_DEATHS) + "\n") + Party.SCORE_DEFEATS); col3.text = (((((((((((((_arg1.level * Party.SCORE_LEVEL) + "\nx") + _local5) + "%\n") + _arg1.getLevelScore()) + "\n") + (_local9 * Party.SCORE_LEADERS)) + "\n") + (_local7 * Party.SCORE_SHRINES)) + "\n") + (_local6 * Party.SCORE_DEATHS)) + "\n") + (_local8 * Party.SCORE_DEFEATS)); subtotal.text = String(_arg1.getScore(false)); difficulty.text = (("x" + String(Difficulty.getMultiplier(_arg1.difficulty, _arg1.difficultyMods))) + "%"); total.text = String(_arg1.getScore(true)); }; } private function cleanup():void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); kongSubmitButton.removeEventListener(MouseEvent.MOUSE_DOWN, clickSubmit); } function clickOkay(_arg1:MouseEvent):void{ if (parent != null){ parent.removeChild(this); cleanup(); }; } function clickSubmit(_arg1:MouseEvent):void{ dm.main.beginStatSubmit(); } } }//package
Section 375
//rCell (rCell) package { public class rCell extends DungeonRoom { static var grid_width = 2; static var grid_height = 2; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 376
//rChamber (rChamber) package { public class rChamber extends DungeonRoom { static var grid_width = 3; static var grid_height = 3; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 377
//rCorridorH (rCorridorH) package { import flash.display.*; public class rCorridorH extends DungeonCorridor { public var gfx:MovieClip; static var grid_width = 2; static var grid_height = 1; public function rCorridorH(){ isCorridorH = true; } override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } override public function setAlpha(_arg1:Number):void{ gfx.alpha = _arg1; tint.alpha = _arg1; setAlphaChildren(_arg1); } override public function getAlpha():Number{ return (gfx.alpha); } override public function setChild(_arg1:DisplayObject):void{ addChild(_arg1); } } }//package
Section 378
//rCorridorV (rCorridorV) package { import flash.display.*; public class rCorridorV extends DungeonCorridor { public var gfx:MovieClip; static var grid_width = 1; static var grid_height = 2; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } override public function setAlpha(_arg1:Number):void{ gfx.alpha = _arg1; tint.alpha = _arg1; setAlphaChildren(_arg1); } override public function getAlpha():Number{ return (gfx.alpha); } override public function setChild(_arg1:DisplayObject):void{ addChild(_arg1); } } }//package
Section 379
//rDemonRoom (rDemonRoom) package { import flash.display.*; public class rDemonRoom extends DungeonRoom { public var rune1:MovieClip; public var rune2:MovieClip; public var rune3:MovieClip; public var rune4:MovieClip; public var rune5:MovieClip; public var rune6:MovieClip; public var rune7:MovieClip; public var rune8:MovieClip; public var rune9:MovieClip; static var grid_width = 5; static var grid_height = 5; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } public function toFrame(_arg1:int):void{ var _local3:*; this.gotoAndStop(_arg1); var _local2:* = 1; while (_local2 < _arg1) { _local3 = getChildByName(("rune" + _local2)); if (_local3 == null){ } else { _local3.gotoAndPlay(1); }; _local2++; }; } } }//package
Section 380
//RecoveryShrine (RecoveryShrine) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class RecoveryShrine extends MovieClip { var room:DungeonRoom; var used:Boolean; public static const TYPE_ID = 1; public function RecoveryShrine(){ addFrameScript(0, frame1); used = false; this.gotoAndStop(1); } public function get type():int{ return (TYPE_ID); } public function fade():void{ used = true; this.gotoAndPlay(2); var _local1:Timer = new Timer(500, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, onFadeComplete); _local1.start(); } function onFadeComplete(_arg1:TimerEvent):void{ if (parent != null){ parent.removeChild(this); }; } function frame1(){ this.gotoAndStop(1); } } }//package
Section 381
//RedBar (RedBar) package { import flash.display.*; public dynamic class RedBar extends MovieClip { } }//package
Section 382
//RestDialog (RestDialog) package { import flash.events.*; import flash.display.*; import flash.ui.*; public class RestDialog extends MovieClip { public var no_btn:MovieClip; public var yes_btn:MovieClip; public function RestDialog(){ this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); this.no_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); no_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickNo); } function clickYes(_arg1:MouseEvent):void{ if (((!((parent == null))) && ((parent is Dungeon)))){ cleanup(); Dungeon(parent).useRest(); }; } function clickNo(_arg1:MouseEvent):void{ if (parent != null){ cleanup(); parent.removeChild(this); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ clickYes(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ clickNo(null); }; }; } } }//package
Section 383
//RestScreen (RestScreen) package { import flash.display.*; public dynamic class RestScreen extends MovieClip { public function RestScreen(){ addFrameScript(14, frame15, 30, frame31); } function frame15(){ if (((!((this.parent == null))) && ((this.parent is Dungeon)))){ Dungeon(this.parent).updateChars(); Dungeon(this.parent).removeRestButton(); }; } function frame31(){ if (this.parent != null){ parent.removeChild(this); }; } } }//package
Section 384
//RetreatedEffect (RetreatedEffect) package { import flash.display.*; public dynamic class RetreatedEffect extends Sprite { } }//package
Section 385
//return_of_the_knights_b (return_of_the_knights_b) package { import flash.media.*; public dynamic class return_of_the_knights_b extends Sound { } }//package
Section 386
//revive_effect (revive_effect) package { import flash.display.*; public dynamic class revive_effect extends MovieClip { public var gfx:CharGraphic; public function revive_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.heal); } function frame45(){ this.stop(); } } }//package
Section 387
//rGallery (rGallery) package { public class rGallery extends DungeonRoom { static var grid_width = 3; static var grid_height = 4; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 388
//rLargeRoom (rLargeRoom) package { public class rLargeRoom extends DungeonRoom { static var grid_width = 4; static var grid_height = 4; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 389
//rollingthunder_c (rollingthunder_c) package { import flash.media.*; public dynamic class rollingthunder_c extends Sound { } }//package
Section 390
//RoomFlash (RoomFlash) package { import flash.display.*; public dynamic class RoomFlash extends MovieClip { public function RoomFlash(){ addFrameScript(8, frame9); } function frame9(){ if (this.parent != null){ parent.removeChild(this); }; } } }//package
Section 391
//rTallRoom (rTallRoom) package { public class rTallRoom extends DungeonRoom { static var grid_width = 2; static var grid_height = 4; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 392
//rune_protection (rune_protection) package { import flash.display.*; public dynamic class rune_protection extends MovieClip { public function rune_protection(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.armorBuff); } function frame45(){ this.stop(); } } }//package
Section 393
//rune_strength (rune_strength) package { import flash.display.*; public dynamic class rune_strength extends MovieClip { public function rune_strength(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.armorBuff); } function frame45(){ this.stop(); } } }//package
Section 394
//rWideRoom (rWideRoom) package { public class rWideRoom extends DungeonRoom { static var grid_width = 4; static var grid_height = 2; override public function getGridWidth():int{ return (grid_width); } override public function getGridHeight():int{ return (grid_height); } } }//package
Section 395
//sAdventurerAttack (sAdventurerAttack) package { public class sAdventurerAttack extends Skill { public function sAdventurerAttack(_arg1:Character){ char_ref = _arg1; increasesWith = none; active = true; damage = _arg1.damage; power_cost = 0; skillname = "Attack"; verbage = "attacks"; iconFrame = 17; specialAnimation = PortraitAnimation.playerSlash; } override public function description():String{ return ((("Melee attack for " + getDamage()) + " damage.")); } } }//package
Section 396
//sAdventurerHeal (sAdventurerHeal) package { public class sAdventurerHeal extends Skill { public function sAdventurerHeal(_arg1:Character){ char_ref = _arg1; increasesWith = none; active = true; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; removesPoison = true; healing = (_arg1.health_max * 0.2); power_cost = 70; iconFrame = 10; skillname = "First Aid"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Heal all allies for " + healing) + " and cure them of poison.")); } } }//package
Section 397
//sAdventurerThrow (sAdventurerThrow) package { public class sAdventurerThrow extends Skill { public function sAdventurerThrow(_arg1:Character){ char_ref = _arg1; increasesWith = none; active = true; rangedAttack = true; damage = (_arg1.damage * 0.75); power_cost = 20; skillname = "Bow Attack"; verbage = ("uses " + skillname); iconFrame = 15; specialAnimation = PortraitAnimation.playerArrow; } override public function description():String{ return ((("Ranged attack for " + getDamage()) + " damage.")); } } }//package
Section 398
//sAetherLightning (sAetherLightning) package { public class sAetherLightning extends Skill { public function sAetherLightning(_arg1:Character){ char_ref = _arg1; aiTargetsBackRow = true; rangedAttack = true; power_cost = 50; damage = Math.round((char_ref.damage * 0.8)); splashDamageMultiplier = 0.7; skillname = "Ion Bolt"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.lightning; } } }//package
Section 399
//sArachnoidWeb (sArachnoidWeb) package { public class sArachnoidWeb extends Skill { public function sArachnoidWeb(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; rangedAttack = true; hitsAllEnemies = true; damage = 0; power_cost = 80; attacksWithAccuracyMod = 0.75; crippling = 15; damageAccuracy = 20; skillname = "Web"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.web; } } }//package
Section 400
//sAscendantRanged (sAscendantRanged) package { public class sAscendantRanged extends Skill { public function sAscendantRanged(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 1)); power_cost = 10; ignoresArmor = false; damageAccuracy = 10; skillname = "Energy Flare"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.holyDamage; } } }//package
Section 401
//SatyrQuestDialog (SatyrQuestDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class SatyrQuestDialog extends MovieClip { public var yes_btn:MovieClip; public var charName:TextField; public var charGraphic:CharGraphic; public var dialogue:TextField; private var questComplete:Boolean; public function SatyrQuestDialog(_arg1:Boolean=false):void{ charName.text = Horde.getLurkerName(); dmf.embolden(charName); charGraphic.setFrame(CharGraphic.satyr); questComplete = _arg1; if (!_arg1){ dialogue.text = "\"You are not one of them. Come closer.\n\n\"This place was my home, before these monsters arrived. Now, I am an exile, hunted like vermin. Destroy them for me, every last one. In return, I will give you what I have pilfered from their supplies.\""; } else { dialogue.text = "\"You have done as I asked. More for the promise of reward than compassion or justice for me, I suspect.\n\n\"But you shall have your reward. Take it and go now. Leave me to my solitude.\""; }; this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); } function clickYes(_arg1:MouseEvent):void{ if (parent != null){ if (questComplete){ Dungeon(parent).satyrQuestComplete(); }; cleanup(); parent.removeChild(this); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ clickYes(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ clickYes(null); }; }; } } }//package
Section 402
//SaveDeleteDialog (SaveDeleteDialog) package { import flash.events.*; import flash.display.*; import flash.ui.*; public class SaveDeleteDialog extends MovieClip { var slot:int;// = 0 public var yes_btn:MovieClip; public var no_btn:MovieClip; public function SaveDeleteDialog(_arg1:int=0){ this.slot = _arg1; this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); this.no_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup(){ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); no_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ESCAPE){ clickNo(null); }; } function clickYes(_arg1:MouseEvent):void{ if (((!((parent == null))) && ((parent is LoadParty)))){ LoadParty(parent).deleteSlot(slot); cleanup(); parent.removeChild(this); }; } function clickNo(_arg1:MouseEvent):void{ if (parent != null){ parent.removeChild(this); cleanup(); }; } } }//package
Section 403
//SaveGameEmpty (SaveGameEmpty) package { import flash.display.*; public dynamic class SaveGameEmpty extends MovieClip { } }//package
Section 404
//SaveGameStatus (SaveGameStatus) package { import flash.display.*; import flash.text.*; public class SaveGameStatus extends MovieClip { public var char1:CharacterInfo; public var char2:CharacterInfo; public var char3:CharacterInfo; public var char4:CharacterInfo; public var del_btn:SimpleButton; public var load_btn:SimpleButton; public var levelText:TextField; public var campaignText:TextField; public var rulesText:TextField; public var scoreField:TextField; public var difficultyNumber:TextField; var slot:int;// = 1 var level:int;// = 1 var score:int;// = 0 public function SaveGameStatus():void{ DungeonMain.registerAliases(); char1.mouseEnabled = false; char1.mouseChildren = false; char2.mouseEnabled = false; char2.mouseChildren = false; char3.mouseEnabled = false; char3.mouseChildren = false; char4.mouseEnabled = false; char4.mouseChildren = false; levelText.mouseEnabled = false; campaignText.mouseEnabled = false; rulesText.mouseEnabled = false; scoreField.mouseEnabled = false; difficultyNumber.mouseEnabled = false; } public function setParty(_arg1:Party, _arg2:Boolean=false):void{ var _local4:PlayerCharacter; var _local7:CharacterInfo; var _local3 = ""; for each (_local4 in _arg1.members) { _local4.loadCustomPortrait(); }; level = _arg1.level; score = _arg1.getScore(true); levelText.text = ("Level " + level); dmf.embolden(levelText); campaignText.text = Campaign.getName(_arg1.campaign); dmf.embolden(campaignText); if (_arg1.beginner){ _local3 = "Beginner"; } else { if (_arg1.extreme){ _local3 = "Extreme"; } else { _local3 = "Standard"; }; }; trace(("save game status: mods = " + _arg1.difficultyMods)); var _local5 = ""; if (_arg1.hardcore){ _local5 = "Hardcore"; }; if (_arg1.tactical){ if (_local5.length){ _local5 = (_local5 + " - "); }; _local5 = (_local5 + "Tactical"); }; if (_arg1.attrition){ if (_local5.length){ _local5 = (_local5 + " - "); }; _local5 = (_local5 + "Attrition"); }; if (_local5.length){ trace("showing difficulty mods"); rulesText.text = ((_local3 + "\n") + _local5); } else { rulesText.text = _local3; }; difficultyNumber.text = (String(Difficulty.getMultiplier(_arg1.difficulty, _arg1.difficultyMods)) + "%"); dmf.embolden(difficultyNumber); scoreField.text = String(score); dmf.embolden(scoreField); var _local6:* = 0; while (_local6 < 4) { _local7 = CharacterInfo(getChildByName(("char" + (_local6 + 1)))); if (_arg1.members[_local6] != null){ _local7.setChar(_arg1.members[_local6]); } else { removeChild(_local7); }; _local6++; }; } } }//package
Section 405
//SaveGameStatusContainer (SaveGameStatusContainer) package { import flash.events.*; import flash.display.*; public class SaveGameStatusContainer extends MovieClip { public var status:SaveGameStatus; public var empty_panel:SimpleButton; public var empty:Boolean;// = false public var slot:int;// = 1 private var scrolling:Boolean;// = false public function SaveGameStatusContainer():void{ status.load_btn.addEventListener(MouseEvent.MOUSE_DOWN, loadClick); status.del_btn.addEventListener(MouseEvent.MOUSE_DOWN, deleteClick); empty_panel.addEventListener(MouseEvent.MOUSE_DOWN, emptyClick); empty = false; removeChild(empty_panel); } public function get level():int{ return (status.level); } public function get score():int{ return (status.score); } public function cleanup():void{ status.load_btn.removeEventListener(MouseEvent.MOUSE_DOWN, loadClick); status.del_btn.removeEventListener(MouseEvent.MOUSE_DOWN, deleteClick); empty_panel.removeEventListener(MouseEvent.MOUSE_DOWN, emptyClick); } public function setParty(_arg1:Party, _arg2:Boolean=false):void{ if (_arg1 == null){ emptySlot(); return; }; empty = false; status.setParty(_arg1, _arg2); } public function emptySlot():void{ if (empty){ return; }; if (this.contains(empty_panel)){ return; }; empty = true; setHidden(); addChild(empty_panel); } private function setHidden():void{ removeChild(status); } function loadClick(_arg1:MouseEvent):void{ trace(("loadClick: slot " + slot)); dm.main.loadGame(slot); } function deleteClick(_arg1:MouseEvent):void{ var _local2:SaveDeleteDialog; if (((!((parent == null))) && ((parent is LoadParty)))){ _local2 = new SaveDeleteDialog(slot); _local2.name = "dialog"; parent.addChild(_local2); }; } function emptyClick(_arg1:MouseEvent):void{ if (parent != null){ LoadParty(parent).newGame(slot); }; } } }//package
Section 406
//sBarbarianBoast (sBarbarianBoast) package { public class sBarbarianBoast extends Skill { public function sBarbarianBoast(_arg1:Character){ char_ref = _arg1; increasesWith = none; alwaysHits = true; rangedAttack = true; aiCastLimit = 0; damage = 0; power_cost = 30; crippling = 20; iconFrame = 66; allyBonusAttack = true; skillname = "Boast"; verbage = ("begins to " + skillname); specialAnimation = PortraitAnimation.debuff; } override public function description():String{ return ((("Targets any enemy. Does not miss. The target is demoralized, and receives a penalty to Quickness (up to " + crippling) + ") for the remainder of the battle. In addition, a random ally is goaded into action and performs a bonus weapon attack on the target.")); } } }//package
Section 407
//sBarbarianBrutalize (sBarbarianBrutalize) package { public class sBarbarianBrutalize extends Skill { public function sBarbarianBrutalize(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 50; addWeaponDamage = true; requiresMelee = true; scaleWeaponDamage = 1; debuff_damage = 0.7; iconFrame = 52; skillname = "Dismember"; verbage = ("uses " + skillname); showWeaponAnimation = true; specialAnimation = PortraitAnimation.debuff; } override public function description():String{ return ((((((("Melee attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + "). Reduces enemy damage by ") + Math.round(((1 - debuff_damage) * 100))) + "% for the remainder of the battle.")); } } }//package
Section 408
//sBarbarianCharge (sBarbarianCharge) package { public class sBarbarianCharge extends Skill { public function sBarbarianCharge(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 1.6; power_cost = 35; requiresMelee = true; requiresVerticalGap = true; stun_percent = 50; iconFrame = 65; skillname = "Charge"; verbage = "charges the enemy!"; specialAnimation = PortraitAnimation.playerPowerSlash; } override public function description():String{ return ((((((("Charge an enemy directly ahead, attacking for " + Math.round((scaleWeaponDamage * 100))) + "% weapon damage (") + getDamage()) + "). Attack has +") + stun_percent) + "% chance to stun the target. There must be an empty vertical space between the user and the target.")); } } }//package
Section 409
//sBarbarianIntimidate (sBarbarianIntimidate) package { public class sBarbarianIntimidate extends Skill { public function sBarbarianIntimidate(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 0; damage = 0; power_cost = 70; targetsSelf = true; intimidating = true; buff_quickness = 10; iconFrame = 67; skillname = "Intimidate"; verbage = "is an intimidating presence"; } override public function description():String{ return ((("Enemies will prefer to attack targets other than the user for the remainder of the combat. In addition, user's Quickness is increased by " + buff_quickness) + ".")); } } }//package
Section 410
//sBarbarianJostle (sBarbarianJostle) package { public class sBarbarianJostle extends Skill { public function sBarbarianJostle(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 0; damage = 0; power_cost = 10; targetsFriendlies = true; swapPositions = true; iconFrame = 59; skillname = "Jostle"; verbage = ("uses " + skillname); } override public function description():String{ return ("Swap position with target ally."); } } }//package
Section 411
//sBarbarianLastStand (sBarbarianLastStand) package { public class sBarbarianLastStand extends Skill { public function sBarbarianLastStand(_arg1:Character){ char_ref = _arg1; increasesWith = none; requiresLowHealth = true; requiresMelee = true; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 2; lethality = 20; power_cost = 40; iconFrame = 14; skillname = "Last Stand"; verbage = ("makes a " + skillname); specialAnimation = PortraitAnimation.playerPowerSlash; } override public function description():String{ return ((((("May only be used when below 20% health. Perform a melee weapon attack on the target for 200% normal damage (" + getDamage()) + ") and +") + lethality) + "% chance to kill the target instantly.")); } } }//package
Section 412
//sBarbarianPowerGain (sBarbarianPowerGain) package { public class sBarbarianPowerGain extends Skill { public function sBarbarianPowerGain(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; targetsSelf = true; woundsRestorePower = 100; power_cost = 0; iconFrame = 72; skillname = "Enrage"; verbage = "is fuelled by rage"; } override public function description():String{ return ("If the user takes damage before their next turn, their power is completely restored."); } } }//package
Section 413
//sBarbarianPulverize (sBarbarianPulverize) package { public class sBarbarianPulverize extends Skill { public function sBarbarianPulverize(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 55; iconFrame = 71; requiresMelee = true; addWeaponDamage = true; scaleWeaponDamage = 1.2; debuff_damageResist = 20; skillname = "Pulverize"; verbage = "pulverizes the enemy"; showWeaponAnimation = true; specialAnimation = PortraitAnimation.debuff; } override public function description():String{ return ((((((("Weapon attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + "). Damages the target's armor and exposes their weak spots, reducing their damage resistance by ") + debuff_damageResist) + " for the remainder of the battle.")); } } }//package
Section 414
//sBarbarianReckless (sBarbarianReckless) package { public class sBarbarianReckless extends Skill { public function sBarbarianReckless(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 1; damage = 0; power_cost = 20; targetsSelf = true; buff_damage = 1.5; debuff_damageResist = 50; iconFrame = 58; skillname = "Reckless Fury"; verbage = ("is consumed with " + skillname); specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((((("Increase damage dealt by " + Math.round((buff_damage * 100))) + "%, but reduce damage resistance by ") + debuff_damageResist) + ". Lasts for the remainder of the battle.")); } } }//package
Section 415
//sBarbarianWhirlwind (sBarbarianWhirlwind) package { public class sBarbarianWhirlwind extends Skill { public function sBarbarianWhirlwind(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; requiresMelee = true; usesWeaponRange = true; scaleWeaponDamage = 1; splashDamageMultiplier = 0.7; splashHitsAllies = false; power_cost = 65; iconFrame = 5; skillname = "Whirlwind"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.playerSlash; } override public function description():String{ return ((((("Perform a melee weapon attack (" + getDamage()) + " damage) on a target in range, and a lesser attack for ") + Math.round((getDamage() * splashDamageMultiplier))) + " damage on every enemy adjacent to the target.")); } } }//package
Section 416
//sBasiliskPetrify (sBasiliskPetrify) package { public class sBasiliskPetrify extends Skill { public function sBasiliskPetrify(_arg1:Character){ char_ref = _arg1; aiCastLimit = 2; hitsAllMeleeRange = true; power_cost = 65; damage = 0; stun_percent = 100; skillname = "Petrify"; verbage = ("uses " + skillname); } } }//package
Section 417
//sBeholderDrain (sBeholderDrain) package { public class sBeholderDrain extends Skill { public function sBeholderDrain(_arg1:Character){ char_ref = _arg1; aiNotUnlessHurt = true; aiTargetHealthiest = true; rangedAttack = true; damage = Math.round((_arg1.damage * 0.5)); vampiric_percent = Math.floor((100 + (level * 1))); power_cost = 40; ignoresArmor = true; skillname = "Steal Soul"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.monsterDrain; } } }//package
Section 418
//sBeholderRanged (sBeholderRanged) package { public class sBeholderRanged extends Skill { public function sBeholderRanged(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 1.3)); power_cost = 70; ignoresArmor = true; skillname = "Disentegrate"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.disintegrate; } } }//package
Section 419
//sBeholderRecover (sBeholderRecover) package { public class sBeholderRecover extends Skill { public function sBeholderRecover(_arg1:Character){ char_ref = _arg1; aiNotUnlessLowPower = true; targetsSelf = true; damage = Math.round((_arg1.health_max * 0.1)); powerRestore = 100; power_cost = 0; skillname = "Channeling"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.gainPower; } } }//package
Section 420
//sCelestialAccuracy (sCelestialAccuracy) package { public class sCelestialAccuracy extends Skill { public function sCelestialAccuracy(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_accuracy = 20; skillname = "Celestial Guidance"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.buff; } } }//package
Section 421
//sCelestialArmor (sCelestialArmor) package { public class sCelestialArmor extends Skill { public function sCelestialArmor(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_damageResist = 20; skillname = "Celestial Protection"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.armorBuff; } override public function description():String{ return ((("Caster gains an additional " + buff_damageResist) + "% damage resistance for the remainder of the battle.")); } } }//package
Section 422
//sCelestialSpeed (sCelestialSpeed) package { public class sCelestialSpeed extends Skill { public function sCelestialSpeed(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_quickness = 10; skillname = "Celestial Motion"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.buff; } } }//package
Section 423
//sClericAE (sClericAE) package { public class sClericAE extends Skill { public function sClericAE(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; aiCastLimit = 0; magicStrength = 0.5; damage = getBaseMagicDamage(magicStrength); rangedAttack = true; hitsAllEnemies = true; power_cost = 55; iconFrame = 26; skillname = "Litany of Pain"; verbage = ("intones the " + skillname); specialAnimation = PortraitAnimation.holyDamage; } override public function description():String{ return ((("Magic area attack. Inflicts " + getDamage()) + " damage to all enemies.")); } } }//package
Section 424
//sClericDamageBuff (sClericDamageBuff) package { public class sClericDamageBuff extends Skill { public function sClericDamageBuff(_arg1:Character){ char_ref = _arg1; increasesWith = none; targetsFriendlies = true; rangedAttack = true; power_cost = 30; targetDamageMod = 1.75; iconFrame = 42; skillname = "Anoint"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((("Target party member deals " + Math.round((targetDamageMod * 100))) + "% normal damage on next attack.")); } } }//package
Section 425
//sClericFlash (sClericFlash) package { public class sClericFlash extends Skill { public function sClericFlash(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; magicStrength = 0.3; damage = getBaseMagicDamage(magicStrength); onlyDamagesUndead = true; rangedAttack = true; hitsAllEnemies = true; power_cost = 40; damageAccuracy = 30; alwaysHits = true; iconFrame = 13; skillname = "Holy Light"; verbage = ("calls down " + skillname); specialAnimation = PortraitAnimation.blind; } override public function description():String{ return ((((("Reduce all enemies' accuracy by " + damageAccuracy) + "% for the remainder of the battle. Deals ") + getDamage()) + " damage to Undead. Always hits.")); } } }//package
Section 426
//sClericHeal (sClericHeal) package { public class sClericHeal extends Skill { public function sClericHeal(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; nonCombat = true; skillname = "Heal"; targetsFriendlies = true; rangedAttack = true; healing = 40; power_cost = 25; removesPoison = true; iconFrame = 9; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to one member of your party. Cures poison.")); } } }//package
Section 427
//sClericHealGroup (sClericHealGroup) package { public class sClericHealGroup extends Skill { public function sClericHealGroup(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; nonCombat = true; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; removesPoison = true; healing = 20; power_cost = 60; iconFrame = 10; skillname = "Heal All"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to every member of your party. Cures poison.")); } } }//package
Section 428
//sClericMelee (sClericMelee) package { public class sClericMelee extends Skill { public function sClericMelee(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 2; power_cost = 60; requiresMelee = true; iconFrame = 4; skillname = "Fervor"; verbage = ("attacks with " + skillname); specialAnimation = PortraitAnimation.playerPowerSlash; } override public function description():String{ return ((((("Melee attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + ")")); } } }//package
Section 429
//sClericPurify (sClericPurify) package { public class sClericPurify extends Skill { public function sClericPurify(_arg1:Character){ char_ref = _arg1; increasesWith = none; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; power_cost = 20; removesPoison = true; removesCurse = true; buff_resistPoison = 50; iconFrame = 45; skillname = "Purify"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((("Removes poison and curse effects from all party members, and increases their poison resistance by " + buff_resistPoison) + " for the remainder of the battle.")); } } }//package
Section 430
//sClericRevive (sClericRevive) package { public class sClericRevive extends Skill { public function sClericRevive(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; aiCastLimit = 0; nonCombat = true; targetsFriendlies = true; rangedAttack = true; healing = 20; power_cost = 75; removesPoison = true; resurrects = true; iconFrame = 47; skillname = "Revive"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.revive; } override public function description():String{ return ((("Revives fallen party member with " + scaleHeal(healing)) + " health.")); } } }//package
Section 431
//sClericShield (sClericShield) package { public class sClericShield extends Skill { public function sClericShield(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 1; damage = 0; power_cost = 55; targetsSelf = true; invulnerable = 1; powerRegenMod = 0; iconFrame = 19; skillname = "Shield of Faith"; verbage = ("is enclosed in a " + skillname); specialAnimation = PortraitAnimation.armorBuff; } override public function description():String{ return ((("Caster takes no damage until " + char_ref.genderPossessive()) + " next turn. Caster recovers no power at beginning of next turn.")); } } }//package
Section 432
//sClericSmite (sClericSmite) package { public class sClericSmite extends Skill { public function sClericSmite(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; magicStrength = 0.75; damage = getBaseMagicDamage(magicStrength); rangedAttack = true; power_cost = 30; undeadMultiplier = 2; alwaysHits = true; iconFrame = 44; skillname = "Smite"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.holyDamage; } override public function description():String{ return ((((("Ranged magic attack for " + getDamage()) + " damage. Deals ") + Math.round((undeadMultiplier * 100))) + "% damage to undead. Always hits.")); } } }//package
Section 433
//sConjurorArmor (sConjurorArmor) package { public class sConjurorArmor extends Skill { public function sConjurorArmor(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_damageResist = 15; iconFrame = 69; skillname = "Eldritch Aegis"; verbage = ("conjures an " + skillname); specialAnimation = PortraitAnimation.armorBuff; } override public function description():String{ return ((("Conjure a shield of force around all allies, increasing their resistance to damage by " + buff_damageResist) + "% for the remainder of the battle.")); } } }//package
Section 434
//sConjurorBanish (sConjurorBanish) package { public class sConjurorBanish extends Skill { public function sConjurorBanish(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; damage = 100000; rangedAttack = true; targetsSummoned = true; power_cost = 20; iconFrame = 70; skillname = "Banish"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.disintegrate; } override public function description():String{ return ("Instantly destroy a summoned enemy creature."); } } }//package
Section 435
//sConjurorBloodSprite (sConjurorBloodSprite) package { public class sConjurorBloodSprite extends Skill { public function sConjurorBloodSprite(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 50; targetsEmpty = true; summonsCreatureClass = new pBloodSprite(char_ref.level); iconFrame = 60; skillname = summonsCreatureClass.charname; verbage = ("summons a " + summonsCreatureClass.charname); } override public function description():String{ return ("Summon a Bloodsprite to an empty square on your side of the battlefield. Bloodsprites are weak fighters, but can heal your party."); } } }//package
Section 436
//sConjurorHeal (sConjurorHeal) package { public class sConjurorHeal extends Skill { public function sConjurorHeal(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; targetsFriendlies = true; targetsSummoned = true; rangedAttack = true; healing = 30; power_cost = 25; powerRestore = 50; removesPoison = true; removesCurse = true; skillname = "Refresh Energies"; iconFrame = 9; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.restore; } override public function description():String{ return ((((("Restore " + scaleHeal(healing)) + " health and ") + powerRestore) + " power to a friendly summoned creature. Removes poison and curse effects.")); } } }//package
Section 437
//sConjurorManaSprite (sConjurorManaSprite) package { public class sConjurorManaSprite extends Skill { public function sConjurorManaSprite(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 50; targetsEmpty = true; summonsCreatureClass = new pManaSprite(char_ref.level); iconFrame = 61; skillname = summonsCreatureClass.charname; verbage = ("summons a " + summonsCreatureClass.charname); } override public function description():String{ return ("Summon a Manasprite to an empty square on your side of the battlefield. Manasprites are weak fighters, but can restore power to your party."); } } }//package
Section 438
//sConjurorRevive (sConjurorRevive) package { public class sConjurorRevive extends Skill { public function sConjurorRevive(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 0; nonCombat = true; targetsFriendlies = true; rangedAttack = true; healing = (_arg1.health_max * 1000); power_cost = 75; removesPoison = true; resurrects = true; powerDamage = 100; iconFrame = 47; skillname = "Call Soul"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.revive; } override public function description():String{ return ("Revives fallen party member with full health but no power."); } } }//package
Section 439
//sConjurorShadow (sConjurorShadow) package { public class sConjurorShadow extends Skill { public function sConjurorShadow(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 30; targetsEmpty = true; hitsAllEmpty = true; summonsCreatureClass = new pShadow(char_ref.level); iconFrame = 62; skillname = "Wall of Shadows"; verbage = ("casts " + skillname); } override public function description():String{ return ("Summon a Shadow to every empty square on your side of the battlefield. Shadows act as decoys, and can curse the enemy or remove curses from your allies."); } } }//package
Section 440
//sConjurorWargolem (sConjurorWargolem) package { public class sConjurorWargolem extends Skill { public function sConjurorWargolem(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 60; targetsEmpty = true; summonsCreatureClass = new pWargolem(char_ref.level); iconFrame = 68; skillname = summonsCreatureClass.charname; verbage = ("summons a " + summonsCreatureClass.charname); } override public function description():String{ return ("Summon a Wargolem to an empty square on your side of the battlefield. Wargolems are heavily armored and ideal for forming a protective line."); } } }//package
Section 441
//sConjurorWhirlwind (sConjurorWhirlwind) package { public class sConjurorWhirlwind extends Skill { public function sConjurorWhirlwind(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; aiCastLimit = 0; magicStrength = 1; damage = getBaseMagicDamage(magicStrength); power_cost = 40; alwaysHits = true; rangedAttack = true; summonsWhirlwind = true; iconFrame = 64; skillname = "Vortex"; verbage = ("summons a " + skillname); specialAnimation = PortraitAnimation.confuse; } override public function description():String{ return ((("Summon a whirlwind to attack any single enemy, causing " + getDamage()) + " damage and knocking them into an adjacent empty square. If there are no adjacent empty spaces, the whirlwind dissipates immediately but inflicts an additional 20% damage.")); } } }//package
Section 442
//sConjurorWolf (sConjurorWolf) package { public class sConjurorWolf extends Skill { public function sConjurorWolf(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 40; targetsEmpty = true; summonsCreatureClass = new pShadowWolf(char_ref.level); iconFrame = 63; skillname = "Dire Wolf"; verbage = "summons a Dire Wolf"; } override public function description():String{ return ("Summon a Dire Wolf to an empty square on your side of the battlefield. Dire Wolves are expendable close range fighters."); } } }//package
Section 443
//sCultistArrow (sCultistArrow) package { public class sCultistArrow extends Skill { public function sCultistArrow(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 0.5)); powerDamage = 25; power_cost = 75; skillname = "Draining Shot"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.cultistArrow; } } }//package
Section 444
//sCultistHeal (sCultistHeal) package { public class sCultistHeal extends Skill { public function sCultistHeal(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; healing = Math.round((_arg1.health_max / 6)); powerRestore = 20; power_cost = 100; removesPoison = false; skillname = "Energy Flow"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.restore; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to one member of your party. Cures poison.")); } } }//package
Section 445
//sCultistMeleeStun (sCultistMeleeStun) package { public class sCultistMeleeStun extends Skill { public function sCultistMeleeStun(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 1.2)); power_cost = 40; stun_percent = 60; skillname = "Impact"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureWeapon; } } }//package
Section 446
//sCultistSever (sCultistSever) package { public class sCultistSever extends Skill { public function sCultistSever(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; rangedAttack = true; hitsAllEnemies = true; attacksWithAccuracyMod = 0.5; power_cost = 60; cancelPowerRegen = 4; skillname = "Sever"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.debuff; } } }//package
Section 447
//sDeathKnightRally (sDeathKnightRally) package { public class sDeathKnightRally extends Skill { public function sDeathKnightRally(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; power_cost = 25; buff_damage = 1.25; healing = Math.round((_arg1.health_max / 6)); skillname = "Rally"; verbage = "rallies his troops"; specialAnimation = PortraitAnimation.buff; } override public function description():String{ return (""); } } }//package
Section 448
//sDemonClone (sDemonClone) package { public class sDemonClone extends Skill { public function sDemonClone(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiPriority = 99; damage = 0; rangedAttack = true; hitsAllEnemies = true; alwaysHits = true; clonesPlayers = true; power_cost = 50; skillname = "Dark Mirror"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.clone; } } }//package
Section 449
//sDemonDoubleAttack (sDemonDoubleAttack) package { public class sDemonDoubleAttack extends Skill { public function sDemonDoubleAttack(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.6)); power_cost = 40; attacksTwoTargets = true; skillname = "Demonic Rage"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 450
//sDemonPoison (sDemonPoison) package { public class sDemonPoison extends Skill { public function sDemonPoison(_arg1:Character){ char_ref = _arg1; aiPriority = 1; rangedAttack = true; power_cost = 30; damage = 0; poisonDamage = Math.round((_arg1.damage / 6)); damageAccuracy = 15; crippling = 10; skillname = "Touch of Corruption"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.poison; } } }//package
Section 451
//sDissipate (sDissipate) package { public class sDissipate extends Skill { public function sDissipate(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiAlwaysUse = true; killsUser = true; targetsSelf = true; alwaysHits = true; damage = 0; power_cost = 0; skillname = "Dissipate"; verbage = "dissipates"; } } }//package
Section 452
//sDragonFlame (sDragonFlame) package { public class sDragonFlame extends Skill { public function sDragonFlame(_arg1:Character){ char_ref = _arg1; rangedAttack = true; hitsAllEnemies = true; damage = Math.round((_arg1.damage * 0.6)); power_cost = 30; hasPortraitAnimation = true; portraitAnimationFrame = 6; skillname = "Flame Breath"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.fire; } } }//package
Section 453
//sDragonTail (sDragonTail) package { public class sDragonTail extends Skill { public function sDragonTail(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.8)); power_cost = 40; hitsAllMeleeRange = true; hasPortraitAnimation = true; portraitAnimationFrame = 4; skillname = "Tail Swipe"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureWeapon; } override public function description():String{ return (""); } } }//package
Section 454
//sDreadfatherDrain (sDreadfatherDrain) package { public class sDreadfatherDrain extends Skill { public function sDreadfatherDrain(_arg1:Character){ char_ref = _arg1; aiNotUnlessHurt = false; aiTargetHealthiest = true; aiPriority = 3; rangedAttack = true; damage = _arg1.damage; vampiric_percent = Math.floor((100 + (level * 1))); power_cost = 5; ignoresArmor = true; skillname = "Drain Will"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.monsterDrain; } } }//package
Section 455
//sDreadfatherRevive (sDreadfatherRevive) package { public class sDreadfatherRevive extends Skill { public function sDreadfatherRevive(_arg1:Character){ char_ref = _arg1; aiCastLimit = 3; aiOnlyWhenHordeDead = true; aiPriority = 7; targetsFriendlies = true; hitsAllFriendlies = true; doesNotEffectSelf = true; rangedAttack = true; healing = char_ref.health_max; power_cost = 50; removesPoison = true; resurrects = true; skillname = "Master's Bidding"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.revive; } override public function description():String{ return ((("Revives fallen party member with " + scaleHeal(healing)) + " health.")); } } }//package
Section 456
//sDwarfCharge (sDwarfCharge) package { public class sDwarfCharge extends Skill { public function sDwarfCharge(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 1.5)); power_cost = 35; requiresVerticalGap = true; stun_percent = 50; skillname = "Charge"; verbage = "charges forth!"; specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 457
//sDwarfCrossbowAttack (sDwarfCrossbowAttack) package { public class sDwarfCrossbowAttack extends Skill { public function sDwarfCrossbowAttack(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.8)); skillname = "Dwarven Crossbow"; rangedAttack = true; power_cost = 20; ignoresArmor = true; verbage = ("fires " + skillname); specialAnimation = PortraitAnimation.monsterArrow; } } }//package
Section 458
//sDwarfHammerAE (sDwarfHammerAE) package { public class sDwarfHammerAE extends Skill { public function sDwarfHammerAE(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 1.2)); power_cost = 50; stun_percent = 30; splashDamageMultiplier = 0.7; splashHitsAllies = false; skillname = "Hammer Slam"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureWeapon; } } }//package
Section 459
//sDwarfOnslaught (sDwarfOnslaught) package { public class sDwarfOnslaught extends Skill { public function sDwarfOnslaught(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_quickness = 30; skillname = "Onslaught"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.buff; } } }//package
Section 460
//sDwarfPride (sDwarfPride) package { public class sDwarfPride extends Skill { public function sDwarfPride(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; cannotDie = 1; power_cost = 50; skillname = "Dwarven Pride"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.armorBuff; } } }//package
Section 461
//sDwarfPunishing (sDwarfPunishing) package { public class sDwarfPunishing extends Skill { public function sDwarfPunishing(_arg1:Character):void{ char_ref = _arg1; damage = _arg1.damage; power_cost = 40; debuff_damage = 0.5; skillname = "Punishing Blow"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureWeapon; } } }//package
Section 462
//sDwarfSponge (sDwarfSponge) package { public class sDwarfSponge extends Skill { public function sDwarfSponge(_arg1:Character){ char_ref = _arg1; damage = 0; power_cost = 20; targetsFriendlies = true; rangedAttack = true; targetsFriendlyFrontRow = true; makeDamageSponge = true; skillname = "Fealty"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.protectAllies; } override public function description():String{ return (""); } } }//package
Section 463
//sDwarvenAle (sDwarvenAle) package { public class sDwarvenAle extends Skill { public function sDwarvenAle(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiNotUnlessHurt = true; targetsSelf = true; healing = Math.round((_arg1.health_max * 0.6)); buff_damageResist = 10; damageAccuracy = 15; power_cost = 40; skillname = "Dwarven Ale"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.monsterBeer; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to one member of your party. Cures poison.")); } } }//package
Section 464
//SelectArrow (SelectArrow) package { import flash.display.*; public dynamic class SelectArrow extends SimpleButton { } }//package
Section 465
//SellPanel (SellPanel) package { import flash.display.*; public dynamic class SellPanel extends Sprite { public var equippedTab:ItemModeTab; public var allTab:ItemModeTab; public var sellButton:MovieClip; public var sellList:ShopListScrolling; public var sellDisabler:MovieClip; } }//package
Section 466
//sEngineConduit (sEngineConduit) package { public class sEngineConduit extends Skill { public function sEngineConduit(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; aiNotUnlessLowPower = true; rangedAttack = true; targetsFriendlies = true; hitsAllFriendlies = true; powerRestore = 50; power_cost = 50; iconFrame = 1; skillname = "Conduit"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.gainPower; } } }//package
Section 467
//sForceRetreat (sForceRetreat) package { public class sForceRetreat extends Skill { public function sForceRetreat(_arg1:Character){ char_ref = _arg1; aiCastLimit = 2; aiTargetOnlyLowHealth = true; aiPriority = 10; rangedAttack = true; forceRetreat = true; alwaysHits = true; power_cost = 20; skillname = "Creeping Dread"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.fearDeath; } } }//package
Section 468
//sGhostAttack (sGhostAttack) package { public class sGhostAttack extends Skill { public function sGhostAttack(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; power_cost = 0; ignoresArmor = true; skillname = "Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.ghostAttack; } } }//package
Section 469
//sGhostHide (sGhostHide) package { public class sGhostHide extends Skill { public function sGhostHide(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiNotUnlessHurt = true; damage = 0; healing = Math.round((char_ref.health_max / 2)); power_cost = 50; targetsSelf = true; hidesTarget = true; skillname = "Vanish"; verbage = "fades from view"; } override public function description():String{ return (""); } } }//package
Section 470
//sGhostTouch (sGhostTouch) package { public class sGhostTouch extends Skill { public function sGhostTouch(_arg1:Character){ char_ref = _arg1; damage = 0; power_cost = 40; powerDamage = 30; stun_percent = 25; curse = 0.3; skillname = "Spectral Touch"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.curse; } } }//package
Section 471
//sGoblinCrossbow (sGoblinCrossbow) package { public class sGoblinCrossbow extends Skill { public function sGoblinCrossbow(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.5)); power_cost = 0; rangedAttack = true; attacksTwoTargets = true; skillname = "Repeating Crossbow"; verbage = "shoots"; specialAnimation = PortraitAnimation.monsterArrow; } } }//package
Section 472
//sGoblinGrenade (sGoblinGrenade) package { public class sGoblinGrenade extends Skill { public function sGoblinGrenade(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = char_ref.damage; power_cost = 30; splashDamageMultiplier = 0.6; splashHitsAllies = true; skillname = "Grenade"; verbage = ("hurls " + skillname); specialAnimation = PortraitAnimation.explosion; } override public function description():String{ return (""); } } }//package
Section 473
//sGorgonGaze (sGorgonGaze) package { public class sGorgonGaze extends Skill { public function sGorgonGaze(_arg1:Character){ char_ref = _arg1; rangedAttack = true; hitsAllEnemies = true; damage = Math.round((_arg1.damage * 0.3)); stun_percent = 100; power_cost = 15; skillname = "Petrify"; verbage = ("uses " + skillname); } } }//package
Section 474
//sGorgonSlash (sGorgonSlash) package { public class sGorgonSlash extends Skill { public function sGorgonSlash(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; power_cost = 0; skillname = "Raking Claws"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 475
//sGorgonSnakes (sGorgonSnakes) package { public class sGorgonSnakes extends Skill { public function sGorgonSnakes(_arg1:Character){ char_ref = _arg1; rangedAttack = true; hitsAllEnemies = true; damage = Math.round((_arg1.damage * 0.6)); poisonDamage = Math.round((_arg1.damage * 0.5)); power_cost = 25; skillname = "Nest of Vipers"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 476
//ShadowPortrait (ShadowPortrait) package { import flash.display.*; public dynamic class ShadowPortrait extends MovieClip { } }//package
Section 477
//Shield (Shield) package { public class Shield extends Offhand { override public function getItemTypeString(){ return ("Shield"); } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Thick", 1.4]); } override public function generateItem(_arg1:int):void{ var _local2:* = false; var _local3:* = false; if (item_rarity == Item.grey){ item_rarity = Item.white; }; getItemModifiers(); if (item_rarity == Item.green){ if (dmf.randomNum(0, 100) >= 50){ _local3 = true; } else { _local2 = true; }; }; if ((((item_rarity == Item.blue)) || (_local3))){ prefix = rollForPrefix(item_rarity); }; if ((((item_rarity == Item.blue)) || (_local2))){ suffix = rollForSuffix(item_rarity); }; if (base_armor_rating){ armor_rating = scaleArmorForLevel((base_armor_rating * (1 + (base_armor_mod / 100)))); }; if (prefix >= 0){ applyPrefix(); }; if (suffix >= 0){ applySuffix(); }; if (prefix >= 0){ item_name = ((prefixes[prefix][0] + " ") + item_name); }; if (suffix >= 0){ item_name = ((item_name + " of ") + suffixes[suffix][0]); }; } } }//package
Section 478
//Shop (Shop) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.system.*; import flash.ui.*; public class Shop extends Sprite { public var buyPanel:BuyPanel; public var sellPanel:SellPanel; public var buyTab:BuySellTab; public var sellTab:BuySellTab; public var empty1:EmptyPortrait; public var empty2:EmptyPortrait; public var empty3:EmptyPortrait; public var empty4:EmptyPortrait; public var exitButton:MovieClip; public var optionsButton:OptionsButton; public var helpButton:HelpButton; public var playerName:TextField; public var playerClass:TextField; public var playerGraphic:CharGraphic; public var paperdoll:Paperdoll; public var goldDisplay:GoldDisplay; public var inventoryCount:TextField; public var bubble:SpeechBubble; public var greenCheck:dCheckBox; public var blueCheck:dCheckBox; public var purpleCheck:dCheckBox; public var pc_party:Party; private var portraits:Array; public var tooltipController:ItemTooltipController; private var buyItems:Array; public var buying:Boolean; public var buyMode:int;// = 100 public var sellMode:int;// = 1 private var initialised:Boolean;// = false private var partyGold:int;// = 0 private var earnedGold:int;// = 0 private var comparisons:Array; static const BUBBLE_X = 10; static const BUBBLE_Y = 118; static const BUY_WEAPONS = 0; static const BUY_ACCESSORIES = 1; static const BUY_ARMOR_HEAVY = 2; static const BUY_ARMOR_MEDIUM = 3; static const BUY_ARMOR_LIGHT = 4; static const BUY_CONSUMABLES = 5; static const BUY_ALL = 100; static const SELL_ALL = 1; static const SELL_EQUIPPED = 2; public static var selectedChar:PlayerCharacter; public function Shop(_arg1:Party=null):void{ portraits = new Array(); super(); if (_arg1 != null){ this.pc_party = _arg1; } else { this.pc_party = dm.main.pc_party; }; partyGold = pc_party.gold; initialised = false; tooltipController = new ItemTooltipController(); generateBuyItems(); addEventListener(Event.ADDED_TO_STAGE, init); } public function init(_arg1:Event=null):void{ var _local3:String; var _local5:*; var _local6:*; var _local7:HintDialog; if (initialised){ return; }; initialised = true; trace("shop initialising"); buying = true; buyTab.tab_text.text = "Buy Items"; sellTab.tab_text.text = "Sell Items"; updateGold(); greenCheck.setDescription("'Magical'", true, Item.textColorForRarity(Item.green)); blueCheck.setDescription("'Rare'", true, Item.textColorForRarity(Item.blue)); purpleCheck.setDescription("'Unique'", true, Item.textColorForRarity(Item.purple)); greenCheck.setChecked(true); blueCheck.setChecked(true); purpleCheck.setChecked(true); greenCheck.setCallback(checkFilters); blueCheck.setCallback(checkFilters); purpleCheck.setCallback(checkFilters); buyPanel.buyList.setTooltipController(tooltipController); exitButton.addEventListener(MouseEvent.MOUSE_DOWN, leaveClick); buyTab.addEventListener(MouseEvent.MOUSE_DOWN, buyTabClick); sellTab.addEventListener(MouseEvent.MOUSE_DOWN, sellTabClick); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, hotKey); updateTabs(); selectChar(pc_party.members[0]); var _local2:* = 0; while (_local2 < pc_party.members.length) { if ((pc_party.members[_local2] is PC_Adventurer)){ } else { _local5 = getChildByName(("empty" + (_local2 + 1))); _local6 = new CharacterPortrait(); _local6.x = _local5.x; _local6.y = _local5.y; _local6.setChar(pc_party.members[_local2]); _local6.name = ("portrait" + _local2); _local6.setGlow(); pc_party.members[_local2].portraitRef = _local6; removeChild(_local5); addChild(_local6); _local6.addEventListener(MouseEvent.MOUSE_DOWN, portraitClick); portraits.push(_local6); }; _local2++; }; sellPanel.sellButton.addEventListener(MouseEvent.MOUSE_DOWN, sellClick); buyPanel.buyButton.addEventListener(MouseEvent.MOUSE_DOWN, buyClick); if (pc_party.campaign == Campaign.SURVIVAL){ _local3 = "Buy whatever you need."; } else { _local3 = getWelcomeText(); }; bubble.setText(_local3); buyPanel.allTab.tab_text.text = "Show All Items"; buyPanel.weaponsTab.tab_text.text = "Show Weapons"; buyPanel.accessoriesTab.tab_text.text = "Other Equipment"; buyPanel.armorLightTab.tab_text.text = "Light Armor"; buyPanel.armorMediumTab.tab_text.text = "Medium Armor"; buyPanel.armorHeavyTab.tab_text.text = "Heavy Armor"; buyPanel.consumablesTab.tab_text.text = "Potions & Misc"; buyPanel.allTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabAll); buyPanel.weaponsTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabWeapons); buyPanel.accessoriesTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabAccessories); buyPanel.armorLightTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabArmorLight); buyPanel.armorMediumTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabArmorMedium); buyPanel.armorHeavyTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabArmorHeavy); buyPanel.consumablesTab.addEventListener(MouseEvent.MOUSE_DOWN, clickBuyTabConsumables); sellPanel.allTab.tab_text.text = "Show Inventory"; sellPanel.equippedTab.tab_text.text = "Show Equipped"; sellPanel.allTab.addEventListener(MouseEvent.MOUSE_DOWN, clickSellTabAll); sellPanel.equippedTab.addEventListener(MouseEvent.MOUSE_DOWN, clickSellTabEquipped); updateInventoryCount(); addEventListener(Event.ENTER_FRAME, onFrame); var _local4:* = 0x0100; if (((DungeonMain.showHints) && ((Dungeon.hintShown(_local4) == false)))){ _local7 = new HintDialog("Emporium", "Visiting the Emporium gives you an opportunity to buy and sell items. You can switch between buying and selling using the tabs at the top of the screen, as well as filter which items are displayed.\n\nYou can press the space bar to buy/sell the currently selected item, or Ctrl-click to buy/sell an item instantly."); DungeonMain.hints = (DungeonMain.hints + _local4); dm.stage.addChild(_local7); dm.main.saveInterface(); }; trace("finished shop construction"); } private function onFrame(_arg1:Event):void{ if (buying){ if (buyPanel.buyList.selectedEntry == null){ buyPanel.buyDisabler.alpha = 1; buyPanel.buyDisabler.mouseEnabled = true; } else { buyPanel.buyDisabler.alpha = 0; buyPanel.buyDisabler.mouseEnabled = false; }; } else { if (sellPanel.sellList.selectedEntry == null){ sellPanel.sellDisabler.alpha = 1; sellPanel.sellDisabler.mouseEnabled = true; } else { sellPanel.sellDisabler.alpha = 0; sellPanel.sellDisabler.mouseEnabled = false; }; }; } private function updateInventoryCount():void{ var _local1:int = (pc_party.inventory.length + pc_party.overflow.length); var _local2:int = (Party.MAX_INVENTORY + Party.MAX_OVERFLOW); inventoryCount.text = ((String(_local1) + "/") + String(_local2)); dmf.embolden(inventoryCount); } private function getWelcomeText():String{ var _local1 = ""; var _local2:int = dmf.randomNum(1, 100); if (_local2 < 20){ _local1 = (_local1 + "Welcome to the Emporium, adventurer!\n\n"); _local1 = (_local1 + "Found one of our portal scrolls, did you? We get most of our business that way."); } else { if (_local2 < 40){ _local1 = (_local1 + "Sorry, didn't see you come in. What can I help you with today?"); } else { if (_local2 < 60){ _local1 = (_local1 + "Welcome to the Emporium! Whatever it is you need, we have it."); } else { if (_local2 < 80){ _local1 = (_local1 + "Ah, adventurers! You've come to the right place."); } else { _local1 = (_local1 + "Welcome, welcome. Have a look around, our range is extensive. Maybe I can take some treasures off your hands?"); }; }; }; }; return (_local1); } private function clickBuyTabAll(_arg1:MouseEvent):void{ buyMode = BUY_ALL; updateBuyTabs(); } private function clickBuyTabWeapons(_arg1:MouseEvent):void{ buyMode = BUY_WEAPONS; updateBuyTabs(); } private function clickBuyTabAccessories(_arg1:MouseEvent):void{ buyMode = BUY_ACCESSORIES; updateBuyTabs(); } private function clickBuyTabConsumables(_arg1:MouseEvent):void{ buyMode = BUY_CONSUMABLES; updateBuyTabs(); } private function clickBuyTabArmorLight(_arg1:MouseEvent):void{ buyMode = BUY_ARMOR_LIGHT; updateBuyTabs(); } private function clickBuyTabArmorMedium(_arg1:MouseEvent):void{ buyMode = BUY_ARMOR_MEDIUM; updateBuyTabs(); } private function clickBuyTabArmorHeavy(_arg1:MouseEvent):void{ buyMode = BUY_ARMOR_HEAVY; updateBuyTabs(); } private function updateBuyTabs():void{ trace("updateBuyTabs"); buyPanel.allTab.gotoAndStop(2); buyPanel.weaponsTab.gotoAndStop(2); buyPanel.consumablesTab.gotoAndStop(2); buyPanel.accessoriesTab.gotoAndStop(2); buyPanel.armorLightTab.gotoAndStop(2); buyPanel.armorMediumTab.gotoAndStop(2); buyPanel.armorHeavyTab.gotoAndStop(2); if (buyMode == BUY_ALL){ buyPanel.allTab.gotoAndStop(1); } else { if (buyMode == BUY_WEAPONS){ buyPanel.weaponsTab.gotoAndStop(1); } else { if (buyMode == BUY_CONSUMABLES){ buyPanel.consumablesTab.gotoAndStop(1); } else { if (buyMode == BUY_ACCESSORIES){ buyPanel.accessoriesTab.gotoAndStop(1); } else { if (buyMode == BUY_ARMOR_LIGHT){ buyPanel.armorLightTab.gotoAndStop(1); } else { if (buyMode == BUY_ARMOR_MEDIUM){ buyPanel.armorMediumTab.gotoAndStop(1); } else { if (buyMode == BUY_ARMOR_HEAVY){ buyPanel.armorHeavyTab.gotoAndStop(1); }; }; }; }; }; }; }; addBuyItems(); buyPanel.buyList.resetHandle(); } private function clickSellTabAll(_arg1:MouseEvent):void{ sellMode = SELL_ALL; updateSellTabs(); } private function clickSellTabEquipped(_arg1:MouseEvent):void{ sellMode = SELL_EQUIPPED; updateSellTabs(); } private function updateSellTabs():void{ trace("updateSelltabs"); sellPanel.allTab.gotoAndStop(2); sellPanel.equippedTab.gotoAndStop(2); if (sellMode == SELL_ALL){ sellPanel.allTab.gotoAndStop(1); } else { if (sellMode == SELL_EQUIPPED){ sellPanel.equippedTab.gotoAndStop(1); }; }; addSellItems(); sellPanel.sellList.resetHandle(); } private function getSellItems():Array{ var list:Array; var it:Item; var fullInv:Array; var player:PlayerCharacter; var err_txt:*; var err_dlg:ErrorDialog; trace("getSellItems"); try { fullInv = pc_party.inventory.concat(pc_party.overflow); for each (it in fullInv) { if (it != null){ it.playerOwner = null; }; }; if (sellMode == SELL_ALL){ list = fullInv; } else { if (sellMode == SELL_EQUIPPED){ list = new Array(); for each (player in pc_party.members) { if (player == null){ } else { for each (it in player.gear) { if (it != null){ it.playerOwner = player; list.push(it); }; }; }; }; } else { throw (new Error(("invalid sell mode: " + sellMode))); }; }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Get Sell Items Error: " + error.name) + "\n")); if (sellPanel.sellList.entries != null){ err_txt = (err_txt + (("entries: " + String(sellPanel.sellList.entries.length)) + "\n")); }; if (list != null){ err_txt = (err_txt + (("list: " + String(list.length)) + "\n")); }; err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + ", ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { var _local4:* = list; //unresolved jump 1; return (_local4); }; } private function addSellItems(_arg1:Boolean=false):void{ var sellList:Array; var oldY:int; var it:Item; var sle:ShopListEntry; var err_txt:*; var err_dlg:ErrorDialog; var retainPosition = _arg1; trace("addSellItems"); try { sellPanel.sellList.setShop(this); oldY = sellPanel.sellList.scrollHandle.y; sellPanel.sellList.empty(); sellList = getSellItems(); for each (it in sellList) { if (it == null){ } else { if ((((it.item_rarity == Item.green)) && (!(greenCheck.checked)))){ continue; } else { if ((((it.item_rarity == Item.blue)) && (!(blueCheck.checked)))){ continue; } else { if ((((it.item_rarity == Item.purple)) && (!(purpleCheck.checked)))){ continue; }; }; }; sle = new ShopListEntry(it, tooltipController, it.playerOwner, false, this); sellPanel.sellList.addEntry(sle); }; }; sellPanel.sellList.finishedAdding(); if (retainPosition){ sellPanel.sellList.moveHandleTo(oldY); sellPanel.sellList.update(); }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Add Sell Items Error: " + error.name) + "\n")); if (sellList != null){ err_txt = (err_txt + (("entries: " + String(sellPanel.sellList.entries.length)) + "\n")); }; if (sellList != null){ err_txt = (err_txt + (("sellList: " + String(sellList.length)) + "\n")); }; err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } private function getBuyItems():Array{ var b:Array; var i:int; var err_txt:*; var err_dlg:ErrorDialog; b = new Array(); trace("getBuyItems"); try { if (buyMode == BUY_ALL){ i = 0; while (i < buyItems.length) { if (buyItems[i].length){ b = b.concat(buyItems[i]); }; i = (i + 1); }; } else { if ((((buyMode >= 0)) && ((buyMode <= BUY_CONSUMABLES)))){ b = buyItems[buyMode]; } else { throw (new Error("invalid buy mode")); }; }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Get Buy Items Error: " + error.name) + "\n")); err_txt = (err_txt + (("buyMode: " + String(buyMode)) + "\n")); err_txt = (err_txt + (("b.length: " + String(b.length)) + "\n")); err_txt = (err_txt + (("greenChecked: " + greenCheck.checked) + "\n")); err_txt = (err_txt + (("blueChecked: " + blueCheck.checked) + "\n")); err_txt = (err_txt + (("purpleChecked: " + purpleCheck.checked) + "\n")); err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + " ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { var _local4:* = b; //unresolved jump 1; return (_local4); }; } private function addBuyItems(_arg1:Boolean=false):void{ var b:Array; var oldY:int; var item:Item; var showEntry:Boolean; var sle:ShopListEntry; var err_txt:*; var err_dlg:ErrorDialog; var retainPosition = _arg1; b = new Array(); var gotten:Boolean; trace("addBuyItems"); try { buyPanel.buyList.setShop(this); oldY = buyPanel.buyList.scrollHandle.y; buyPanel.buyList.empty(); b = getBuyItems(); gotten = true; for each (item in b) { if (item == null){ } else { showEntry = true; if ((((item.item_rarity == Item.green)) && ((greenCheck.checked == false)))){ showEntry = false; } else { if ((((item.item_rarity == Item.blue)) && ((blueCheck.checked == false)))){ showEntry = false; } else { if ((((item.item_rarity == Item.purple)) && ((purpleCheck.checked == false)))){ showEntry = false; } else { showEntry = true; }; }; }; if (showEntry){ sle = new ShopListEntry(item, tooltipController, null, true, this); if (sle != null){ buyPanel.buyList.addEntry(sle); } else { throw (new Error(("invalid sle for item " + item.item_name))); }; }; }; }; buyPanel.buyList.finishedAdding(); if (retainPosition){ buyPanel.buyList.moveHandleTo(oldY); buyPanel.buyList.update(); }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Add Buy Items Error: " + error.name) + "\n")); err_txt = (err_txt + (("buyMode: " + String(buyMode)) + "\n")); err_txt = (err_txt + (("b.length: " + String(b.length)) + "\n")); err_txt = (err_txt + (("greenChecked: " + greenCheck.checked) + "\n")); err_txt = (err_txt + (("blueChecked: " + blueCheck.checked) + "\n")); err_txt = (err_txt + (("purpleChecked: " + purpleCheck.checked) + "\n")); err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + " ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } private function updateTabs():void{ trace("updateTabs"); if (buying){ trace("buying"); updateBuyTabs(); buyTab.gotoAndStop(1); sellTab.gotoAndStop(2); dmf.childToTop(buyTab); if (this.contains(sellPanel)){ this.removeChild(sellPanel); }; if (!this.contains(buyPanel)){ this.addChild(buyPanel); }; } else { trace("selling"); updateSellTabs(); buyTab.gotoAndStop(2); sellTab.gotoAndStop(1); dmf.childToTop(sellTab); if (this.contains(buyPanel)){ this.removeChild(buyPanel); }; if (!this.contains(sellPanel)){ this.addChild(sellPanel); }; }; } private function sellTabClick(_arg1:MouseEvent):void{ buying = false; trace("sellTabClick"); updateTabs(); } private function buyTabClick(_arg1:MouseEvent):void{ buying = true; trace("buyTabClick"); updateTabs(); } private function checkFilters(_arg1:MouseEvent=null):void{ trace("checkFilters"); if (buying){ addBuyItems(); } else { addSellItems(); }; } public function cleanup():void{ var _local1:CharacterPortrait; buyPanel.buyList.cleanup(); sellPanel.sellList.cleanup(); exitButton.removeEventListener(MouseEvent.MOUSE_DOWN, leaveClick); buyTab.removeEventListener(MouseEvent.MOUSE_DOWN, buyTabClick); sellTab.removeEventListener(MouseEvent.MOUSE_DOWN, sellTabClick); removeEventListener(Event.ENTER_FRAME, onFrame); greenCheck.cleanup(); blueCheck.cleanup(); purpleCheck.cleanup(); sellPanel.sellButton.removeEventListener(MouseEvent.MOUSE_DOWN, sellClick); buyPanel.buyButton.removeEventListener(MouseEvent.MOUSE_DOWN, buyClick); if (bubble != null){ bubble.fade(); }; dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, hotKey); optionsButton.cleanup(); helpButton.cleanup(); removeComparisons(); for each (_local1 in portraits) { _local1.removeEventListener(MouseEvent.MOUSE_DOWN, portraitClick); }; } function portraitClick(_arg1:MouseEvent):void{ selectChar(PlayerCharacter(CharacterPortrait(_arg1.currentTarget).char_ref)); } public function selectChar(_arg1:PlayerCharacter){ selectedChar = _arg1; tooltipController.setChar(_arg1); playerGraphic.setChar(_arg1); updatePaperdoll(_arg1); playerName.text = _arg1.charname; dmf.embolden(playerName); playerClass.text = _arg1.classname; } private function updateGold():void{ goldDisplay.setGold(partyGold); } public function leaveClick(_arg1:MouseEvent):void{ var e = _arg1; if (pc_party.campaign == Campaign.SURVIVAL){ pc_party.gold = partyGold; dm.main.saveParty(); dm.main.saveInventory(); dm.main.saveChars(); parent.removeChild(this); } else { try { if (((DungeonMain.KONGREGATE) && (!((DungeonMain.kongregateSWF == null))))){ DungeonMain.kongregateSWF.stats.submit("TotalGold", earnedGold); }; } catch(e:Error) { } finally { cleanup(); dm.main.leaveShop(partyGold); }; }; } public function sellClick(_arg1:MouseEvent):void{ var sellItem:Item; var refreshed:Boolean; var messages:Array; var messageText:String; var err_txt:*; var err_dlg:ErrorDialog; var e = _arg1; trace("sellClick"); if (sellPanel.sellList.selectedEntry == null){ return; }; sellItem = sellPanel.sellList.selectedEntry.item_ref; var owner:PlayerCharacter = sellPanel.sellList.selectedEntry.equipper; var g:int = sellPanel.sellList.selectedEntry.price; refreshed = false; try { removeComparisons(); if ((((((sellItem is PortalScroll)) || ((g <= 0)))) || ((sellItem is ShopTeleportItem)))){ addBubble("Sorry, I'm not buying that."); return; }; if (((!((owner == null))) && ((sellItem is Equipment)))){ owner.gear[Equipment(sellItem).slot] = null; if (owner == selectedChar){ updatePaperdoll(owner); }; } else { if ((((sellItem is Consumable)) && ((Consumable(sellItem).stack > 1)))){ Consumable(sellItem).stack--; } else { pc_party.removeFromInventory(sellItem); }; }; earnedGold = (earnedGold + g); partyGold = (partyGold + g); updateGold(); updateInventoryCount(); dm.sound.play(SoundControl.lootItem); addSellItems(true); refreshed = true; messages = new Array(); if ((sellItem is Consumable)){ messages.push((("Oh, a " + sellItem.item_name) + "? Excellent. Hard to keep these in stock.")); messages.push((("Thank you! We have customers asking for a " + sellItem.item_name) + " all the time. The going price just keeps on rising.")); } else { if (sellItem.item_rarity == Item.grey){ messages.push((("Hmm. That " + sellItem.item_name) + " isn't much to look at, but maybe I can find a buyer.")); messages.push((("Alright, I'll buy the " + sellItem.item_name) + ", but I'm really doing you a favor here.")); messages.push((("Got a lot of use out of that " + sellItem.item_name) + ", did you? Look at the state it's in!")); messages.push((("I prefer not to deal in damaged goods, but I'll take the " + sellItem.item_name) + " this time.")); } else { if (sellItem.item_rarity == Item.orange){ messages.push((("Well now!. That " + sellItem.item_name) + " is an impressive item.")); messages.push((("That " + sellItem.item_name) + " is going to put a dent in my funds. Worth every penny, though.")); messages.push((("Don't see a lot of people willing to part with an item as good as that " + sellItem.item_name) + ".")); messages.push((("That one's going in the display case! \"Get your " + sellItem.item_name) + ", only at the Emporium!\".")); messages.push((("Never even seen a " + sellItem.item_name) + " before. I have a lot of clients who'll want to hear about this!")); } else { messages.push((("Yes, I'll buy the " + sellItem.item_name) + ".")); messages.push((("Happy to buy that " + sellItem.item_name) + " from you.")); messages.push((("I'm sure I can find a buyer for that " + sellItem.item_name) + ".")); messages.push((("I'll take the " + sellItem.item_name) + " off your hands.")); messages.push((("That's a fair price for a " + sellItem.item_name) + ".")); messages.push((("Had a customer looking for a " + sellItem.item_name) + " like this.")); messages.push((("Always plenty of demand for a good " + sellItem.item_name) + ".")); messages.push((("I'll have no problem moving this " + sellItem.item_name) + ".")); }; }; }; messageText = messages[dmf.randomNum(0, (messages.length - 1))]; addBubble(messageText); } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Sell Click Error: " + error.name) + "\n")); err_txt = (err_txt + (("item: " + String(sellItem)) + "\n")); err_txt = (err_txt + (("mode: " + String(sellMode)) + "\n")); err_txt = (err_txt + (("refreshed: " + refreshed) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } private function hotKey(_arg1:KeyboardEvent):void{ var _local2:*; var _local3:String; var _local4:int; var _local5:ErrorDialog; if (_arg1.keyCode == Keyboard.SPACE){ if (buying){ buyClick(null); } else { sellClick(null); }; } else { if (_arg1.keyCode == Keyboard.F1){ trace("f1 pressed"); _local2 = dm.stage.getChildByName("debugPanel"); if (_local2 != null){ if (dm.stage.contains(_local2)){ dm.stage.removeChild(_local2); }; } else { _local3 = ""; _local4 = -1; if (buying){ _local4 = buyPanel.buyList.entries.length; } else { _local4 = sellPanel.sellList.entries.length; }; _local3 = (_local3 + (((Capabilities.os + " ") + Capabilities.language) + "\n")); _local3 = (_local3 + (((Capabilities.version + " ") + Capabilities.playerType) + "\n")); _local3 = (_local3 + (("Audio: " + Capabilities.hasAudioEncoder) + "\n")); _local3 = (_local3 + "\n"); if (buying){ _local3 = (_local3 + (("buying: " + buying) + "\n")); }; if (buyMode == BUY_ALL){ _local3 = (_local3 + (("buyMode: " + buyMode) + "\n")); } else { _local3 = (_local3 + (((("buyMode: " + buyMode) + ", mode items: ") + buyItems[buyMode].length) + "\n")); }; _local3 = (_local3 + (("sellMode: " + sellMode) + "\n")); _local3 = (_local3 + (("list entries: " + _local4) + ", ")); if (buying){ if (buyPanel.buyList.pane == null){ _local3 = (_local3 + "pane null"); } else { _local3 = (_local3 + (("pane children: " + buyPanel.buyList.pane.numChildren) + ", ")); _local3 = (_local3 + (("pane height: " + buyPanel.buyList.paneHeight) + "\n")); _local3 = (_local3 + (("pane x: " + buyPanel.buyList.pane.x) + ", ")); _local3 = (_local3 + (("pane y: " + buyPanel.buyList.pane.y) + "\n")); if (buyPanel.buyList.pane.parent != null){ _local3 = (_local3 + "pane parent: true\n"); } else { _local3 = (_local3 + "pane parent: false\n"); }; }; } else { if (sellPanel.sellList.pane == null){ _local3 = (_local3 + "pane null"); } else { _local3 = (_local3 + (("pane children: " + sellPanel.sellList.pane.numChildren) + ", ")); _local3 = (_local3 + (("pane height: " + sellPanel.sellList.paneHeight) + "\n")); _local3 = (_local3 + (("pane x: " + sellPanel.sellList.pane.x) + ", ")); _local3 = (_local3 + (("pane y: " + sellPanel.sellList.pane.y) + "\n")); if (sellPanel.sellList.pane.parent != null){ _local3 = (_local3 + "pane parent: true\n"); } else { _local3 = (_local3 + "pane parent: false\n"); }; }; }; _local3 = (_local3 + (((((("g: " + greenCheck.checked) + ", b: ") + blueCheck.checked) + ", p: ") + purpleCheck.checked) + "\n")); _local5 = new ErrorDialog("Debug Information", _local3); _local5.name = "debugPanel"; dm.stage.addChild(_local5); }; }; }; } public function buyClick(_arg1:MouseEvent):void{ var refreshedItems:Boolean; var buyItem:Item; var messages:Array; var messageText:String; var invFullString:String; var i:int; var j:int; var consumClass:*; var consum:Item; var err_txt:*; var err_dlg:ErrorDialog; var e = _arg1; if (buyPanel.buyList.selectedEntry == null){ return; }; refreshedItems = false; removeComparisons(); trace("buyClick"); buyItem = buyPanel.buyList.selectedEntry.item_ref; var g:int = buyPanel.buyList.selectedEntry.price; try { if ((((pc_party.inventory.length >= Party.MAX_INVENTORY)) && ((pc_party.overflow.length >= Party.MAX_OVERFLOW)))){ invFullString = "You're carrying too many items."; if (dmf.randomNum(0, 100) > 50){ invFullString = "You look a little overburdened already.."; }; addBubble(invFullString); return; }; if (partyGold < g){ addBubble("Sorry, you can't afford that."); return; }; if ((((buyItem is Consumable)) && ((Consumable(buyItem).stack > 1)))){ trace(("reducing stack size of " + String(buyItem))); trace(("old value = " + Consumable(buyItem).stack)); Consumable(buyItem).stack--; trace(("new value = " + Consumable(buyItem).stack)); } else { trace("removing from store inventory"); i = 0; while (i < buyItems.length) { j = 0; while (j < buyItems[i].length) { if (buyItems[i][j] == buyItem){ trace("item found, splicing"); buyItems[i].splice(j, 1); break; }; j = (j + 1); }; i = (i + 1); }; }; addBuyItems(true); refreshedItems = true; dm.sound.play(SoundControl.lootItem); if ((((buyItem is Consumable)) && ((Consumable(buyItem).stack > 1)))){ consumClass = buyItem; consum = new consumClass.constructor(); pc_party.addToInventory(consum); } else { pc_party.addToInventory(buyItem); }; partyGold = (partyGold - g); updateGold(); updateInventoryCount(); messages = new Array(); if ((buyItem is Consumable)){ messages.push((("Demand for these keeps rising. I just recently had to raise the price on that " + buyItem.item_name) + ".")); messages.push((("A " + buyItem.item_name) + "? One of our most popular items! Can barely keep them on the shelves.")); } else { messages.push((("A " + buyItem.item_name) + ", excellent choice.")); messages.push((("" + buyItem.item_name) + ", one of our most popular items.")); messages.push((("Enjoy your new " + buyItem.item_name) + ".")); messages.push((("You won't be disappointed with that " + buyItem.item_name) + ".")); messages.push((("I let you have that " + buyItem.item_name) + " for a song. Don't spread it around.")); messages.push((("Thanks for shopping at the Emporium! Here's your new " + buyItem.item_name) + ".")); messages.push((("Here's your " + buyItem.item_name) + ", pleasure doing business with you.")); messages.push((("You want a " + buyItem.item_name) + "? I hear a lot of good things about these.")); messages.push((("Remember to tell your friends where you got that impressive new " + buyItem.item_name) + ".")); messages.push((("That's one " + buyItem.item_name) + ". Can I help you with anyone else?")); messages.push((("A fine selection. I had an eye on that " + buyItem.item_name) + " myself.")); }; messageText = messages[dmf.randomNum(0, (messages.length - 1))]; addBubble(messageText); } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Buy Click Error: " + error.name) + "\n")); err_txt = (err_txt + (("item: " + String(buyItem)) + "\n")); err_txt = (err_txt + (("mode: " + String(buyMode)) + "\n")); err_txt = (err_txt + (("refreshed: " + refreshedItems) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } private function addBubble(_arg1:String):void{ if (bubble != null){ bubble.fade(); }; bubble = new SpeechBubble(_arg1); bubble.x = BUBBLE_X; bubble.y = BUBBLE_Y; addChild(bubble); } public function updatePaperdoll(_arg1:PlayerCharacter):void{ var _local2:InventoryIcon; var _local3:int; _local3 = 0; while (_local3 < Equipment.gearSlots) { _local2 = InventoryIcon(paperdoll.getChildByName(("slot" + String(_local3)))); if (_local2 != null){ paperdoll.removeChild(_local2); }; _local3++; }; _local3 = 0; while (_local3 < Equipment.gearSlots) { if (_arg1.gear[_local3] == null){ } else { if (_arg1.gear[_local3].slot == Equipment.gearSlots){ } else { if (_arg1.gear[_local3].slot != _local3){ } else { _local2 = new InventoryIcon(_arg1.gear[_local3], tooltipController); _local2.x = paperdoll.getSlotX(_arg1.gear[_local3].slot); _local2.y = paperdoll.getSlotY(_arg1.gear[_local3].slot); _local2.name = ("slot" + String(_local3)); paperdoll.addChild(_local2); if (_local3 == Equipment.weapon){ if (Weapon(_arg1.gear[_local3]).twoHanded){ paperdoll.offhand.gotoAndStop(2); } else { paperdoll.offhand.gotoAndStop(1); }; }; }; }; }; _local3++; }; } private function generateBuyItems():void{ var _local1:int; buyItems = new Array((BUY_CONSUMABLES + 1)); _local1 = 0; while (_local1 < buyItems.length) { buyItems[_local1] = new Array(); _local1++; }; var _local2 = 2; var _local3 = 1; var _local4 = 3; var _local5 = 3; if (pc_party.campaign == Campaign.SURVIVAL){ _local2++; _local3++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iSword(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iSword(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iMace(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iMace(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iDagger(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iDagger(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iAxe(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iAxe(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iSpear(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iSpear(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iStaff(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iStaff(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iBow(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iBow(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_WEAPONS].push(new iCrossbow(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_WEAPONS].push(new iCrossbow(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateHelmet(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateHelmet(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateBreastplate(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateBreastplate(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateGloves(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateGloves(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateGreaves(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateGreaves(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateBoots(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_HEAVY].push(new iPlateBoots(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherHat(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherHat(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherChest(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherChest(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherGloves(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherGloves(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherLegs(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherLegs(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherBoots(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_MEDIUM].push(new iLeatherBoots(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_LIGHT].push(new iClothHat(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_LIGHT].push(new iClothHat(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_LIGHT].push(new iClothRobe(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_LIGHT].push(new iClothRobe(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_LIGHT].push(new iClothGloves(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_LIGHT].push(new iClothGloves(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_LIGHT].push(new iClothLegs(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_LIGHT].push(new iClothLegs(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ARMOR_LIGHT].push(new iClothShoes(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ARMOR_LIGHT].push(new iClothShoes(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iRing(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iRing(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iCloak(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iCloak(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iParryingDagger(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iParryingDagger(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iShieldBuckler(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iShieldBuckler(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iShieldTower(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iShieldTower(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iCenser(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iCenser(pc_party.level, Item.blue)); _local1++; }; _local1 = 0; while (_local1 < _local2) { buyItems[BUY_ACCESSORIES].push(new iQuiver(pc_party.level, Item.green)); _local1++; }; _local1 = 0; while (_local1 < _local3) { buyItems[BUY_ACCESSORIES].push(new iQuiver(pc_party.level, Item.blue)); _local1++; }; if (pc_party.campaign != Campaign.SURVIVAL){ addConsumable(new PotionHealth(), _local4); addConsumable(new PotionPower(), _local4); addConsumable(new PotionRevive(), _local4); addConsumable(new SneakyScroll(), 1); if (dmf.randomNum(0, 100) < 20){ addConsumable(new PotionPoisonResist(), 1); }; if (dmf.randomNum(0, 100) < 20){ addConsumable(new PotionRejuve(), 1); }; if (dmf.randomNum(0, 100) < 20){ addConsumable(new PotionShield(), 1); }; if (dmf.randomNum(0, 100) < 20){ addConsumable(new PotionQuickness(), 1); }; _local1 = 0; while (_local1 < _local5) { buyItems[BUY_CONSUMABLES].push(new Enchantment(pc_party.level, 0, false)); _local1++; }; addPurple(); if (dmf.randomNum(0, 100) < 50){ addPurple(); }; addConsumable(new CleanSlate(), 4); addConsumable(new LegendaryLure(), 1); if (pc_party.campaign == Campaign.INFINITE){ addConsumable(new PandorasBox(), 1); }; if (!pc_party.hasShopTeleportItem()){ buyItems[BUY_CONSUMABLES].push(new ShopTeleportItem()); }; }; } private function addPurple():void{ var _local1:Item = TreasureChest.getItem(pc_party.level, Item.purple); if (_local1 != null){ if ((_local1 is Weapon)){ buyItems[BUY_WEAPONS].push(_local1); } else { if ((_local1 is LightArmor)){ buyItems[BUY_ARMOR_LIGHT].push(_local1); } else { if ((_local1 is MediumArmor)){ buyItems[BUY_ARMOR_MEDIUM].push(_local1); } else { if ((_local1 is HeavyArmor)){ buyItems[BUY_ARMOR_HEAVY].push(_local1); } else { buyItems[BUY_ACCESSORIES].push(_local1); }; }; }; }; }; } private function addConsumable(_arg1:Consumable, _arg2:int):void{ trace("addConsumable"); _arg1.stack = _arg2; buyItems[BUY_CONSUMABLES].push(_arg1); } public function removeComparisons():void{ var _local1:ItemComparison; for each (_local1 in comparisons) { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; }; } public function showComparisons(_arg1:Item):void{ var _local2:PlayerCharacter; var _local3:ItemComparison; var _local4:CharacterPortrait; if ((_arg1 is Equipment)){ removeComparisons(); comparisons = new Array(); for each (_local2 in pc_party.members) { if ((_local2 is PC_Adventurer)){ } else { _local3 = new ItemComparison(_local2, Equipment(_arg1).slot, Equipment(_arg1)); comparisons.push(_local3); _local4 = _local2.portraitRef; if (_local4 != null){ dm.stage.addChild(_local3); _local3.x = _local4.x; _local3.y = _local4.y; }; }; }; }; } private function outIcon(_arg1:MouseEvent):void{ removeComparisons(); } public function removeItemFrom(_arg1:Item, _arg2:PlayerCharacter){ if (!(_arg1 is Equipment)){ return; }; var _local3:Equipment = Equipment(_arg1); trace("removeItemFrom"); if (_arg2.unequip(Equipment(_arg1))){ trace("unequipped"); if (_arg2 == selectedChar){ updatePaperdoll(_arg2); }; addSellItems(); }; } public function equipItem(_arg1:Item, _arg2:PlayerCharacter):void{ if (((_arg2.equip(Equipment(_arg1))) && (!(buying)))){ addSellItems(); updatePaperdoll(_arg2); trace("equip item"); }; } } }//package
Section 479
//ShopListEntry (ShopListEntry) package { import flash.events.*; import flash.display.*; import flash.text.*; public class ShopListEntry extends Sprite { public var ico:InventoryIcon; public var itemLabel:TextField; public var ownerLabel:TextField; public var priceLabel:TextField; public var gold:Sprite; public var bg:MovieClip; public var item_ref:Item; public var tooltipController:ItemTooltipController; public var equipper:PlayerCharacter; public var price:int; public var shop:Shop; public static const FIXED_HEIGHT:int = 30; public function ShopListEntry(_arg1:Item=null, _arg2:ItemTooltipController=null, _arg3:PlayerCharacter=null, _arg4:Boolean=true, _arg5:Shop=null):void{ var _local6:Number; super(); select(false); if (_arg1 == null){ return; }; this.item_ref = _arg1; if (_arg2 == null){ return; }; this.tooltipController = _arg2; if (_arg3 != null){ this.equipper = _arg3; }; this.shop = _arg5; itemLabel.mouseEnabled = false; priceLabel.mouseEnabled = false; ownerLabel.mouseEnabled = false; gold.mouseEnabled = false; ico.tooltipController = _arg2; ico.setItem(_arg1); addEventListener(MouseEvent.MOUSE_OVER, mouseOverIcon); addEventListener(MouseEvent.MOUSE_OUT, mouseOutIcon); itemLabel.text = String(_arg1.item_name); itemLabel.textColor = Item.textColorForRarity(_arg1.item_rarity); dmf.embolden(itemLabel); if (equipper){ ownerLabel.text = ("Equipped by " + equipper.charname); } else { ownerLabel.text = ""; itemLabel.y = 8; }; price = _arg1.getWorth(); if (_arg4){ price = Math.round((price * 3)); if ((((_arg1.priceModifier == 0)) && (((_arg1 is ShopTeleportItem) == false)))){ _local6 = ((dmf.randomNum(0, 30) - 15) / 100); _arg1.priceModifier = Math.round((_local6 * price)); }; price = (price + _arg1.priceModifier); }; priceLabel.text = String(price); priceLabel.autoSize = TextFieldAutoSize.RIGHT; gold.x = (priceLabel.x - 12); doubleClickEnabled = true; addEventListener(MouseEvent.DOUBLE_CLICK, doubleClick); } private function doubleClick(_arg1:MouseEvent):void{ if (shop == null){ return; }; trace("double click"); if (!shop.buying){ if ((((shop.sellMode == Shop.SELL_EQUIPPED)) && (!((equipper == null))))){ shop.removeItemFrom(item_ref, equipper); } else { if (shop.sellMode == Shop.SELL_ALL){ shop.equipItem(item_ref, Shop.selectedChar); }; }; }; } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_OVER, mouseOverIcon); removeEventListener(MouseEvent.MOUSE_OUT, mouseOutIcon); removeEventListener(MouseEvent.DOUBLE_CLICK, doubleClick); } public function select(_arg1:Boolean=true):void{ if (_arg1){ bg.gotoAndStop("selected"); } else { bg.gotoAndStop("normal"); }; } private function mouseOverIcon(_arg1:MouseEvent):void{ if (shop != null){ shop.showComparisons(item_ref); }; } private function mouseOutIcon(_arg1:MouseEvent):void{ if (shop != null){ shop.removeComparisons(); }; } } }//package
Section 480
//ShopListScrolling (ShopListScrolling) package { import flash.events.*; import flash.display.*; public class ShopListScrolling extends Sprite { public const VISIBLE_HEIGHT:int = 220; const HANDLE_Y_MIN:int = 15; const HANDLE_Y_MAX:int = 205; public var pane:Sprite; public var scrollHandle:Sprite; public var visibleArea:Sprite; public var scrollBar:Sprite; public var maskSprite:Sprite; public var scrollUp:ClickToScroll; public var scrollDown:ClickToScroll; private var scrolling:Boolean;// = false private var handleGrabPos:int;// = 0 private var scrollingUp:Boolean;// = false private var scrollingDown:Boolean;// = false public var paneHeight:int;// = 0 public var entries:Array; public var tooltipController:ItemTooltipController; public var selectedEntry:ShopListEntry; public var shop:Shop; public function ShopListScrolling():void{ entries = new Array(); addEventListener(Event.ENTER_FRAME, frame); addEventListener(Event.REMOVED_FROM_STAGE, removed); scrollHandle.addEventListener(MouseEvent.MOUSE_DOWN, startScroll); scrollBar.addEventListener(MouseEvent.CLICK, clickBar); } public function setTooltipController(_arg1:ItemTooltipController):void{ var _local2:ShopListEntry; this.tooltipController = _arg1; for each (_local2 in entries) { if (_local2 == null){ continue; } else { _local2.tooltipController = _arg1; }; }; } public function setShop(_arg1:Shop):void{ this.shop = _arg1; } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stage.removeEventListener(MouseEvent.MOUSE_UP, stopScroll); } public function cleanup():void{ removeEventListener(Event.ENTER_FRAME, frame); scrollHandle.removeEventListener(MouseEvent.MOUSE_DOWN, startScroll); scrollBar.removeEventListener(MouseEvent.CLICK, clickBar); scrollUp.cleanup(); scrollDown.cleanup(); empty(false); } private function startScroll(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP, stopScroll); scrolling = true; handleGrabPos = Math.round((this.mouseY - scrollHandle.y)); } private function stopScroll(_arg1:MouseEvent):void{ if (stage != null){ stage.removeEventListener(MouseEvent.MOUSE_UP, stopScroll); }; scrolling = false; } private function clickBar(_arg1:MouseEvent):void{ var _local2:* = Math.round(((scrollBar.height - scrollHandle.height) / 2)); if (scrollBar.mouseY < scrollHandle.y){ moveHandleTo((scrollHandle.y - _local2)); update(); } else { moveHandleTo((scrollHandle.y + _local2)); update(); }; } private function frame(_arg1:Event):void{ var _local3:int; var _local4:*; var _local2:* = 25; if (scrolling){ if ((((this.mouseX < (pane.width - _local2))) || ((this.mouseX > (this.width + _local2))))){ stopScroll(null); update(); } else { _local3 = Math.round(this.mouseY); moveHandleTo((_local3 - handleGrabPos)); update(); }; } else { _local4 = 5; if (scrollUp.scrolling){ moveHandleTo((scrollHandle.y - _local4)); update(); } else { if (scrollDown.scrolling){ moveHandleTo((scrollHandle.y + _local4)); update(); }; }; }; } public function moveHandleTo(_arg1:int):void{ _arg1 = Math.max(HANDLE_Y_MIN, _arg1); _arg1 = Math.min((HANDLE_Y_MAX - scrollHandle.height), _arg1); scrollHandle.y = _arg1; } public function resetHandle():void{ moveHandleTo(HANDLE_Y_MIN); update(); } private function setMasks():void{ setChildIndex(maskSprite, (numChildren - 1)); pane.mask = maskSprite; } public function update():void{ var frac:Number; var maxBarHeight:int; var scrollBarHeight:int; var scrollY:int; var minY:int; var err_txt:*; var err_dlg:ErrorDialog; frac = 0; try { moveHandleTo(scrollHandle.y); maxBarHeight = (HANDLE_Y_MAX - HANDLE_Y_MIN); scrollBarHeight = (maxBarHeight - scrollHandle.height); scrollY = (Math.round(scrollHandle.y) - HANDLE_Y_MIN); frac = (scrollY / scrollBarHeight); if (scrollBarHeight == 0){ frac = 1; }; minY = (VISIBLE_HEIGHT - paneHeight); pane.x = 0; pane.y = Math.round((frac * minY)); if (pane.y > 0){ pane.y = 0; } else { if (pane.y < minY){ pane.y = minY; }; }; if (!this.contains(pane)){ addChild(pane); }; setMasks(); } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Scroll Update Error: " + error.name) + "\n")); err_txt = (err_txt + (("scrollHandle: " + String(scrollHandle.y)) + "\n")); err_txt = (err_txt + (("frac: " + String(frac)) + "\n")); err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + " ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } public function finishedAdding():void{ var _local2:DisplayObject; var _local3:Number; var _local4:int; var _local1:int; for each (_local2 in entries) { if (_local2 == null){ } else { _local2.x = 0; _local2.y = _local1; _local1 = (_local1 + ShopListEntry.FIXED_HEIGHT); }; }; paneHeight = _local1; _local3 = (VISIBLE_HEIGHT / paneHeight); _local4 = (HANDLE_Y_MAX - HANDLE_Y_MIN); if (paneHeight < VISIBLE_HEIGHT){ _local3 = 1; }; scrollHandle.height = Math.round((_local3 * _local4)); trace(((((((("finished adding items (" + entries.length) + "), f = ") + _local3) + ", paneY = ") + _local1) + ", scrollHandle.height = ") + scrollHandle.height)); trace(((("paneHeight = " + paneHeight) + ", pane.height = ") + Math.round(pane.height))); } public function addEntry(_arg1:ShopListEntry):void{ var err_txt:*; var err_dlg:ErrorDialog; var s = _arg1; try { entries.push(s); pane.addChild(s); trace(("addEntry - height: " + s.height)); s.addEventListener(MouseEvent.CLICK, entryClick); } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Add Entry Error: " + error.name) + "\n")); err_txt = (err_txt + (("s: " + String(s)) + "\n")); err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + " ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } private function entryClick(_arg1:MouseEvent):void{ var _local2:* = _arg1.target.parent; if (_local2 == null){ return; }; if ((_local2 is InventoryIcon)){ _local2 = _local2.parent; }; unselect(); selectedEntry = _local2; selectedEntry.select(true); if (_arg1.ctrlKey){ if (shop != null){ if (shop.buying){ shop.buyClick(null); } else { shop.sellClick(null); }; }; }; } public function empty(_arg1:Boolean=true):void{ var e:ShopListEntry; var i:int; var c:*; var err_txt:*; var err_dlg:ErrorDialog; var updateAfter = _arg1; try { unselect(); for each (e in entries) { if (e == null){ } else { if (e.parent != null){ e.parent.removeChild(e); }; e.removeEventListener(MouseEvent.CLICK, entryClick); e.cleanup(); }; }; entries.length = 0; finishedAdding(); i = 0; while (i < pane.numChildren) { c = pane.getChildAt(i); if ((c is ShopListEntry)){ trace(("pane child found: " + String(c))); pane.removeChild(c); c.removeEventListener(MouseEvent.CLICK, entryClick); ShopListEntry(c).cleanup(); }; i = (i + 1); }; if (updateAfter){ resetHandle(); }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Empty List Error: " + error.name) + "\n")); err_txt = (err_txt + (("entries: " + String(entries.length)) + "\n")); err_txt = (err_txt + ((((("[" + error.errorID) + "] ") + error.message) + " ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } public function unselect():void{ if (selectedEntry != null){ selectedEntry.select(false); selectedEntry = null; }; } } }//package
Section 481
//ShopTeleportItem (ShopTeleportItem) package { public class ShopTeleportItem extends Consumable { public function ShopTeleportItem(){ item_name = "Emporium Preferred Customer Badge"; lore = "Imbued with powerful (and patented) magic, this badge can teleport the owner back to the Emporium once per level. Given only to Yelmo's most valued customers.. not for free, of course."; town_portal = true; item_rarity = Item.orange; icon_frame = 184; } override public function getWorth():int{ return (10000); } } }//package
Section 482
//ShrineUseDialog (ShrineUseDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.ui.*; public class ShrineUseDialog extends MovieClip { public var no_btn:MovieClip; public var yes_btn:MovieClip; public var headerText:TextField; public var bodyText:TextField; public function ShrineUseDialog(_arg1:String="", _arg2:String=""):void{ if (_arg1 != ""){ headerText.text = _arg1; dmf.embolden(headerText); }; if (_arg2 != ""){ bodyText.text = _arg2; }; this.yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickYes); this.no_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } private function cleanup():void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickYes); no_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickNo); dm.stage.removeEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown); } function clickYes(_arg1:MouseEvent):void{ if (((!((parent == null))) && ((parent is Dungeon)))){ cleanup(); Dungeon(parent).useShrine(); }; } function clickNo(_arg1:MouseEvent):void{ if (parent != null){ cleanup(); parent.removeChild(this); }; } function reportKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ clickYes(null); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ clickNo(null); }; }; } } }//package
Section 483
//sHydraBite (sHydraBite) package { public class sHydraBite extends Skill { public function sHydraBite(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = _arg1.damage; power_cost = 25; skillname = "Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.creatureBite; } } }//package
Section 484
//sHydraGrowHeads (sHydraGrowHeads) package { public class sHydraGrowHeads extends Skill { public function sHydraGrowHeads(_arg1:Character){ char_ref = _arg1; hydraGrowHeads = true; alwaysHits = true; resurrects = true; damage = 0; power_cost = 30; skillname = "Regenerate Heads!"; verbage = "regenerates heads"; } } }//package
Section 485
//sInstillFear (sInstillFear) package { public class sInstillFear extends Skill { public function sInstillFear(_arg1:Character){ char_ref = _arg1; rangedAttack = true; stun_percent = 100; power_cost = 35; crippling = 100; skillname = "Instill Fear"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.fearDeath; } } }//package
Section 486
//Skill (Skill) package { public class Skill { var skillname:String;// = "Skill" var verbage:String; var iconFrame:int;// = 1 var char_ref:Character; var active:Boolean;// = false var position:int;// = 1 var unlocked:Boolean;// = false var nonCombat:Boolean;// = false var aiCastLimit:int;// = -1 var aiCastCount:int;// = 0 var aiNotUnlessHurt:Boolean;// = false var aiTargetHealthiest:Boolean;// = false var aiNotUnlessLowPower:Boolean;// = false var aiAllowSuicide:Boolean;// = false var aiTargetsBackRow:Boolean;// = false var aiTargetOnlyLowHealth:Boolean;// = false var aiAlwaysUse:Boolean;// = false var aiOnlyWhenHordeDead:Boolean;// = false var aiPriority:int;// = 5 var increasesWith:int;// = 5 var increaseRate:Number;// = 1 var requiresWeapon:Boolean;// = false var requiresMelee:Boolean;// = false var requiresRanged:Boolean;// = false var requiresShield:Boolean;// = false var unarmedAttack:Boolean;// = false var requiresLowHealth:Boolean;// = false private var _power_cost:int;// = 0 var health_cost:int;// = 0 var damage:int;// = 0 var healing:int;// = 0 var buff_resistPoison:int;// = 0 var buff_resistStun:int;// = 0 var buff_damageResist:int;// = 0 var buff_damageReflect:int;// = 0 var buff_healthRegen:int;// = 0 var buff_powerRegen:int;// = 0 var buff_vampiric:int;// = 0 var buff_stun:int;// = 0 var buff_quickness:int;// = 0 var buff_damage:Number;// = 1 var buff_accuracy:int;// = 0 var debuff_damageResist:int;// = 0 var debuff_damage:Number;// = 1 var targetDamageMod;// = 1 var damageAccuracy:int;// = 0 var crippling:int;// = 0 var rangedAttack:Boolean;// = false var usesWeaponRange:Boolean;// = false var targetsFriendlies:Boolean;// = false var targetsSelf:Boolean;// = false var targetsEmpty:Boolean;// = false var hitsAllEmpty:Boolean;// = false var hitsAllFriendlies:Boolean;// = false var hitsAllEnemies:Boolean;// = false var hitsAllMeleeRange:Boolean;// = false var piercesColumn:Boolean;// = false var splashDamageMultiplier:Number;// = 0 var splashHitsAllies:Boolean;// = false var doesNotEffectSelf:Boolean;// = false var requiresVerticalGap:Boolean;// = false var targetsFriendlyFrontRow:Boolean;// = false var targetsStunned:Boolean;// = false var targetsSummoned:Boolean;// = false var powerRegenMod:Number;// = 1 var powerDamage:int;// = 0 var powerDrain:Boolean;// = false var gainPowerFromKill:int;// = 0 var powerRestore:int;// = 0 var woundsRestorePower:int;// = 0 var clonesPlayers:Boolean;// = false var summonsWhirlwind:Boolean;// = false var shufflesEnemies:Boolean;// = false var swapPositions:Boolean;// = false var lethality:int;// = 0 var costsRemainingPower:Boolean;// = false var addsPowerToLethality:Boolean;// = false var intimidating:Boolean;// = false var hidesTarget:Boolean;// = false var summonsCreatureClass:Character;// = null var transformCreatureClass:MonsterCharacter;// = null var makeDamageSponge:Boolean;// = false var tempDamageResistance:int;// = 0 var cancelPowerRegen:int;// = 0 var cancelHealthRegen:int;// = 0 var forceRetreat:Boolean;// = false var nonLethal:Boolean;// = false var undeadMultiplier:Number;// = 0 var onlyDamagesUndead:Boolean;// = false var vampiric_percent:int;// = 0 var stun_percent:int;// = 0 var alwaysHits:Boolean;// = false var allyBonusAttack:Boolean;// = false var attacksMultipleTimes:int;// = 0 var attacksWithAccuracyMod:Number;// = 1 var extraSpeedAttacks:int;// = 0 var attacksTwoTargets:Boolean;// = false var curse;// = 0 var removesCurse:Boolean;// = false var killsUser:Boolean;// = false var hydraGrowHeads:Boolean;// = false var poisonDamage:int;// = 0 var removesPoison:Boolean;// = false var resurrects:Boolean;// = false var cannotDie:int;// = 0 var invulnerable:int;// = 0 var ignoresArmor:Boolean;// = false var scaleWeaponDamage;// = 1 var addWeaponDamage;// = false var magicStrength:Number;// = 0 var damageBonusVsCreatureType;// = 0 var damageBonusVsCreatureModifier;// = 1 var hasPortraitAnimation:Boolean;// = false var portraitAnimationFrame:int;// = 0 var portraitAnimationDuration:int;// = 1500 var specialAnimation:int;// = 0 var showWeaponAnimation:Boolean;// = false var suppressStunAnim:Boolean;// = false static const strength:int = 1; static const endurance:int = 2; static const dexterity:int = 3; static const intellect:int = 4; static const weapon:int = 5; static const level:int = 6; static const none:int = 0; public function Skill(){ verbage = ("uses " + String(skillname)); super(); aiPriority = 5; } public function get power_cost():int{ return (this._power_cost); } public function set power_cost(_arg1:int):void{ this._power_cost = _arg1; } public function usable(_arg1=false):Boolean{ var _local2:*; var _local3:*; var _local4:int; var _local5:PlayerCharacter; if ((char_ref is PlayerCharacter)){ _local2 = PlayerCharacter(char_ref).gear[Equipment.weapon]; _local3 = PlayerCharacter(char_ref).gear[Equipment.offhand]; if (((requiresWeapon) && ((_local2 == null)))){ return (false); }; if (((requiresMelee) && (!((_local2 is MeleeWeapon))))){ return (false); }; if (((requiresRanged) && (!((_local2 is RangedWeapon))))){ return (false); }; if (((requiresShield) && (!((_local3 is Shield))))){ return (false); }; if (summonsCreatureClass){ _local4 = 0; for each (_local5 in PlayerCharacter(char_ref).party.members) { if (_local5 == null){ } else { if ((((_local5 is PlayerSummon)) && ((_local5.health <= 0)))){ } else { _local4++; }; }; }; if (_local4 >= 6){ return (false); }; }; }; if (requiresLowHealth){ if (char_ref.getHealthPercent() > 20){ return (false); }; }; if (char_ref.power < power_cost){ return (false); }; return (true); } public function isPhysical():Boolean{ if (skillname == "Magic Attack"){ return (false); }; if (((((((unarmedAttack) || (addWeaponDamage))) || (requiresMelee))) || (requiresRanged))){ return (true); }; if ((char_ref is PlayerSummon)){ return (true); }; if ((char_ref is PC_Adventurer)){ return (true); }; return (false); } public function getCostString():String{ var _local1:*; if (((costsRemainingPower) && (power_cost))){ _local1 = (("Requires " + power_cost) + " power\n Uses remaining power"); } else { if (costsRemainingPower){ _local1 = "Uses remaining power"; } else { if (power_cost){ _local1 = (("Uses " + power_cost) + " power"); }; }; }; return (_local1); } private function getStat(_arg1:int):int{ var _local2:* = 0; if (_arg1 == Skill.strength){ _local2 = char_ref.getStrength(); } else { if (_arg1 == Skill.dexterity){ _local2 = char_ref.getDexterity(); } else { if (_arg1 == Skill.endurance){ _local2 = char_ref.getEndurance(); } else { if (_arg1 == Skill.intellect){ _local2 = char_ref.getIntellect(); } else { if (_arg1 == Skill.level){ _local2 = (1 + (char_ref.level * PlayerCharacter.STATS_PER_LEVEL)); }; }; }; }; }; return (_local2); } public function getDamage():int{ var _local3:*; var _local4:*; var _local1:PlayerCharacter; var _local2:int = damage; if (((!((char_ref == null))) && ((char_ref is PlayerCharacter)))){ _local1 = PlayerCharacter(char_ref); }; if (((unarmedAttack) && (!((_local1 == null))))){ return (_local1.getUnarmedDamage()); }; if (((addWeaponDamage) && (!((_local1 == null))))){ _local3 = _local1.getWeaponDamage(); _local3 = (_local3 * scaleWeaponDamage); _local2 = (_local2 + Math.round(_local3)); }; if (((((((damage) && (!((_local1 == null))))) && (!((increasesWith == Skill.none))))) && (!((increasesWith == Skill.level))))){ _local4 = getStat(increasesWith); if (_local4 > 0){ _local2 = (_local2 + getScaledDamage(_local4)); }; }; return (_local2); } private function getScaledDamage(_arg1:int):int{ _arg1--; var _local2:int = (30 * (char_ref.level - 1)); var _local3:Number = ((_arg1 * increaseRate) * (_local2 / ((PlayerCharacter.STATS_PER_LEVEL * char_ref.level) * 2))); if (magicStrength > 0){ _local3 = (_local3 * magicStrength); }; return (Math.round(_local3)); } public function scalePoison():int{ if (((!((increasesWith == Skill.none))) && (!((increasesWith == Skill.weapon))))){ return ((poisonDamage + getScaledDamage(getStat(increasesWith)))); }; return (poisonDamage); } public function getDefianceHealth():int{ var _local1:* = 1; if (((!((char_ref == null))) && ((char_ref is PlayerCharacter)))){ _local1 = char_ref.getEndurance(); }; return (_local1); } public function scaleHeal(_arg1:int, _arg2:int=1):int{ var _local5:*; if (_arg1 <= 0){ return (0); }; var _local3:* = getStat(increasesWith); if (_local3 > 0){ _local5 = (1 + (((_local3 - 1) * 0.05) * increaseRate)); _arg1 = Math.round((_arg1 * _local5)); }; var _local4:int = (_arg1 + Math.round((char_ref.getHealingBonus() / _arg2))); return (_local4); } public function description():String{ return ("Blank skill description"); } public static function getBaseMagicDamage(_arg1:Number):int{ var _local2:* = Math.round(((Weapon.staff_base_damage * 2.2) * _arg1)); return (_local2); } } }//package
Section 487
//SkillBar (SkillBar) package { import flash.events.*; import flash.display.*; public class SkillBar extends Sprite { var icons:Array; var selected_id:int; var sih:SkillIconHighlight; public var slot1:SkillIconEmpty; public var slot2:SkillIconEmpty; public var slot3:SkillIconEmpty; public var slot4:SkillIconEmpty; public var slot5:SkillIconEmpty; public var slot6:SkillIconEmpty; static const max_skills = 6; public function SkillBar(){ icons = new Array(); super(); icons.length = 0; selected_id = 0; sih = new SkillIconHighlight(); addChild(sih); } public function cleanup():void{ var _local1:* = 0; while (_local1 < icons.length) { icons[_local1].cleanup(); icons[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, skillClick); _local1++; }; } public function getSelectedSkill():Skill{ var _local1:* = null; if (selected_id < icons.length){ _local1 = SkillIcon(icons[selected_id]).skill_ref; }; return (_local1); } private function reOrderByPosition():void{ var _local3:*; var _local1:Array = new Array(); var _local2:* = 1; while (_local2 <= 6) { _local3 = 0; while (_local3 < icons.length) { if (icons[_local3].skill_ref.position == _local2){ _local1.push(icons[_local3]); }; _local3++; }; _local2++; }; icons = _local1; } public function addIcon(_arg1:SkillIcon):Boolean{ var _local2:*; var _local3:*; var _local4:SkillIconEmpty; if (icons.length < max_skills){ _local4 = SkillIconEmpty(getChildByName(("slot" + _arg1.skill_ref.position))); if (_local4 == null){ return (false); }; _arg1.x = _local4.x; _arg1.y = _local4.y; icons.push(_arg1); _arg1.setUsable(_arg1.skill_ref.usable()); addChild(_arg1); _arg1.addEventListener(MouseEvent.MOUSE_DOWN, skillClick); reOrderByPosition(); setSelectedSkill(0); return (true); }; return (false); } public function setSelectedSkillByPosition(_arg1:int):void{ var _local2:* = 0; while (_local2 < icons.length) { if (icons[_local2].skill_ref.position == _arg1){ setSelectedSkill(_local2); Battlefield(parent).ValidTargetsForPlayer(icons[_local2].skill_ref); break; }; _local2++; }; } public function setSelectedSkill(_arg1:int):void{ sih.x = icons[_arg1].x; sih.y = icons[_arg1].y; selected_id = _arg1; Battlefield(parent).powerPreview(); } public function incrementSkill(){ var _local1:* = (selected_id + 1); if (_local1 >= icons.length){ _local1 = 0; }; setSelectedSkill(_local1); } public function decrementSkill(){ var _local1:* = (selected_id - 1); if (_local1 < 0){ _local1 = (icons.length - 1); }; setSelectedSkill(_local1); } public function skillClick(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; _local2 = 0; while (_local2 < icons.length) { if (icons[_local2] == SkillIcon(_arg1.currentTarget)){ setSelectedSkill(_local2); Battlefield(parent).ValidTargetsForPlayer(icons[_local2].skill_ref); break; }; _local2++; }; } } }//package
Section 488
//SkillIcon (SkillIcon) package { import flash.events.*; import flash.display.*; public class SkillIcon extends MovieClip { var skill_ref:Skill; var char_ref:PlayerCharacter; var tooltip:SkillTooltip; var tt_title:String; var tt_text:String; private var mousingOver:Boolean;// = false private var mouseOverFrames:int;// = 0 private var mousedOverEvent:MouseEvent; public var bg:MovieClip; public function SkillIcon(){ bg.addEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); bg.addEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); this.addEventListener(Event.ADDED_TO_STAGE, added); this.addEventListener(Event.ENTER_FRAME, onFrame); } public function cleanup():void{ this.removeEventListener(Event.ADDED_TO_STAGE, added); bg.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); bg.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); this.removeEventListener(Event.ENTER_FRAME, onFrame); } function added(_arg1:Event):void{ this.addEventListener(Event.REMOVED_FROM_STAGE, removed); } function removed(_arg1:Event):void{ this.removeEventListener(Event.REMOVED_FROM_STAGE, removed); if (this.tooltip != null){ mouseOutTarget(null); }; } public function setSkill(_arg1:Skill){ if (_arg1 == null){ return; }; this.skill_ref = _arg1; tt_text = skill_ref.description(); tt_title = skill_ref.skillname; this.gotoAndStop(_arg1.iconFrame); if (((!((skill_ref.char_ref == null))) && ((skill_ref.char_ref is PlayerCharacter)))){ this.char_ref = PlayerCharacter(skill_ref.char_ref); }; } public function setOwner(_arg1:PlayerCharacter){ this.char_ref = _arg1; } public function setUsable(_arg1:Boolean):void{ if (_arg1){ bg.gotoAndStop(1); } else { bg.gotoAndStop(2); }; } private function newTooltip(_arg1:MouseEvent):Boolean{ var _local2:String; var _local3:String; var _local4:Boolean; var _local5:Boolean; if (skill_ref != null){ _local4 = false; if (skill_ref.requiresWeapon){ _local2 = "Requires Weapon"; if (char_ref.gear[Equipment.weapon] != null){ _local4 = true; }; } else { if (skill_ref.requiresMelee){ _local2 = "Requires Melee Weapon"; if (((!((char_ref.gear[Equipment.weapon] == null))) && ((char_ref.gear[Equipment.weapon] is MeleeWeapon)))){ _local4 = true; }; } else { if (skill_ref.requiresRanged){ _local2 = "Requires Ranged Weapon"; if (((!((char_ref.gear[Equipment.weapon] == null))) && ((char_ref.gear[Equipment.weapon] is RangedWeapon)))){ _local4 = true; }; } else { if (skill_ref.requiresShield){ _local2 = "Requires Shield"; if (((!((char_ref.gear[Equipment.offhand] == null))) && ((char_ref.gear[Equipment.offhand] is Shield)))){ _local4 = true; }; }; }; }; }; if (skill_ref.increasesWith != Skill.none){ if (skill_ref.increasesWith == Skill.weapon){ _local3 = "Effect increases with Weapon Damage"; }; if (skill_ref.increasesWith == Skill.level){ _local3 = "Effect increases with Level"; }; if (skill_ref.increasesWith == Skill.strength){ _local3 = "Effect increases with Strength"; }; if (skill_ref.increasesWith == Skill.intellect){ _local3 = "Effect increases with Intellect"; }; if (skill_ref.increasesWith == Skill.endurance){ _local3 = "Effect increases with Endurance"; }; if (skill_ref.increasesWith == Skill.dexterity){ _local3 = "Effect increases with Dexterity"; }; }; _local5 = false; if ((((char_ref.power > 0)) && ((char_ref.power >= skill_ref.power_cost)))){ _local5 = true; }; tooltip = new SkillTooltip(tt_title, tt_text, _local2, _local4, _local3, skill_ref.getCostString(), _local5); tooltip.mouseEnabled = false; tooltip.mouseChildren = false; tooltip.name = "tooltip_skill"; tooltip.setForEvent(_arg1); if (stage != null){ stage.addChild(tooltip); return (true); }; return (false); }; return (false); } function mouseOverTarget(_arg1:MouseEvent):void{ mousingOver = true; mouseOverFrames = 0; mousedOverEvent = _arg1; } function mouseOutTarget(_arg1:MouseEvent):void{ if (tooltip != null){ tooltip.fade(); tooltip = null; }; mousingOver = false; mouseOverFrames = 0; } private function onFrame(_arg1:Event):void{ if (mousingOver){ mouseOverFrames++; }; if (mouseOverFrames > Tooltip.delayFrames){ newTooltip(mousedOverEvent); mousingOver = false; mouseOverFrames = 0; }; } } }//package
Section 489
//SkillIconEmpty (SkillIconEmpty) package { import flash.display.*; public dynamic class SkillIconEmpty extends Sprite { } }//package
Section 490
//SkillIconHighlight (SkillIconHighlight) package { import flash.display.*; public dynamic class SkillIconHighlight extends MovieClip { } }//package
Section 491
//SkillsPreview (SkillsPreview) package { import flash.events.*; import flash.display.*; import flash.text.*; public class SkillsPreview extends MovieClip { public var continue_btn:MovieClip; public var class_label:TextField; public var start1:SkillIcon; public var start2:SkillIcon; public var start3:SkillIcon; public var unlock1:SkillIcon; public var unlock2:SkillIcon; public var unlock3:SkillIcon; public var unlock4:SkillIcon; public var unlock5:SkillIcon; public var unlock6:SkillIcon; public var unlock7:SkillIcon; public var unlock8:SkillIcon; public var passive1:PassiveSkillIcon; public var passive2:PassiveSkillIcon; public function SkillsPreview(_arg1:PlayerCharacter=null){ var _local3:SkillIcon; var _local4:String; super(); var _local2:* = 0; if (_arg1 != null){ class_label.text = (_arg1.classname + " Skills"); dm.embolden(class_label); trace(("new SkillsPreview for " + _arg1.charname)); _local2 = 0; while (_local2 < 11) { _local4 = "null"; if (_arg1.skills[_local2] != null){ _local4 = _arg1.skills[_local2].skillname; }; trace(((("p.skills[" + _local2) + "] = ") + _local4)); _local2++; }; _local2 = 0; while (_local2 < 3) { _local3 = SkillIcon(getChildByName(("start" + String((_local2 + 1))))); if (_local3 != null){ _local3.setOwner(_arg1); _local3.setSkill(_arg1.skills[_local2]); }; _local2++; }; _local2 = 3; while (_local2 <= 10) { _local3 = SkillIcon(getChildByName(("unlock" + String((_local2 - 2))))); if (_local3 != null){ _local3.setOwner(_arg1); _local3.setSkill(_arg1.skills[_local2]); }; _local2++; }; }; passive1.updateSkill(_arg1, true); passive2.updateSkill(_arg1, false); continue_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } private function cleanup():void{ continue_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } function clickOkay(_arg1:MouseEvent):void{ continue_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); if (dm.stage != null){ dm.stage.removeChild(this); cleanup(); }; } } }//package
Section 492
//SkillTooltip (SkillTooltip) package { import flash.display.*; import flash.text.*; public class SkillTooltip extends Tooltip { public var tooltip_bg:Sprite; public var title_label:TextField; public var requires_label:TextField; public var increase_label:TextField; public var text_label:TextField; public var power_cost_label:TextField; public function SkillTooltip(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:Boolean=false, _arg5:String="", _arg6:String="", _arg7:Boolean=false){ if (_arg1 == null){ _arg1 = "Blank"; }; if (_arg2 == null){ _arg2 = "Tooltip contents failed to load."; }; title_label.autoSize = TextFieldAutoSize.CENTER; title_label.text = _arg1; dm.embolden(title_label); var _local8:* = title_label.height; title_label.autoSize = TextFieldAutoSize.NONE; if (_local8 == 16){ title_label.height = (_local8 + 5); }; var _local9:* = ((title_label.y + title_label.height) + 4); if (_arg3 != null){ requires_label.y = (_local9 - 3); _local9 = (_local9 + (requires_label.height + 3)); requires_label.text = _arg3; dm.embolden(requires_label); if (_arg4){ requires_label.textColor = white_text; } else { requires_label.textColor = red_text; }; } else { removeChild(requires_label); }; if (_arg5 != null){ increase_label.y = (_local9 - 3); if (_arg3 != null){ increase_label.y = (increase_label.y - 4); }; _local9 = (_local9 + (increase_label.height + 3)); increase_label.text = _arg5; } else { removeChild(increase_label); }; text_label.y = (_local9 + 3); text_label.text = _arg2; text_label.autoSize = TextFieldAutoSize.CENTER; _local9 = ((text_label.y + text_label.height) + 4); if (_arg6 != null){ power_cost_label.y = (_local9 + 6); _local9 = (_local9 + (2 + power_cost_label.height)); power_cost_label.text = _arg6; dm.embolden(power_cost_label); if (_arg7){ power_cost_label.textColor = white_text; } else { power_cost_label.textColor = red_text; }; } else { removeChild(power_cost_label); }; tooltip_bg.height = (_local9 + 15); } } }//package
Section 493
//slash1_sound (slash1_sound) package { import flash.media.*; public dynamic class slash1_sound extends Sound { } }//package
Section 494
//sLichAE (sLichAE) package { public class sLichAE extends Skill { public function sLichAE(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; rangedAttack = true; hitsAllEnemies = true; damage = Math.round((_arg1.damage / 4)); poisonDamage = Math.round((_arg1.damage / 6)); power_cost = 60; skillname = "Poison Cloud"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.poison; } } }//package
Section 495
//sLichStun (sLichStun) package { public class sLichStun extends Skill { public function sLichStun(_arg1:Character){ char_ref = _arg1; if (_arg1.level == 1){ aiCastLimit = 0; } else { aiCastLimit = 2; }; rangedAttack = true; hitsAllEnemies = true; alwaysHits = true; damage = Math.round((_arg1.damage / 4)); stun_percent = 50; power_cost = 75; skillname = "Fear of Death"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.fearDeath; } } }//package
Section 496
//sLightningDrakeAE (sLightningDrakeAE) package { public class sLightningDrakeAE extends Skill { public function sLightningDrakeAE(_arg1:Character){ char_ref = _arg1; aiPriority = 7; damage = Math.round((_arg1.damage * 0.8)); power_cost = 60; hitsAllMeleeRange = true; skillname = "Lightning Arc"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.lightning; } } }//package
Section 497
//sMageAE (sMageAE) package { public class sMageAE extends Skill { public function sMageAE(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; aiCastLimit = 0; magicStrength = 0.7; damage = getBaseMagicDamage(magicStrength); rangedAttack = true; hitsAllEnemies = true; power_cost = 55; iconFrame = 40; skillname = "Electrical Storm"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.lightning; } override public function description():String{ return ((("Magic area attack. Inflicts " + getDamage()) + " damage to all enemies.")); } } }//package
Section 498
//sMageArmor (sMageArmor) package { public class sMageArmor extends Skill { public function sMageArmor(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 25; targetsSelf = true; buff_damageResist = 40; iconFrame = 19; skillname = "Arcane Armor"; verbage = ("summons " + skillname); specialAnimation = PortraitAnimation.armorBuff; } override public function description():String{ return ((("Caster gains an additional " + buff_damageResist) + "% damage resistance for the remainder of the battle.")); } } }//package
Section 499
//sMageAttack (sMageAttack) package { public class sMageAttack extends Skill { public function sMageAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; unlocked = true; damage = 0; addWeaponDamage = true; rangedAttack = true; power_cost = 0; skillname = "Magic Attack"; if ((_arg1 is PlayerCharacter)){ verbage = (("fires a bolt from " + PlayerCharacter(char_ref).genderPossessive()) + " staff"); } else { verbage = "fires a staff bolt"; }; iconFrame = 32; specialAnimation = PortraitAnimation.mageAttack; } override public function description():String{ return ((("Ranged magic attack with equipped weapon. Causes " + getDamage()) + " damage.\n\n[Skill cannot be removed]")); } } }//package
Section 500
//sMageBolt (sMageBolt) package { public class sMageBolt extends Skill { public function sMageBolt(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; magicStrength = 1; damage = getBaseMagicDamage(magicStrength); rangedAttack = true; power_cost = 25; stun_percent = 25; iconFrame = 37; skillname = "Freeze"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.freeze; } override public function description():String{ return ((((("Ranged magic attack for " + getDamage()) + " damage. ") + stun_percent) + "% chance to stun the target.")); } } }//package
Section 501
//sMageDrain (sMageDrain) package { public class sMageDrain extends Skill { public function sMageDrain(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; rangedAttack = true; hitsAllEnemies = true; damage = 0; powerDamage = 20; powerDrain = true; power_cost = 50; iconFrame = 54; skillname = "Power Siphon"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.monsterDrain; } override public function description():String{ return ((("Drains up to " + powerDamage) + " power from each enemy.")); } } }//package
Section 502
//sMageExplosion (sMageExplosion) package { public class sMageExplosion extends Skill { public function sMageExplosion(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; aiTargetsBackRow = true; magicStrength = 0.8; damage = getBaseMagicDamage(magicStrength); rangedAttack = true; power_cost = 35; splashDamageMultiplier = 0.7; splashHitsAllies = true; skillname = "Fireball"; verbage = ("casts " + skillname); iconFrame = 55; specialAnimation = PortraitAnimation.explosion; } override public function description():String{ return ((((("Ranged magic attack for " + getDamage()) + " damage. Characters (including allies) in adjacent squares take ") + Math.round((getDamage() * splashDamageMultiplier))) + " damage.")); } } }//package
Section 503
//sMageInvisibility (sMageInvisibility) package { public class sMageInvisibility extends Skill { public function sMageInvisibility(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; damage = 0; power_cost = 30; targetsFriendlies = true; rangedAttack = true; hidesTarget = true; iconFrame = 16; skillname = "Invisibility"; verbage = ("casts " + skillname); } override public function description():String{ return ("Target may not be directly attacked until their next turn."); } } }//package
Section 504
//sMagePrison (sMagePrison) package { public class sMagePrison extends Skill { public function sMagePrison(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; rangedAttack = true; stun_percent = 100; alwaysHits = true; tempDamageResistance = 40; magicStrength = 0.3; damage = getBaseMagicDamage(magicStrength); power_cost = 30; skillname = "Cosmic Prison"; verbage = ("conjures a " + skillname); iconFrame = 39; suppressStunAnim = true; specialAnimation = PortraitAnimation.cosmicPrison; } override public function description():String{ return ((((("Encase the target in an arcane prison, causing " + getDamage()) + " damage. The target is stunned, but gains ") + tempDamageResistance) + "% damage resistance until their next turn. Does not miss.\n\n(Note: If the stun effect is resisted, the damage resistance bonus still applies)")); } } }//package
Section 505
//sMageSword (sMageSword) package { public class sMageSword extends Skill { public function sMageSword(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 75; iconFrame = 4; requiresMelee = true; addWeaponDamage = true; rangedAttack = true; scaleWeaponDamage = 1; attacksWithAccuracyMod = 0.75; attacksMultipleTimes = 4; skillname = "Ensorcelled Blade"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.playerMultiSlash; } override public function description():String{ return ((((((("Four ranged attacks with equipped melee weapon on any target. (" + getDamage()) + "x") + attacksMultipleTimes) + " damage)\nAttacks are made at ") + Math.round((attacksWithAccuracyMod * 100))) + "% of user's current accuracy.")); } } }//package
Section 506
//sMageThorns (sMageThorns) package { public class sMageThorns extends Skill { public function sMageThorns(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; damage = 0; power_cost = 25; targetsFriendlies = true; rangedAttack = true; buff_damageReflect = 100; iconFrame = 41; skillname = "Flickering Flames"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.fireBuff; } override public function description():String{ return ((("Target reflects " + buff_damageReflect) + "% of damage taken back onto attacker for the remainder of the battle.")); } } }//package
Section 507
//sMageTouch (sMageTouch) package { public class sMageTouch extends Skill { public function sMageTouch(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; magicStrength = 1.35; damage = getBaseMagicDamage(magicStrength); rangedAttack = false; power_cost = 25; iconFrame = 35; skillname = "Incinerate"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.fire; } override public function description():String{ return ((("Close range magic attack. Causes " + getDamage()) + " damage to a single target in melee range.")); } } }//package
Section 508
//Smash (Smash) package { import flash.media.*; public dynamic class Smash extends Sound { } }//package
Section 509
//sMenuQuit (sMenuQuit) package { public class sMenuQuit extends Skill { public function sMenuQuit(_arg1:Character){ increasesWith = none; char_ref = _arg1; iconFrame = 74; skillname = "Quit Battle"; } override public function description():String{ return ("End the current battle and return to the main menu."); } } }//package
Section 510
//sMinotaurLabyrinth (sMinotaurLabyrinth) package { public class sMinotaurLabyrinth extends Skill { public function sMinotaurLabyrinth(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiPriority = 8; damage = 0; power_cost = 20; rangedAttack = true; hitsAllEnemies = true; alwaysHits = true; shufflesEnemies = true; skillname = "Labyrinth"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.confuse; } } }//package
Section 511
//smite_effect (smite_effect) package { import flash.display.*; public dynamic class smite_effect extends MovieClip { public function smite_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.smite); } function frame45(){ this.stop(); } } }//package
Section 512
//sMonsterAttack (sMonsterAttack) package { public class sMonsterAttack extends Skill { public function sMonsterAttack(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; power_cost = 0; skillname = "Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 513
//sMonsterAttackWeapon (sMonsterAttackWeapon) package { public class sMonsterAttackWeapon extends Skill { public function sMonsterAttackWeapon(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; power_cost = 0; skillname = "Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.creatureWeapon; } } }//package
Section 514
//sMonsterCurse (sMonsterCurse) package { public class sMonsterCurse extends Skill { public function sMonsterCurse(_arg1:Character){ char_ref = _arg1; aiCastLimit = 2; rangedAttack = true; damage = 0; power_cost = 25; curse = 0.5; skillname = "Curse"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.curse; } } }//package
Section 515
//sMonsterDoubleAttack (sMonsterDoubleAttack) package { public class sMonsterDoubleAttack extends Skill { public function sMonsterDoubleAttack(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.65)); power_cost = 25; attacksTwoTargets = true; skillname = "Double Attack"; verbage = "attacks savagely"; specialAnimation = PortraitAnimation.creatureWeapon; } } }//package
Section 516
//sMonsterFlightAttack (sMonsterFlightAttack) package { public class sMonsterFlightAttack extends Skill { public function sMonsterFlightAttack(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 0.9)); power_cost = 30; skillname = "Flying Attack"; verbage = "swoops down on the enemy"; specialAnimation = PortraitAnimation.swoopAttack; } } }//package
Section 517
//sMonsterHeal (sMonsterHeal) package { public class sMonsterHeal extends Skill { public function sMonsterHeal(_arg1:Character){ char_ref = _arg1; targetsFriendlies = true; rangedAttack = true; healing = Math.round((_arg1.health_max * 0.6)); power_cost = 40; removesPoison = true; skillname = "Heal"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to one member of your party. Cures poison.")); } } }//package
Section 518
//sMonsterMagicAttack (sMonsterMagicAttack) package { public class sMonsterMagicAttack extends Skill { public function sMonsterMagicAttack(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = _arg1.damage; power_cost = 0; skillname = "Arcane Bolt"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.monsterMagic; } } }//package
Section 519
//sMonsterMagicCold (sMonsterMagicCold) package { public class sMonsterMagicCold extends Skill { public function sMonsterMagicCold(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = _arg1.damage; power_cost = 0; skillname = "Deathly Chill"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.freeze; } } }//package
Section 520
//sMonsterMeleeAE (sMonsterMeleeAE) package { public class sMonsterMeleeAE extends Skill { public function sMonsterMeleeAE(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 0.8)); power_cost = 55; hitsAllMeleeRange = true; skillname = "Hew"; verbage = "hews through the enemy"; specialAnimation = PortraitAnimation.creatureWeapon; } override public function description():String{ return (""); } } }//package
Section 521
//sMonsterPierce (sMonsterPierce) package { public class sMonsterPierce extends Skill { public function sMonsterPierce(_arg1:Character){ char_ref = _arg1; damage = Math.round((char_ref.damage * 0.9)); power_cost = 40; piercesColumn = true; skillname = "Spear Lunge"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.creatureSpear; } override public function description():String{ return (""); } } }//package
Section 522
//sMonsterRangedAttack (sMonsterRangedAttack) package { public class sMonsterRangedAttack extends Skill { public function sMonsterRangedAttack(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 1)); skillname = "Arrow"; rangedAttack = true; power_cost = 20; verbage = ("fires " + skillname); specialAnimation = PortraitAnimation.monsterArrow; } } }//package
Section 523
//sMonsterShadowStrike (sMonsterShadowStrike) package { public class sMonsterShadowStrike extends Skill { public function sMonsterShadowStrike(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 1.1)); power_cost = 60; skillname = "Shadowstrike"; verbage = "strikes from the shadows"; specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 524
//sMonsterStoneForm (sMonsterStoneForm) package { public class sMonsterStoneForm extends Skill { public function sMonsterStoneForm(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiNotUnlessHurt = true; targetsSelf = true; cannotDie = 1; healing = Math.round((0.5 * _arg1.health_max)); power_cost = 50; skillname = "Stone Form"; verbage = ("enters " + skillname); specialAnimation = PortraitAnimation.armorBuff; } } }//package
Section 525
//SneakyScroll (SneakyScroll) package { public class SneakyScroll extends Consumable { public function SneakyScroll(_arg1:int=1){ item_name = "Scroll of Deception"; sneaky = true; item_rarity = Item.blue; icon_frame = 84; } override public function getWorth():int{ return (Math.round((super.getWorth() * 1.5))); } } }//package
Section 526
//sNecroDrain (sNecroDrain) package { public class sNecroDrain extends Skill { public function sNecroDrain(_arg1:Character){ char_ref = _arg1; aiNotUnlessHurt = true; rangedAttack = true; targetsFriendlies = true; damage = _arg1.damage; vampiric_percent = Math.round((200 + (level * 1.5))); powerDamage = 50; powerDrain = true; power_cost = 10; skillname = "Drain Minion"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.monsterDrain; } override public function description():String{ return (""); } } }//package
Section 527
//sNecroSponge (sNecroSponge) package { public class sNecroSponge extends Skill { public function sNecroSponge(_arg1:Character){ char_ref = _arg1; damage = 0; power_cost = 30; targetsFriendlies = true; rangedAttack = true; targetsFriendlyFrontRow = true; makeDamageSponge = true; skillname = "Servitude"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.protectAllies; } override public function description():String{ return (""); } } }//package
Section 528
//sOrcAxeThrow (sOrcAxeThrow) package { public class sOrcAxeThrow extends Skill { public function sOrcAxeThrow(_arg1:Character){ char_ref = _arg1; damage = Math.round((_arg1.damage * 1)); rangedAttack = true; power_cost = 20; skillname = "Axe"; verbage = ("throws " + skillname); specialAnimation = PortraitAnimation.monsterThrown; } } }//package
Section 529
//sOrcSponge (sOrcSponge) package { public class sOrcSponge extends Skill { public function sOrcSponge(_arg1:Character){ char_ref = _arg1; aiCastLimit = 2; damage = 0; power_cost = 50; targetsSelf = true; makeDamageSponge = true; skillname = "Challenge"; verbage = ("issues a " + skillname); specialAnimation = PortraitAnimation.protectAllies; } override public function description():String{ return (""); } } }//package
Section 530
//SoundButton (SoundButton) package { import flash.events.*; import flash.display.*; public class SoundButton extends MovieClip { var sound_enabled:Boolean;// = true public var sound_icon:MovieClip; public var control:VolumeControl; public function SoundButton(){ this.addEventListener(MouseEvent.MOUSE_DOWN, clickedOn); iconTest(); } public function cleanup():void{ this.removeEventListener(MouseEvent.MOUSE_DOWN, clickedOn); removeControl(true); } private function iconTest():void{ this.sound_enabled = (GlobalVolume.volumeSetting > 0); if (sound_enabled){ soundOn(); } else { soundOff(); }; } function clickedOn(_arg1:MouseEvent):void{ if (control != null){ return; }; createControl(); } private function createControl():void{ if (control != null){ removeControl(); }; control = new VolumeControl(this); control.y = (this.y - (control.height - this.height)); control.x = this.x; addEventListener(Event.ENTER_FRAME, controlMouseOut); stage.addChild(control); } function controlMouseOut(_arg1:Event):void{ var _local2:Boolean; if ((((control.mouseX > control.width)) || ((control.mouseX < 0)))){ _local2 = true; }; if ((((control.mouseY > control.height)) || ((control.mouseY < 0)))){ _local2 = true; }; if (_local2){ removeControl(); }; } public function removeControl(_arg1:Boolean=false):void{ if (control == null){ return; }; if (!_arg1){ iconTest(); }; if (stage.contains(control)){ removeEventListener(Event.ENTER_FRAME, controlMouseOut); stage.removeChild(control); control.cleanup(); control = null; }; } private function soundOn(_arg1:Boolean=false):void{ sound_icon.gotoAndStop("on"); } private function soundOff(_arg1:Boolean=false):void{ sound_icon.gotoAndStop("off"); } } }//package
Section 531
//SoundControl (SoundControl) package { import flash.events.*; import flash.media.*; public class SoundControl { var channels:Array; static const equipGeneric = 1; static const equipSword = 2; static const equipAxe = 3; static const equipDagger = 4; static const equipMace = 5; static const equipSpear = 6; static const equipBow = 7; static const equipCrossbow = 8; static const equipShield = 9; static const equipStaff = 10; static const potionSound = 15; static const hideSound = 16; static const destroyItem = 20; static const lootItem = 21; static const battleStart = 40; static const writing = 41; static const pageTurn = 42; static const lightning = 51; static const freeze = 52; static const flames = 53; static const smite = 54; static const powerUp = 56; static const heal = 57; static const buff = 58; static const playerMagicAttack = 60; static const monsterMagicAttack = 61; static const playerArrow = 62; static const monsterArrow = 63; static const playerSlash = 64; static const monsterSlash = 65; static const monsterClaws = 66; static const punch = 67; static const disintegrate = 68; static const thrown = 69; static const whirlwind = 73; static const cosmicPrison = 74; static const poison = 75; static const curse = 76; static const debuff = 77; static const blind = 78; static const web = 80; static const poisonDrake = 81; static const basilisk = 82; static const armorBuff = 90; static const clone = 99; static const summon = 100; static const miss_melee = 110; static const miss_ranged = 111; static const miss_thrown = 112; static const miss_magic = 113; static var volumeSetting = GlobalVolume.volumeFull; public function SoundControl():void{ channels = new Array(); } private function idCheck(_arg1:int):Boolean{ var _local2:SoundEffect; if (_arg1 == playerSlash){ return (true); }; if (_arg1 == monsterSlash){ return (true); }; if (_arg1 == playerArrow){ return (true); }; if (_arg1 == monsterArrow){ return (true); }; for each (_local2 in channels) { if (_local2 == null){ } else { if (_local2.id == _arg1){ if (((!((_local2.channel == null))) && ((_local2.channel.position < 0.5)))){ return (false); }; }; }; }; return (true); } public function play(_arg1:int, _arg2:Number=1, _arg3:Boolean=false):void{ var _local4:Sound; if (_arg1){ _local4 = soundFromConstant(_arg1); playSound(_local4, _arg2, _arg1, _arg3); }; } public function playSound(_arg1:Sound, _arg2:Number=1, _arg3:int=-1, _arg4:Boolean=false):void{ var channel:SoundChannel; var effect:*; var err_txt:*; var err_dlg:ErrorDialog; var fx = _arg1; var vol = _arg2; var id = _arg3; var overrideLimits = _arg4; if (fx == null){ return; }; try { if (((!(overrideLimits)) && (!(idCheck(id))))){ return; }; vol = (vol * volumeSetting); channel = fx.play(0, 1); if (channel != null){ channel.soundTransform = new SoundTransform(vol); channel.addEventListener(Event.SOUND_COMPLETE, finishedSound); effect = new SoundEffect(channel, id); channels.push(effect); }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Play Sound Error: " + error.name) + "\n")); err_txt = (err_txt + (("id: " + id) + "\n")); err_txt = (err_txt + (("fx: " + String(fx)) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; }; } function finishedSound(_arg1:Event):void{ var _local2:int = (channels.length - 1); while (_local2 >= 0) { if (channels[_local2] == null){ } else { if (channels[_local2].channel == _arg1.target){ channels[_local2].channel.removeEventListener(Event.SOUND_COMPLETE, finishedSound); channels.splice(_local2, 1); }; }; _local2--; }; } public function soundFromConstant(_arg1:int):Sound{ var _local2:Sound; switch (_arg1){ case equipGeneric: _local2 = new equip_sound(); break; case equipStaff: _local2 = new equip_staff_sound(); break; case equipSword: case equipDagger: case equipMace: case equipAxe: case equipSpear: _local2 = new equip_sword_sound(); break; case equipBow: case equipCrossbow: _local2 = new equip_bow_sound(); break; case equipShield: _local2 = new equip_shield_sound(); break; case whirlwind: _local2 = new whirlwind_sound(); break; case pageTurn: _local2 = new turn_page_sound(); break; case potionSound: _local2 = new potion_sound(); break; case hideSound: _local2 = new hide3_sound(); break; case destroyItem: _local2 = new destroy_item_sound(); break; case lootItem: _local2 = new coins_sound(); break; case battleStart: _local2 = new battle_start2(); break; case writing: _local2 = new writing_sound(); break; case lightning: _local2 = new lightning_sound(); break; case freeze: _local2 = new freeze_sound(); break; case poison: _local2 = new poison_sound(); break; case flames: _local2 = new flames_sound(); break; case curse: _local2 = new curse_sound(); break; case blind: _local2 = new blind_sound(); break; case armorBuff: _local2 = new armor_buff_sound(); break; case punch: _local2 = new punch_sound(); break; case playerMagicAttack: _local2 = new mage_staff_sound(); break; case monsterMagicAttack: _local2 = new monster_magic_sound(); break; case powerUp: _local2 = new power_up_sound(); break; case playerArrow: case monsterArrow: _local2 = new arrow_fire_sound(); break; case smite: _local2 = new summon1_sound(); break; case clone: case summon: _local2 = new summon2_sound(); break; case web: _local2 = new web_squirt_sound(); break; case playerSlash: case monsterSlash: _local2 = new slash1_sound(); break; case monsterClaws: _local2 = new creature_slash_sound(); break; case heal: _local2 = new heal1_sound(); break; case buff: _local2 = new buff_chant_sound(); break; case debuff: _local2 = new debuff_sound(); break; case cosmicPrison: _local2 = new cosmic_prison_sound(); break; case disintegrate: _local2 = new disintegrate_sound(); break; case thrown: _local2 = new thrown_sound(); break; case basilisk: _local2 = new basilisk_sound(); break; case poisonDrake: _local2 = new poison_drake_sound(); break; case miss_melee: _local2 = new miss_melee_sound(); break; case miss_ranged: _local2 = new miss_ranged_sound(); break; case miss_thrown: _local2 = new miss_thrown_sound(); break; case miss_magic: _local2 = new miss_magic_sound(); break; }; return (_local2); } public function playSoundForSkill(_arg1:Skill, _arg2:Character):void{ if ((((_arg1 == null)) || ((_arg2 == null)))){ return; }; var _local3:int = getSoundForSkill(_arg1, _arg2); if (_local3){ this.play(_local3); }; } public function getSoundForSkill(_arg1:Skill, _arg2:Character):int{ if (_arg1 == null){ return (0); }; if (_arg1.hidesTarget){ return (hideSound); }; if (_arg1.curse){ return (curse); }; if (_arg1.unarmedAttack){ return (punch); }; if ((_arg1 is sBasiliskPetrify)){ return (basilisk); }; if ((_arg1 is sPoisonDrakeAE)){ return (poisonDrake); }; if ((_arg1 is sPoisonDrakeShot)){ return (poisonDrake); }; if ((_arg1 is sConjurorWhirlwind)){ return (whirlwind); }; return (0); } public function playMissSound(_arg1:Skill, _arg2:Character, _arg3:Boolean=false):void{ if ((((_arg1 == null)) || ((_arg2 == null)))){ return; }; var _local4:int = getMissSound(_arg1, _arg2); if (_local4){ this.play(_local4, 1, _arg3); }; } public function getMissSound(_arg1:Skill, _arg2:Character):int{ var sound_id:int; var anim:int; var w:*; var err_txt:*; var err_dlg:ErrorDialog; var sk = _arg1; var user = _arg2; sound_id = -1; try { if (sk.hidesTarget){ var _local4:* = hideSound; //unresolved jump 0; return (_local4); }; anim = sk.specialAnimation; if ((((user is PlayerCharacter)) && (sk.showWeaponAnimation))){ w = PlayerCharacter(user).gear[Equipment.weapon]; if (w != null){ if ((w is MeleeWeapon)){ anim = PortraitAnimation.playerSlash; } else { if ((w is MageWeapon)){ anim = PortraitAnimation.mageAttack; } else { if ((w is RangedWeapon)){ anim = PortraitAnimation.playerArrow; }; }; }; }; }; if (sk.unarmedAttack){ anim = PortraitAnimation.playerSlash; }; switch (anim){ case PortraitAnimation.creatureSlash: case PortraitAnimation.creatureSpear: case PortraitAnimation.creatureWeapon: case PortraitAnimation.playerSlash: case PortraitAnimation.playerMultiSlash: case PortraitAnimation.playerPowerSlash: sound_id = miss_melee; break; case PortraitAnimation.monsterThrown: sound_id = miss_thrown; break; case PortraitAnimation.playerArrow: case PortraitAnimation.monsterArrow: case PortraitAnimation.cultistArrow: sound_id = miss_ranged; break; }; if (sound_id == -1){ sound_id = miss_magic; }; } catch(error:Error) { if (DungeonMain.KONGREGATE){ err_txt = "An error has occurred. Please submit a bug report with the following information:"; err_txt = (err_txt + "\n\n"); err_txt = (err_txt + (("Miss Sound Error: " + error.name) + "\n")); err_txt = (err_txt + (("id: " + sound_id) + "\n")); err_txt = (err_txt + (("sk: " + String(sk.skillname)) + "\n")); err_txt = (err_txt + (("user: " + String(user.charname)) + "\n")); err_txt = (err_txt + ((("[" + error.errorID) + "] ") + error.getStackTrace())); err_dlg = new ErrorDialog("Error!", err_txt); dm.stage.addChild(err_dlg); }; } finally { var _local6:* = sound_id; //unresolved jump 2; return (_local6); }; } } }//package
Section 532
//SoundEffect (SoundEffect) package { import flash.media.*; public class SoundEffect { public var id:int; public var channel:SoundChannel; public function SoundEffect(_arg1:SoundChannel, _arg2:int):void{ this.channel = _arg1; this.id = _arg2; } } }//package
Section 533
//SoundIcon (SoundIcon) package { import flash.display.*; public dynamic class SoundIcon extends MovieClip { } }//package
Section 534
//sPassTurn (sPassTurn) package { public class sPassTurn extends Skill { public function sPassTurn(_arg1:Character){ char_ref = _arg1; increasesWith = none; iconFrame = 24; skillname = "Pass Turn"; } override public function description():String{ return ("This character takes no action this turn. Power regeneration rate is increased for this round.\n\n[Shortcut: space bar]"); } } }//package
Section 535
//SpecialEncounterIcon (SpecialEncounterIcon) package { import flash.display.*; public dynamic class SpecialEncounterIcon extends MovieClip { } }//package
Section 536
//SpecialShrine (SpecialShrine) package { import flash.events.*; import flash.display.*; import flash.utils.*; public class SpecialShrine extends MovieClip { var room:DungeonRoom; var used:Boolean; private var _type:int;// = 2 public static const EQUIPMENT_BUFF = 2; public static const POTION_BUFF = 3; public static const ENCHANTMENT = 4; public function SpecialShrine(_arg1:int=-1){ addFrameScript(0, frame1); used = false; this.gotoAndStop(1); if ((((_arg1 >= EQUIPMENT_BUFF)) && ((_arg1 <= ENCHANTMENT)))){ _type = _arg1; } else { _type = dmf.randomNum(EQUIPMENT_BUFF, ENCHANTMENT); }; } public function get type():int{ return (_type); } public function fade():void{ used = true; this.gotoAndPlay(2); var _local1:Timer = new Timer(500, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, onFadeComplete); _local1.start(); } function onFadeComplete(_arg1:TimerEvent):void{ if (parent != null){ parent.removeChild(this); }; } function frame1(){ this.gotoAndStop(1); } } }//package
Section 537
//SpeechBubble (SpeechBubble) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class SpeechBubble extends MovieClip { private const FADE_FRAMES = 10; public var dialogue:TextField; public var bg:Sprite; private var fadingIn:Boolean;// = false private var fadingOut:Boolean;// = false private var timer:Timer; public function SpeechBubble(_arg1:String=""):void{ setText(_arg1); this.alpha = 0; addEventListener(Event.ADDED, added); addEventListener(Event.ENTER_FRAME, enter_frame); addEventListener(MouseEvent.MOUSE_OVER, mouse_over); } public function setText(_arg1:String):void{ dialogue.autoSize = TextFieldAutoSize.CENTER; dialogue.text = _arg1; dm.embolden(dialogue); bg.height = (dialogue.height + 13); } public function added(_arg1:Event):void{ removeEventListener(Event.ADDED, added); fadingIn = true; timer = new Timer(6000, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); timer.start(); } function timerComplete(_arg1:TimerEvent):void{ fade(); } public function enter_frame(_arg1:Event):void{ var _local2:Number; if (fadingIn){ _local2 = (this.alpha + (1 / FADE_FRAMES)); this.alpha = Math.min(_local2, 1); if (this.alpha == 1){ fadingIn = false; removeEventListener(Event.ENTER_FRAME, enter_frame); }; } else { if (fadingOut){ _local2 = (this.alpha - (1 / FADE_FRAMES)); this.alpha = Math.max(_local2, 0); this.y = (this.y + 20); if (this.alpha == 0){ fadingOut = false; removeEventListener(Event.ENTER_FRAME, enter_frame); removeEventListener(MouseEvent.MOUSE_OVER, mouse_over); if (parent != null){ parent.removeChild(this); }; }; }; }; } public function fade():void{ timer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); fadingIn = false; fadingOut = true; addEventListener(Event.ENTER_FRAME, enter_frame); } private function mouse_over(_arg1:MouseEvent):void{ if (((fadingIn) || (fadingOut))){ return; }; fade(); } } }//package
Section 538
//sPoisonDrakeAE (sPoisonDrakeAE) package { public class sPoisonDrakeAE extends Skill { public function sPoisonDrakeAE(_arg1:Character){ char_ref = _arg1; skillname = "Venomous Cloud"; hitsAllMeleeRange = true; power_cost = 55; damage = Math.round((_arg1.damage * 0.5)); poisonDamage = Math.round((_arg1.damage * 0.5)); damageAccuracy = 25; verbage = ("sprays a " + skillname); specialAnimation = PortraitAnimation.poison; } } }//package
Section 539
//sPoisonDrakeShot (sPoisonDrakeShot) package { public class sPoisonDrakeShot extends Skill { public function sPoisonDrakeShot(_arg1:Character){ char_ref = _arg1; rangedAttack = true; power_cost = 30; damage = Math.round((_arg1.damage * 0.7)); poisonDamage = Math.round((_arg1.damage * 0.5)); skillname = "Venom"; verbage = ("spits " + skillname); specialAnimation = PortraitAnimation.poison; } } }//package
Section 540
//sRangedAttack (sRangedAttack) package { public class sRangedAttack extends Skill { public function sRangedAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; unlocked = true; damage = 0; power_cost = 0; addWeaponDamage = true; rangedAttack = true; requiresRanged = true; iconFrame = 15; skillname = "Ranged Attack"; verbage = "shoots"; specialAnimation = PortraitAnimation.playerArrow; } override public function description():String{ return ((("Ranged attack with equipped weapon. Causes " + getDamage()) + " damage.\n\n[Skill cannot be removed]")); } } }//package
Section 541
//sRangerAE (sRangerAE) package { public class sRangerAE extends Skill { public function sRangerAE(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; aiCastLimit = 0; damage = 0; power_cost = 60; rangedAttack = true; requiresRanged = true; hitsAllEnemies = true; addWeaponDamage = true; scaleWeaponDamage = 0.5; attacksMultipleTimes = 2; attacksWithAccuracyMod = 0.7; iconFrame = 29; skillname = "Hail of Arrows"; verbage = "unleashes a hail of arrows"; specialAnimation = PortraitAnimation.playerArrow; } override public function description():String{ return ((((((("Perform two ranged attacks for " + Math.round((scaleWeaponDamage * 100))) + "% weapon damage each (") + getDamage()) + " damage) on every enemy. Attacks are made at ") + Math.round((attacksWithAccuracyMod * 100))) + "% of user's current accuracy.")); } } }//package
Section 542
//sRangerFocus (sRangerFocus) package { public class sRangerFocus extends Skill { public function sRangerFocus(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; targetsSelf = true; power_cost = 0; powerRestore = 25; iconFrame = 46; skillname = "Focus"; verbage = "finds inner focus"; specialAnimation = PortraitAnimation.gainPower; } override public function description():String{ return ((("Recover " + powerRestore) + " power.")); } } }//package
Section 543
//sRangerHaste (sRangerHaste) package { public class sRangerHaste extends Skill { public function sRangerHaste(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; alwaysHits = true; buff_quickness = 20; power_cost = 30; iconFrame = 57; skillname = "Swiftness"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.quicknessBuff; } override public function description():String{ return ((("All members of the party gain +" + buff_quickness) + " to Quickness for the remainder of the battle.")); } } }//package
Section 544
//sRangerHeal (sRangerHeal) package { public class sRangerHeal extends Skill { public function sRangerHeal(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; nonCombat = true; targetsFriendlies = true; rangedAttack = true; removesPoison = true; healing = 20; power_cost = 30; iconFrame = 9; skillname = "Healing Lore"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Restore " + scaleHeal(healing)) + " health to one member of your party. Cures poison.")); } } }//package
Section 545
//sRangerHunt (sRangerHunt) package { public class sRangerHunt extends Skill { public function sRangerHunt(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.weapon; addWeaponDamage = true; usesWeaponRange = true; requiresWeapon = true; damage = 0; scaleWeaponDamage = 1.1; damageBonusVsCreatureType = MonsterCharacter.creature; damageBonusVsCreatureModifier = 2; lethality = 10; power_cost = 30; iconFrame = 34; skillname = "Hunter's Prowess"; verbage = ("uses " + skillname); showWeaponAnimation = true; } override public function description():String{ return ((("Weapon attack for slightly increased (" + getDamage()) + ") damage, with +10% chance to kill target outright. Deals double damage to deep creatures.")); } } }//package
Section 546
//sRangerMultiMelee (sRangerMultiMelee) package { public class sRangerMultiMelee extends Skill { public function sRangerMultiMelee(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.weapon; damage = 0; power_cost = 55; iconFrame = 4; requiresMelee = true; addWeaponDamage = true; scaleWeaponDamage = 1; attacksMultipleTimes = 3; attacksWithAccuracyMod = 0.6; ignoresArmor = true; skillname = "Force of Nature"; verbage = ("is a " + skillname); specialAnimation = PortraitAnimation.playerMultiSlash; } override public function description():String{ return ((((((("Three melee weapon attacks on a single target at " + Math.round((attacksWithAccuracyMod * 100))) + "% of user's current accuracy. (") + getDamage()) + "x") + attacksMultipleTimes) + " damage.) Ignores armor.")); } } }//package
Section 547
//sRangerPenetrate (sRangerPenetrate) package { public class sRangerPenetrate extends Skill { public function sRangerPenetrate(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.weapon; damage = 0; power_cost = 30; scaleWeaponDamage = 1; addWeaponDamage = true; rangedAttack = true; requiresRanged = true; piercesColumn = true; iconFrame = 33; skillname = "Pierce"; verbage = "fires a piercing shot"; showWeaponAnimation = true; } override public function description():String{ return ((((("Ranged attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + "). Hits up to two targets in a vertical line.")); } } }//package
Section 548
//sRangerPoison (sRangerPoison) package { public class sRangerPoison extends Skill { public function sRangerPoison(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; increaseRate = 0.7; damage = 0; power_cost = 30; poisonDamage = 4; requiresRanged = true; addWeaponDamage = true; rangedAttack = true; iconFrame = 3; skillname = "Envenomed Arrow"; verbage = ("fires an " + skillname); showWeaponAnimation = true; specialAnimation = PortraitAnimation.poison; } override public function description():String{ return ((((("Ranged weapon attack (" + getDamage()) + " damage). Applies ") + scalePoison()) + " poison damage.")); } } }//package
Section 549
//sRangerRegen (sRangerRegen) package { public class sRangerRegen extends Skill { public function sRangerRegen(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.intellect; targetsFriendlies = true; rangedAttack = true; removesPoison = true; buff_resistPoison = 100; buff_healthRegen = 10; power_cost = 35; iconFrame = 50; skillname = "Nature's Balm"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.regenBuff; } override public function description():String{ return ((("Grant target immunity to poison and +" + scaleHeal(buff_healthRegen)) + " health regeneration per turn for the remainder of the battle.")); } } }//package
Section 550
//sRangerStun (sRangerStun) package { public class sRangerStun extends Skill { public function sRangerStun(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; rangedAttack = true; requiresRanged = true; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 0.75; stun_percent = 100; power_cost = 40; iconFrame = 30; skillname = "Pin"; verbage = "pins the enemy"; showWeaponAnimation = true; } override public function description():String{ return ((((("Ranged attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + ") which stuns the target.")); } } }//package
Section 551
//sRetreat (sRetreat) package { public class sRetreat extends Skill { public function sRetreat(_arg1:Character){ increasesWith = none; char_ref = _arg1; iconFrame = 23; skillname = "Retreat"; } override public function description():String{ return ("Retreat this character from the battle. Takes one full turn.\n\n[Shortcut: r]"); } } }//package
Section 552
//sRetreatAll (sRetreatAll) package { public class sRetreatAll extends Skill { public function sRetreatAll(_arg1:Character){ char_ref = _arg1; increasesWith = none; iconFrame = 25; skillname = "Full Retreat"; } override public function description():String{ return ("Retreat all characters from the battle. Takes one full turn."); } } }//package
Section 553
//sRogueBlind (sRogueBlind) package { public class sRogueBlind extends Skill { public function sRogueBlind(_arg1:Character){ char_ref = _arg1; increasesWith = none; damage = 0; power_cost = 40; damageAccuracy = 50; stun_percent = 50; alwaysHits = true; iconFrame = 11; skillname = "Flash Powder"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.blind; } override public function description():String{ return ((((("Reduce target in melee range's accuracy by " + damageAccuracy) + "% for the remainder of the battle. ") + stun_percent) + "% chance to cause stun. Does not miss.")); } } }//package
Section 554
//sRogueCripple (sRogueCripple) package { public class sRogueCripple extends Skill { public function sRogueCripple(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 25; crippling = 100; iconFrame = 53; addWeaponDamage = true; usesWeaponRange = true; requiresWeapon = true; nonLethal = true; scaleWeaponDamage = 0.5; skillname = "Cripple"; verbage = "launches a crippling attack"; showWeaponAnimation = true; specialAnimation = PortraitAnimation.debuff; } override public function description():String{ return ((((("Special weapon attack for a maximum of " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + "). This attack will not kill the target. If the attack hits, it reduces the target's Quickness to zero for the remainder of the battle, forcing them to act last in the turn order.")); } } }//package
Section 555
//sRogueCritical (sRogueCritical) package { public class sRogueCritical extends Skill { public function sRogueCritical(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 30; addWeaponDamage = true; usesWeaponRange = true; requiresWeapon = true; ignoresArmor = true; scaleWeaponDamage = 1.1; iconFrame = 12; skillname = "Pierce Defenses"; verbage = "finds a weak spot"; showWeaponAnimation = true; } override public function description():String{ return ((((("Weapon attack for " + Math.round((scaleWeaponDamage * 100))) + "% weapon damage (") + getDamage()) + "). Ignores target's armor.")); } } }//package
Section 556
//sRogueFinisher (sRogueFinisher) package { public class sRogueFinisher extends Skill { public function sRogueFinisher(_arg1:Character){ char_ref = _arg1; increasesWith = none; damage = 1; requiresWeapon = true; targetsStunned = true; usesWeaponRange = true; lethality = 100; power_cost = 30; iconFrame = 14; skillname = "Coup de Grâce"; verbage = ("delivers the " + skillname); showWeaponAnimation = true; } override public function description():String{ return ("Instantly kill a stunned enemy. Target must be in weapon range."); } } }//package
Section 557
//sRogueHide (sRogueHide) package { public class sRogueHide extends Skill { public function sRogueHide(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 0; damage = 0; power_cost = 20; targetsSelf = true; hidesTarget = true; targetDamageMod = 2; iconFrame = 16; skillname = "Hide"; verbage = "hides"; } override public function description():String{ return ((((("User may not be target of attacks until " + char_ref.genderPossessive()) + " next turn.\n\nIn addition, user will inflict ") + Math.round((targetDamageMod * 100))) + "% of normal damage on their next attack.")); } } }//package
Section 558
//sRogueLuck (sRogueLuck) package { public class sRogueLuck extends Skill { public function sRogueLuck(_arg1:Character){ char_ref = _arg1; increasesWith = none; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; alwaysHits = true; buff_accuracy = 30; power_cost = 20; iconFrame = 22; skillname = "Thief's Luck"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((("All members of the party gain +" + buff_accuracy) + " to accuracy for the remainder of the battle.")); } } }//package
Section 559
//sRogueOpening (sRogueOpening) package { public class sRogueOpening extends Skill { public function sRogueOpening(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; aiCastLimit = 0; damage = 0; power_cost = 40; iconFrame = 51; requiresMelee = true; addWeaponDamage = true; scaleWeaponDamage = 0.75; allyBonusAttack = true; skillname = "Create Opening"; verbage = "creates an opening"; showWeaponAnimation = true; } override public function description():String{ return ((("Melee attack for 75% weapon damage (" + getDamage()) + "). If it hits, a random ally performs a bonus weapon attack on the target.")); } } }//package
Section 560
//sRoguePoison (sRoguePoison) package { public class sRoguePoison extends Skill { public function sRoguePoison(_arg1:Character){ char_ref = _arg1; increasesWith = intellect; increaseRate = 0.7; damage = 0; power_cost = 20; poisonDamage = 4; iconFrame = 3; requiresWeapon = true; addWeaponDamage = true; usesWeaponRange = true; skillname = "Poison"; verbage = ("applies " + skillname); showWeaponAnimation = true; } override public function description():String{ return ((((("Weapon attack (" + getDamage()) + " damage). Applies ") + scalePoison()) + " poison damage.")); } } }//package
Section 561
//sRogueSap (sRogueSap) package { public class sRogueSap extends Skill { public function sRogueSap(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 40; addWeaponDamage = true; requiresMelee = true; scaleWeaponDamage = 0.5; powerDamage = 75; iconFrame = 52; skillname = "Sap Strength"; verbage = "saps the enemy's strength"; showWeaponAnimation = true; specialAnimation = PortraitAnimation.powerDrain; } override public function description():String{ return ((((((("Melee attack for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + "). Reduces enemy power by ") + powerDamage) + ".")); } } }//package
Section 562
//sRogueSneakAttack (sRogueSneakAttack) package { public class sRogueSneakAttack extends Skill { public function sRogueSneakAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; power_cost = 30; iconFrame = 8; requiresMelee = true; addWeaponDamage = true; rangedAttack = true; scaleWeaponDamage = 1.2; skillname = "Sneak Attack"; verbage = ("performs a " + skillname); specialAnimation = PortraitAnimation.playerSlash; } override public function description():String{ return ((((("Melee weapon attack on any target for " + (scaleWeaponDamage * 100)) + "% weapon damage (") + getDamage()) + ").")); } } }//package
Section 563
//sRuneProtection (sRuneProtection) package { public class sRuneProtection extends Skill { public function sRuneProtection(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_damageResist = 15; skillname = "Rune of Protection"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.runeProtection; } override public function description():String{ return ((("Caster gains an additional " + buff_damageResist) + "% damage resistance for the remainder of the battle.")); } } }//package
Section 564
//sRuneStrength (sRuneStrength) package { public class sRuneStrength extends Skill { public function sRuneStrength(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiPriority = 5; aiCastLimit = 1; damage = 0; power_cost = 40; targetsFriendlies = true; hitsAllFriendlies = true; buff_damage = 1.2; skillname = "Rune of Strength"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.runeStrength; } override public function description():String{ return ((("Caster gains an additional " + buff_damageResist) + "% damage resistance for the remainder of the battle.")); } } }//package
Section 565
//sShadowCure (sShadowCure) package { public class sShadowCure extends Skill { public function sShadowCure(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; targetsFriendlies = true; removesCurse = true; killsUser = true; alwaysHits = true; rangedAttack = true; damage = 0; power_cost = 100; iconFrame = 75; skillname = "Balance Karma"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.curse; } override public function description():String{ return ("Sacrifice this shadow to remove a curse from a friendly target."); } } }//package
Section 566
//sShadowCurse (sShadowCurse) package { public class sShadowCurse extends Skill { public function sShadowCurse(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; aiCastLimit = 0; killsUser = true; alwaysHits = true; rangedAttack = true; damage = 0; power_cost = 100; curse = 0.5; iconFrame = 14; skillname = "Hex"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.curse; } override public function description():String{ return ((("Sacrifice this shadow to place a curse(" + Math.round((curse * 100))) + "%) on an enemy target. Does not miss.")); } } }//package
Section 567
//sSpriteRestoreHealth (sSpriteRestoreHealth) package { public class sSpriteRestoreHealth extends Skill { public function sSpriteRestoreHealth(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.level; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; power_cost = 50; removesPoison = false; healing = Math.round((_arg1.health_max / 3)); iconFrame = 10; skillname = "Bloodfont"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Restore " + healing) + " health to each member of the party.")); } } }//package
Section 568
//sSpriteRestorePower (sSpriteRestorePower) package { public class sSpriteRestorePower extends Skill { public function sSpriteRestorePower(_arg1:Character){ char_ref = _arg1; increasesWith = Skill.none; targetsFriendlies = true; hitsAllFriendlies = true; doesNotEffectSelf = true; rangedAttack = true; power_cost = 50; powerRestore = 15; iconFrame = 46; skillname = "Manafont"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.gainPower; } override public function description():String{ return ((("Restore " + powerRestore) + " power to every other member of the party.")); } } }//package
Section 569
//sSummonAttack (sSummonAttack) package { public class sSummonAttack extends Skill { public function sSummonAttack(_arg1:Character){ char_ref = _arg1; increasesWith = none; active = true; damage = _arg1.damage; power_cost = 0; skillname = "Attack"; verbage = "attacks"; iconFrame = 17; specialAnimation = PortraitAnimation.summonSlash; } override public function description():String{ return ((("Melee attack for " + getDamage()) + " damage.")); } } }//package
Section 570
//sSummonVoidstalker (sSummonVoidstalker) package { public class sSummonVoidstalker extends Skill { public function sSummonVoidstalker(_arg1:Character){ char_ref = _arg1; aiPriority = 9; targetsEmpty = true; summonsCreatureClass = new mVoidstalker(char_ref.level); power_cost = 60; skillname = "Void Portal"; verbage = ("casts " + skillname); } } }//package
Section 571
//StairsGlow (StairsGlow) package { import flash.display.*; public dynamic class StairsGlow extends MovieClip { } }//package
Section 572
//StatIncreaseButton (StatIncreaseButton) package { import flash.events.*; import flash.display.*; public class StatIncreaseButton extends MovieClip { public function StatIncreaseButton(){ addEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); addEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); this.gotoAndStop(2); } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); removeEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); } function mouseOverTarget(_arg1:MouseEvent):void{ if (this.currentFrame == 1){ this.gotoAndStop(3); }; } function mouseOutTarget(_arg1:MouseEvent):void{ if (this.currentFrame == 3){ this.gotoAndStop(1); }; } } }//package
Section 573
//StatNumber (StatNumber) package { import flash.events.*; import flash.display.*; import flash.text.*; public class StatNumber extends Sprite { var tooltip:MiscTooltip; var tt_title:String; var tt_text:String; public var nlabel:TextField; private var mousingOver:Boolean;// = false private var mouseOverFrames:int;// = 0 private var mousedOverEvent:MouseEvent; public function StatNumber(){ nlabel.addEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); nlabel.addEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); addEventListener(Event.ENTER_FRAME, onFrame); } public function cleanup():void{ nlabel.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverTarget); nlabel.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutTarget); mouseOutTarget(null); removeEventListener(Event.ENTER_FRAME, onFrame); } private function newTooltip(_arg1:MouseEvent):Boolean{ tooltip = new MiscTooltip(tt_title, tt_text); tooltip.mouseEnabled = false; tooltip.mouseChildren = false; tooltip.name = "tooltip_stats"; tooltip.setForEvent(_arg1); stage.addChild(tooltip); return (true); } function mouseOverTarget(_arg1:MouseEvent):void{ mousingOver = true; mouseOverFrames = 0; mousedOverEvent = _arg1; } function mouseOutTarget(_arg1:MouseEvent):void{ if (tooltip != null){ tooltip.fade(); tooltip = null; }; mousingOver = false; mouseOverFrames = 0; } private function onFrame(_arg1:Event):void{ if (mousingOver){ mouseOverFrames++; }; if (mouseOverFrames > Tooltip.delayFrames){ newTooltip(mousedOverEvent); mousingOver = false; mouseOverFrames = 0; }; } } }//package
Section 574
//SteelEdgedWeapon (SteelEdgedWeapon) package { public class SteelEdgedWeapon extends MeleeWeapon { override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Sharp", 1.1]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; if (prefixes[_local1][0] == "Sharp"){ base_damage_mod = 10; return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } } }//package
Section 575
//stormbringers_loop01 (stormbringers_loop01) package { import flash.media.*; public dynamic class stormbringers_loop01 extends Sound { } }//package
Section 576
//sTransformAetherguard (sTransformAetherguard) package { public class sTransformAetherguard extends Skill { public function sTransformAetherguard(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; aiPriority = 10; aiAllowSuicide = true; damage = _arg1.health_max; targetsSelf = true; transformCreatureClass = new mAetherguard(char_ref.level); power_cost = 100; skillname = "Breach Aether"; verbage = ("casts " + skillname); } } }//package
Section 577
//sTrollHowl (sTrollHowl) package { public class sTrollHowl extends Skill { public function sTrollHowl(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; hitsAllEnemies = true; rangedAttack = true; power_cost = 50; alwaysHits = true; powerDamage = 25; stun_percent = 50; skillname = "Howl of Rage"; verbage = ("lets loose a " + skillname); specialAnimation = PortraitAnimation.powerDrain; } override public function description():String{ return (""); } } }//package
Section 578
//summon_effect (summon_effect) package { import flash.display.*; public dynamic class summon_effect extends MovieClip { public function summon_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.summon); } function frame45(){ this.stop(); } } }//package
Section 579
//summon_slash (summon_slash) package { import flash.display.*; public dynamic class summon_slash extends MovieClip { public function summon_slash(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.monsterClaws); } function frame45(){ this.stop(); } } }//package
Section 580
//summon_whirlwind (summon_whirlwind) package { import flash.display.*; public dynamic class summon_whirlwind extends MovieClip { public function summon_whirlwind(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.summon); } function frame45(){ this.stop(); } } }//package
Section 581
//summon1_sound (summon1_sound) package { import flash.media.*; public dynamic class summon1_sound extends Sound { } }//package
Section 582
//summon2_sound (summon2_sound) package { import flash.media.*; public dynamic class summon2_sound extends Sound { } }//package
Section 583
//sUnarmedAttack (sUnarmedAttack) package { public class sUnarmedAttack extends Skill { public function sUnarmedAttack(_arg1:Character){ char_ref = _arg1; increasesWith = strength; unlocked = true; unarmedAttack = true; damage = 0; power_cost = 0; iconFrame = 18; skillname = "Unarmed Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.playerUnarmed; } override public function description():String{ return ((("Unarmed melee attack. Inflicts " + PlayerCharacter(char_ref).getUnarmedDamage()) + " damage.\n\n[Skill cannot be removed]")); } } }//package
Section 584
//sUnsummon (sUnsummon) package { public class sUnsummon extends Skill { public function sUnsummon(_arg1:Character){ increasesWith = none; char_ref = _arg1; iconFrame = 73; skillname = "Unsummon"; } override public function description():String{ return ("Remove this summoned creature from the battlefield.\n\n[Shortcut: r]"); } } }//package
Section 585
//SurvivalPrep (SurvivalPrep) package { import flash.events.*; import flash.display.*; public class SurvivalPrep extends Sprite { public var manageButton:SimpleButton; public var shopButton:SimpleButton; public var beginButton:SimpleButton; public var optionsButton:OptionsBookButton; private var shop:Shop; public function SurvivalPrep():void{ manageButton.addEventListener(MouseEvent.MOUSE_DOWN, clickManage); shopButton.addEventListener(MouseEvent.MOUSE_DOWN, clickShop); beginButton.addEventListener(MouseEvent.MOUSE_DOWN, clickBegin); } public function cleanup():void{ if (shop != null){ shop.cleanup(); shop = null; }; optionsButton.cleanup(); } private function clickManage(_arg1:MouseEvent):void{ dm.main.goToInventory(); } private function clickShop(_arg1:MouseEvent):void{ if (shop == null){ shop = new Shop(); shop.name = "shop"; }; dm.main.addChild(shop); } private function clickBegin(_arg1:MouseEvent):void{ cleanup(); dm.main.beginSurvivalMode(); } } }//package
Section 586
//sVampireAttack (sVampireAttack) package { public class sVampireAttack extends Skill { public function sVampireAttack(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; rangedAttack = true; power_cost = 30; hasPortraitAnimation = true; portraitAnimationFrame = 5; skillname = "Vampire Bite"; verbage = "strikes from the shadows"; specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 587
//sVoidCannon (sVoidCannon) package { public class sVoidCannon extends Skill { public function sVoidCannon(_arg1:Character){ char_ref = _arg1; rangedAttack = true; damage = Math.round((_arg1.damage * 1)); power_cost = 75; ignoresArmor = true; piercesColumn = true; skillname = "Void Cannon"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.disintegrate; } } }//package
Section 588
//sWargolemHarden (sWargolemHarden) package { public class sWargolemHarden extends Skill { public function sWargolemHarden(_arg1:Character){ char_ref = _arg1; increasesWith = none; damage = 0; power_cost = 100; targetsSelf = true; invulnerable = 1; iconFrame = 19; skillname = "Harden"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.armorBuff; } override public function description():String{ return ("Wargolem becomes immune to damage until next turn."); } } }//package
Section 589
//sWarlordBuff (sWarlordBuff) package { public class sWarlordBuff extends Skill { public function sWarlordBuff(_arg1:Character){ char_ref = _arg1; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; power_cost = 25; buff_quickness = 20; buff_damageResist = 10; skillname = "Battle Plan"; verbage = ("implements " + skillname); specialAnimation = PortraitAnimation.buff; } override public function description():String{ return (""); } } }//package
Section 590
//sWarlordFocus (sWarlordFocus) package { public class sWarlordFocus extends Skill { public function sWarlordFocus(_arg1:Character){ char_ref = _arg1; aiNotUnlessLowPower = true; aiCastLimit = 1; targetsSelf = true; power_cost = 0; powerRestore = 75; skillname = "Survey"; verbage = "surveys the battlefield"; specialAnimation = PortraitAnimation.gainPower; } override public function description():String{ return ((("Recover " + powerRestore) + " power.")); } } }//package
Section 591
//sWarlordRevive (sWarlordRevive) package { public class sWarlordRevive extends Skill { public function sWarlordRevive(_arg1:Character){ char_ref = _arg1; aiCastLimit = 2; targetsFriendlies = true; rangedAttack = true; healing = char_ref.health_max; power_cost = 70; removesPoison = true; resurrects = true; skillname = "Reinforce"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.revive; } override public function description():String{ return ((("Revives fallen party member with " + scaleHeal(healing)) + " health.")); } } }//package
Section 592
//sWarriorAdrenaline (sWarriorAdrenaline) package { public class sWarriorAdrenaline extends Skill { public function sWarriorAdrenaline(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 1; targetsSelf = true; power_cost = 25; buff_resistStun = 100; buff_damage = 1.3; iconFrame = 48; skillname = "Adrenaline"; verbage = "feels a burst of adrenaline"; specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((("User gains immunity to Stun effects and " + Math.round(((buff_damage - 1) * 100))) + "% bonus damage for the remainder of the battle.")); } } }//package
Section 593
//sWarriorAE (sWarriorAE) package { public class sWarriorAE extends Skill { public function sWarriorAE(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; requiresMelee = true; scaleWeaponDamage = 1; power_cost = 60; hitsAllMeleeRange = true; iconFrame = 5; skillname = "Cleave"; verbage = "cleaves through the enemy"; specialAnimation = PortraitAnimation.playerSlash; } override public function description():String{ return ((("Perform a melee weapon attack (" + getDamage()) + " damage) on all targets in melee range.")); } } }//package
Section 594
//sWarriorBloodlust (sWarriorBloodlust) package { public class sWarriorBloodlust extends Skill { public function sWarriorBloodlust(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 1.1; power_cost = 30; requiresMelee = true; gainPowerFromKill = 50; iconFrame = 36; skillname = "Bloodlust"; verbage = ("is filled with " + skillname); showWeaponAnimation = true; } override public function description():String{ return ((((((("Melee attack for " + Math.round((scaleWeaponDamage * 100))) + "% weapon damage (") + getDamage()) + "). If this attack kills the target, the attacker gains ") + gainPowerFromKill) + " power.")); } } }//package
Section 595
//sWarriorDefiance (sWarriorDefiance) package { public class sWarriorDefiance extends Skill { public function sWarriorDefiance(_arg1:Character){ char_ref = _arg1; increasesWith = endurance; aiCastLimit = 0; damage = 0; power_cost = 30; targetsSelf = true; cannotDie = 1; iconFrame = 6; skillname = "Defiance"; verbage = "shouts in defiance!"; specialAnimation = PortraitAnimation.defiance; } override public function description():String{ return ((((("User may not be reduced below " + getDefianceHealth()) + " health until ") + char_ref.genderPossessive()) + " next turn.")); } } }//package
Section 596
//sWarriorExecute (sWarriorExecute) package { public class sWarriorExecute extends Skill { public function sWarriorExecute(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; aiCastLimit = 0; damage = 0; addWeaponDamage = true; requiresMelee = true; costsRemainingPower = true; addsPowerToLethality = true; power_cost = 0; iconFrame = 14; skillname = "Execute"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.playerPowerSlash; } override public function description():String{ return ((("Melee weapon attack (" + getDamage()) + " damage). The character's remaining power is added as percentage chance of killing the target outright.")); } } }//package
Section 597
//sWarriorHeal (sWarriorHeal) package { public class sWarriorHeal extends Skill { public function sWarriorHeal(_arg1:Character){ char_ref = _arg1; increasesWith = endurance; increaseRate = 1.5; nonCombat = true; targetsSelf = true; removesPoison = false; healing = 20; power_cost = 40; iconFrame = 9; skillname = "Resolve"; verbage = "finds the strength to continue"; specialAnimation = PortraitAnimation.heal; } override public function description():String{ return ((("Character recovers " + scaleHeal(healing)) + " health.")); } } }//package
Section 598
//sWarriorInspire (sWarriorInspire) package { public class sWarriorInspire extends Skill { public function sWarriorInspire(_arg1:Character){ char_ref = _arg1; increasesWith = none; aiCastLimit = 1; targetsFriendlies = true; hitsAllFriendlies = true; rangedAttack = true; power_cost = 15; buff_damage = 1.2; iconFrame = 27; skillname = "Inspire"; verbage = "inspires the party"; specialAnimation = PortraitAnimation.buff; } override public function description():String{ return ((("All party members' damage is increased by " + Math.round(((buff_damage - 1) * 100))) + "% for the remainder of the battle.")); } } }//package
Section 599
//sWarriorPowerAttack (sWarriorPowerAttack) package { public class sWarriorPowerAttack extends Skill { public function sWarriorPowerAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; damage = 0; addWeaponDamage = true; scaleWeaponDamage = 1.3; power_cost = 40; requiresMelee = true; iconFrame = 4; skillname = "Power Attack"; verbage = ("performs a " + skillname); specialAnimation = PortraitAnimation.playerPowerSlash; } override public function description():String{ return ((("Melee attack for 130% weapon damage (" + getDamage()) + ")")); } } }//package
Section 600
//sWarriorShield (sWarriorShield) package { public class sWarriorShield extends Skill { public function sWarriorShield(_arg1:Character){ char_ref = _arg1; increasesWith = none; damage = 0; power_cost = 60; targetsSelf = true; requiresShield = true; targetsFriendlyFrontRow = true; makeDamageSponge = true; tempDamageResistance = 25; iconFrame = 19; skillname = "Shield Wall"; verbage = ("uses " + skillname); specialAnimation = PortraitAnimation.protectAllies; } override public function description():String{ return ((("User receives +" + tempDamageResistance) + "% damage resistance and is sole target of enemy attacks until his next turn. Other party members may still take damage from area attacks. Can only be used in the front row of the party formation.")); } } }//package
Section 601
//sWarriorSpeedAttack (sWarriorSpeedAttack) package { public class sWarriorSpeedAttack extends Skill { public function sWarriorSpeedAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; aiCastLimit = 0; damage = 0; addWeaponDamage = true; power_cost = 75; requiresMelee = true; extraSpeedAttacks = 2; iconFrame = 49; skillname = "Overwhelm"; verbage = "overwhelms the enemy"; specialAnimation = PortraitAnimation.playerMultiSlash; } override public function description():String{ return ((("Melee weapon attack (" + getDamage()) + " damage). If the warrior has higher Quickness than the target, warrior performs two bonus weapon attacks on the same target.")); } } }//package
Section 602
//sWeaponAttack (sWeaponAttack) package { public class sWeaponAttack extends Skill { public function sWeaponAttack(_arg1:Character){ char_ref = _arg1; increasesWith = weapon; unlocked = true; damage = 0; addWeaponDamage = true; power_cost = 0; skillname = "Melee Attack"; requiresMelee = true; verbage = "attacks"; iconFrame = 17; specialAnimation = PortraitAnimation.playerSlash; } override public function description():String{ return ((("Melee attack with equipped weapon. Inflicts " + getDamage()) + " damage. \n\n[Skill cannot be removed]")); } } }//package
Section 603
//sWither (sWither) package { public class sWither extends Skill { public function sWither(_arg1:Character):void{ char_ref = _arg1; increasesWith = Skill.none; damage = 0; rangedAttack = true; power_cost = 30; cancelPowerRegen = 3; cancelHealthRegen = 3; skillname = "Wither"; verbage = ("casts " + skillname); specialAnimation = PortraitAnimation.debuff; } } }//package
Section 604
//sZombieAE (sZombieAE) package { public class sZombieAE extends Skill { public function sZombieAE(_arg1:Character){ char_ref = _arg1; skillname = "Noxious Cloud"; hitsAllMeleeRange = true; power_cost = 65; damage = Math.round((_arg1.damage / 4)); poisonDamage = Math.round((_arg1.damage / 4)); damageAccuracy = 25; verbage = ("emits a " + skillname); specialAnimation = PortraitAnimation.poison; } } }//package
Section 605
//sZombieAttack (sZombieAttack) package { public class sZombieAttack extends Skill { public function sZombieAttack(_arg1:Character){ char_ref = _arg1; damage = _arg1.damage; powerDamage = 10; power_cost = 0; skillname = "Attack"; verbage = "attacks"; specialAnimation = PortraitAnimation.creatureSlash; } } }//package
Section 606
//tab_flash (tab_flash) package { import flash.display.*; public dynamic class tab_flash extends MovieClip { } }//package
Section 607
//TeleportTransition (TeleportTransition) package { import flash.display.*; public class TeleportTransition extends MovieClip { private const stopFrame = 15; private var ready:Boolean;// = false private var oldChild:DisplayObjectContainer; private var newChild:DisplayObjectContainer; public function TeleportTransition(_arg1:DisplayObjectContainer=null, _arg2:DisplayObjectContainer=null):void{ addFrameScript(14, frame15, 15, frame16, 40, frame41); this.ready = false; oldChild = _arg1; newChild = _arg2; } public function setReady():void{ this.ready = true; if (this.currentFrame == stopFrame){ this.gotoAndPlay("continue"); }; } public function beginContinue():void{ var _local1:*; if (this.ready){ _local1 = oldChild.parent; if (_local1 != null){ _local1.removeChild(oldChild); _local1.addChild(newChild); }; if ((newChild is Shop)){ Shop(newChild).init(); }; }; } public function remove():void{ if (parent != null){ parent.removeChild(this); }; } function frame15(){ } function frame16(){ this.beginContinue(); } function frame41(){ this.stop(); this.remove(); } } }//package
Section 608
//ThinButtonBG (ThinButtonBG) package { import flash.events.*; import flash.display.*; public class ThinButtonBG extends MovieClip { public function ThinButtonBG(){ this.gotoAndStop(1); this.addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true); this.addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true); } function added(_arg1:Event):void{ this.addEventListener(MouseEvent.MOUSE_OVER, mouseOn); this.addEventListener(MouseEvent.MOUSE_MOVE, mouseOn); this.addEventListener(MouseEvent.MOUSE_OUT, mouseOff); } function removed(_arg1:Event):void{ this.removeEventListener(MouseEvent.MOUSE_OVER, mouseOn); this.removeEventListener(MouseEvent.MOUSE_MOVE, mouseOn); this.removeEventListener(MouseEvent.MOUSE_OUT, mouseOff); } function mouseOn(_arg1:MouseEvent):void{ this.gotoAndStop(2); } function mouseOff(_arg1:MouseEvent):void{ this.gotoAndStop(1); } } }//package
Section 609
//thrown_sound (thrown_sound) package { import flash.media.*; public dynamic class thrown_sound extends Sound { } }//package
Section 610
//TitleMusic (TitleMusic) package { import flash.media.*; public class TitleMusic extends Music { public function TitleMusic(_arg1:Boolean=false, _arg2:Boolean=false):void{ var _local3:int; super(); if (_arg2){ _local3 = 6000; } else { _local3 = 2000; }; var _local4:* = new frozen_wastelands_loop02(); channel = _local4.play(0, 99999); if (channel == null){ return; }; active = true; if (_arg1){ channel.soundTransform = new SoundTransform(0); }; if (_arg1){ this.fadeIn(_local3); } else { this.setVolume(volumeSetting); }; } } }//package
Section 611
//TitleScreen (TitleScreen) package { import flash.events.*; import flash.display.*; import flash.text.*; public class TitleScreen extends MovieClip { public var continue_button:SimpleButton; public var credits_button:SimpleButton; public var options_button:SimpleButton; public var cover:MovieClip; public var logoLine:MovieClip; public var versionText:TextField; public var buttonHintText:TextField; private var closing:Boolean;// = false private var opening:Boolean;// = false public function TitleScreen():void{ addFrameScript(9, frame10, 39, frame40); init(); this.gotoAndPlay(1); mouseEnabled = false; mouseChildren = false; } private function init():void{ continue_button = cover.continue_button; options_button = cover.options_button; credits_button = cover.credits_button; if (!continue_button.hasEventListener(MouseEvent.MOUSE_DOWN)){ continue_button.addEventListener(MouseEvent.MOUSE_DOWN, continueClick); }; if (!continue_button.hasEventListener(MouseEvent.MOUSE_OVER)){ continue_button.addEventListener(MouseEvent.MOUSE_OVER, continueMouseOver); }; if (!continue_button.hasEventListener(MouseEvent.MOUSE_OUT)){ continue_button.addEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); }; if (!credits_button.hasEventListener(MouseEvent.MOUSE_DOWN)){ credits_button.addEventListener(MouseEvent.MOUSE_DOWN, creditsClick); }; if (!credits_button.hasEventListener(MouseEvent.MOUSE_OVER)){ credits_button.addEventListener(MouseEvent.MOUSE_OVER, creditsMouseOver); }; if (!credits_button.hasEventListener(MouseEvent.MOUSE_OUT)){ credits_button.addEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); }; if (!options_button.hasEventListener(MouseEvent.MOUSE_DOWN)){ options_button.addEventListener(MouseEvent.MOUSE_DOWN, optionsClick); }; if (!options_button.hasEventListener(MouseEvent.MOUSE_OVER)){ options_button.addEventListener(MouseEvent.MOUSE_OVER, optionsMouseOver); }; if (!options_button.hasEventListener(MouseEvent.MOUSE_OUT)){ options_button.addEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); }; logoLine.playMoreGamesText.visible = false; logoLine.playMoreGamesText.mouseEnabled = false; logoLine.sponsorButton.visible = false; logoLine.armorButton.visible = false; logoLine.biclopsButton.visible = false; if (DungeonMain.ARMORGAMES){ logoLine.armorButton.visible = true; } else { if (DungeonMain.ANDKON){ logoLine.biclopsButton.visible = true; } else { if (DungeonMain.KONGREGATE){ logoLine.playMoreGamesText.visible = false; logoLine.sponsorButton.visible = true; logoLine.sponsorButton.x = 110; logoLine.biclopsButton.visible = true; } else { logoLine.playMoreGamesText.visible = true; logoLine.sponsorButton.visible = true; }; }; }; if (!logoLine.sponsorButton.hasEventListener(MouseEvent.MOUSE_DOWN)){ logoLine.sponsorButton.addEventListener(MouseEvent.MOUSE_DOWN, sponsorClick); }; if (!logoLine.armorButton.hasEventListener(MouseEvent.MOUSE_DOWN)){ logoLine.armorButton.addEventListener(MouseEvent.MOUSE_DOWN, sponsorClick); }; if (!logoLine.biclopsButton.hasEventListener(MouseEvent.MOUSE_DOWN)){ logoLine.biclopsButton.addEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); }; if (!this.hasEventListener(Event.ENTER_FRAME)){ this.addEventListener(Event.ENTER_FRAME, onFrame); }; var _local1:String = ("v" + String(DungeonMain.GAME_VERSION)); if (DungeonMain.KONGREGATE){ _local1 = (_local1 + "k"); } else { if (DungeonMain.ARMORGAMES){ _local1 = (_local1 + "a"); }; }; if (DungeonMain.BETA){ _local1 = (_local1 + "\nBETA"); } else { if (DungeonMain.debug){ _local1 = (_local1 + "\nDEBUG"); }; }; if (versionText != null){ versionText.text = _local1; dmf.embolden(versionText); }; clearButtonHint(); } private function continueMouseOver(_arg1:MouseEvent):void{ buttonHintText.text = "Play Game"; } private function creditsMouseOver(_arg1:MouseEvent):void{ buttonHintText.text = "Credits"; } private function optionsMouseOver(_arg1:MouseEvent):void{ buttonHintText.text = "Options"; } private function buttonMouseOut(_arg1:MouseEvent):void{ clearButtonHint(); } private function clearButtonHint():void{ buttonHintText.text = ""; } function creditsClick(_arg1:MouseEvent):void{ trace("creditsClick"); addChild(new CreditsScreen()); } function optionsClick(_arg1:MouseEvent):void{ trace("optionsClick"); addChild(new OptionsScreen()); } public function continueClick(_arg1:MouseEvent):void{ clearButtonHint(); cleanup(); DungeonMain(parent).loadGameMenu(); opening = true; this.gotoAndPlay("open"); } public function animationFinished():void{ this.removeEventListener(Event.ENTER_FRAME, onFrame); if (parent != null){ parent.removeChild(this); }; cleanup(); } private function cleanup():void{ continue_button.removeEventListener(MouseEvent.MOUSE_DOWN, continueClick); continue_button.removeEventListener(MouseEvent.MOUSE_OVER, continueMouseOver); continue_button.removeEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); credits_button.removeEventListener(MouseEvent.MOUSE_DOWN, creditsClick); credits_button.removeEventListener(MouseEvent.MOUSE_OVER, creditsMouseOver); credits_button.removeEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); options_button.removeEventListener(MouseEvent.MOUSE_DOWN, optionsClick); options_button.removeEventListener(MouseEvent.MOUSE_OVER, optionsMouseOver); options_button.removeEventListener(MouseEvent.MOUSE_OUT, buttonMouseOut); logoLine.sponsorButton.removeEventListener(MouseEvent.MOUSE_DOWN, sponsorClick); logoLine.armorButton.removeEventListener(MouseEvent.MOUSE_DOWN, sponsorClick); logoLine.biclopsButton.removeEventListener(MouseEvent.MOUSE_DOWN, biclopsClick); logoLine.muteButton.cleanup(); } public function biclopsClick(_arg1:MouseEvent):void{ dm.link("http://www.monstrumgames.com"); } public function sponsorClick(_arg1:MouseEvent):void{ if (DungeonMain.ARMORGAMES){ dm.link(Links.ARMORGAMES); } else { dm.link(Links.KONG_HOME); }; } public function closeCover(_arg1:MouseEvent=null):void{ mouseEnabled = false; mouseChildren = false; closing = true; this.gotoAndStop(this.totalFrames); init(); } private function onFrame(_arg1:Event):void{ if (closing){ this.gotoAndStop((this.currentFrame - 1)); if (currentFrame == 10){ trace("hit frame 10, stopping"); closing = false; init(); mouseEnabled = true; mouseChildren = true; dm.main.removeDungeon(); dm.main.removeInventory(); }; } else { if (opening){ if (this.currentFrame == this.totalFrames){ animationFinished(); }; }; }; } function frame10(){ this.stop(); this.mouseEnabled = true; this.mouseChildren = true; } function frame40(){ this.stop(); this.animationFinished(); } } }//package
Section 612
//Tooltip (Tooltip) package { import flash.events.*; import flash.display.*; import flash.geom.*; public class Tooltip extends Sprite { const grey_text = 0xCCCCCC; const green_text = 0x66FF00; const blue_text = 26367; const purple_text = 0x9900FF; const red_text = 0xCC0000; const white_text = 0xFFFFFF; private var fadeIn:Boolean;// = false private var fadeOut:Boolean;// = false private var fadeCount:int;// = 0 static const FADE_IN_FRAMES = 5; static const DELAY_NONE:uint = 0; static const DELAY_SHORT:uint = 1; static const DELAY_MEDIUM:uint = 2; static const DELAY_LONG:uint = 4; public function Tooltip():void{ addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true); addEventListener(Event.ENTER_FRAME, onFrame, false, 0, true); } public function get realWidth():int{ return (this.width); } public function get realHeight():int{ return (this.height); } private function added(_arg1:Event):void{ fadeIn = true; this.alpha = 0; fadeCount = 0; } public function fade():void{ fadeIn = false; fadeOut = true; fadeCount = 0; } private function onFrame(_arg1:Event):void{ if (fadeOut){ this.alpha = (this.alpha - ((1 / FADE_IN_FRAMES) * fadeCount)); fadeCount++; if ((((this.alpha <= 0)) || ((fadeCount > FADE_IN_FRAMES)))){ fadeOut = false; if (parent != null){ parent.removeChild(this); }; }; } else { if (fadeIn){ this.alpha = (this.alpha + ((1 / FADE_IN_FRAMES) * fadeCount)); fadeCount++; if (this.alpha >= 1){ fadeCount = 0; fadeIn = false; }; }; }; } public function setForEvent(_arg1:MouseEvent):void{ if (_arg1 == null){ trace("setForEvent: e == null"); return; }; var _local2:int = _arg1.target.mouseX; var _local3:int = _arg1.target.mouseY; var _local4:Point = _arg1.target.localToGlobal(new Point(_local2, _local3)); var _local5:int = _local4.x; var _local6:int = _local4.y; var _local7:* = 5; if (((_local4.x + this.realWidth) + _local7) > DungeonMain.APP_WIDTH){ _local5 = (_local5 + (DungeonMain.APP_WIDTH - ((_local4.x + this.realWidth) + _local7))); }; if (((_local4.y + this.realHeight) + _local7) > DungeonMain.APP_HEIGHT){ _local6 = (_local6 + (DungeonMain.APP_HEIGHT - ((_local4.y + this.realHeight) + _local7))); }; this.x = Math.floor(_local5); this.y = Math.floor(_local6); } static function get delayFrames():int{ if (DungeonMain.tooltipDelay == DELAY_NONE){ return (0); }; if (DungeonMain.tooltipDelay == DELAY_SHORT){ return (5); }; if (DungeonMain.tooltipDelay == DELAY_MEDIUM){ return (15); }; if (DungeonMain.tooltipDelay == DELAY_LONG){ return (25); }; return (0); } } }//package
Section 613
//TooltipSelectorMenu (TooltipSelectorMenu) package { import flash.events.*; import flash.display.*; import flash.text.*; public class TooltipSelectorMenu extends MovieClip { public var off:TextField; public var med:TextField; public var low:TextField; public var long:TextField; public function TooltipSelectorMenu():void{ long.addEventListener(MouseEvent.MOUSE_DOWN, clickLong); med.addEventListener(MouseEvent.MOUSE_DOWN, clickMed); low.addEventListener(MouseEvent.MOUSE_DOWN, clickLow); off.addEventListener(MouseEvent.MOUSE_DOWN, clickOff); setFrame(); } public function cleanup():void{ long.removeEventListener(MouseEvent.MOUSE_DOWN, clickLong); med.removeEventListener(MouseEvent.MOUSE_DOWN, clickMed); low.removeEventListener(MouseEvent.MOUSE_DOWN, clickLow); off.removeEventListener(MouseEvent.MOUSE_DOWN, clickOff); } public function setFrame():void{ if (DungeonMain.tooltipDelay == Tooltip.DELAY_NONE){ this.gotoAndStop("off"); } else { if (DungeonMain.tooltipDelay == Tooltip.DELAY_SHORT){ this.gotoAndStop("low"); } else { if (DungeonMain.tooltipDelay == Tooltip.DELAY_MEDIUM){ this.gotoAndStop("med"); } else { if (DungeonMain.tooltipDelay == Tooltip.DELAY_LONG){ this.gotoAndStop("long"); }; }; }; }; } function clickOff(_arg1:MouseEvent):void{ this.gotoAndStop("off"); DungeonMain.tooltipDelay = Tooltip.DELAY_NONE; } function clickLow(_arg1:MouseEvent):void{ this.gotoAndStop("low"); DungeonMain.tooltipDelay = Tooltip.DELAY_SHORT; } function clickMed(_arg1:MouseEvent):void{ this.gotoAndStop("med"); DungeonMain.tooltipDelay = Tooltip.DELAY_MEDIUM; } function clickLong(_arg1:MouseEvent):void{ this.gotoAndStop("long"); DungeonMain.tooltipDelay = Tooltip.DELAY_LONG; } } }//package
Section 614
//transform_effect (transform_effect) package { import flash.display.*; public dynamic class transform_effect extends MovieClip { public function transform_effect(){ addFrameScript(0, frame1, 14, frame15, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.summon); } function frame15(){ if (((!((this.parent == null))) && ((this.parent is CharacterPortrait)))){ CharacterPortrait(this.parent).update(); }; } function frame45(){ this.stop(); } } }//package
Section 615
//TreasureCategoryTake (TreasureCategoryTake) package { import flash.events.*; import flash.display.*; public class TreasureCategoryTake extends MovieClip { public var take:Boolean; public function TreasureCategoryTake():void{ take = true; addEventListener(MouseEvent.MOUSE_DOWN, clicked); } public function cleanup():void{ removeEventListener(MouseEvent.MOUSE_DOWN, clicked); } function clicked(_arg1:MouseEvent):void{ take = !(take); if (take){ this.gotoAndStop(1); } else { this.gotoAndStop(2); }; TreasureReport(parent).takeSettingsChange(TreasureCategoryTake(_arg1.currentTarget)); } } }//package
Section 616
//TreasureChest (TreasureChest) package { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class TreasureChest extends MovieClip { var loot:Array; var chest_level;// = 1 var looted:Boolean;// = false var hordeLoot:Boolean;// = false static const POTION_CHANCE = 20; public function TreasureChest(_arg1:Party=null, _arg2:int=1, _arg3:int=0, _arg4=false, _arg5:Boolean=false){ var _local6:Boolean; var _local7:Item; loot = new Array(); super(); addFrameScript(59, frame60, 74, frame75); chest_level = _arg2; hordeLoot = _arg5; if (_arg4){ _local6 = false; while (((!(_local6)) && (!((_arg1 == null))))) { _local7 = getItem(_arg2, Item.purple); if (testItemSuitable(_local7, _arg1)){ loot.push(_local7); _local6 = true; }; }; }; GenerateItems(_arg1, _arg3); } private function GenerateItems(_arg1:Party, _arg2:int){ var _local6:int; var _local7:int; var _local3:* = 0; var _local4:* = 0; var _local5:Item; if (!_arg2){ _arg2 = dmf.randomNum(1, 4); }; while (loot.length < _arg2) { _local5 = getItem(chest_level, -1, false, hordeLoot); if (testItemSuitable(_local5, _arg1)){ loot.push(_local5); }; }; if (dmf.randomNum(0, 99) < POTION_CHANCE){ _local6 = dmf.randomNum(1, 2); _local7 = 0; while (_local7 < _local6) { _local5 = getItem(chest_level, -1, true); loot.push(_local5); _local7++; }; }; } public function fade():void{ looted = true; this.gotoAndPlay(61); var _local1:Timer = new Timer(500, 1); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, onFadeComplete); _local1.start(); } function onFadeComplete(_arg1:TimerEvent):void{ if (parent != null){ parent.removeChild(this); }; } function frame60(){ this.gotoAndPlay(1); } function frame75(){ this.stop(); } private static function GetItemTypes(_arg1:int, _arg2:int=0, _arg3:Boolean=false, _arg4:Boolean=false):Array{ var _local5:Array = new Array(); if (((_arg3) || ((((_arg2 == -1)) && ((dmf.randomNum(0, 99) < POTION_CHANCE)))))){ _local5.push(new PotionHealthSmall(_arg1)); _local5.push(new PotionHealthSmall(_arg1)); _local5.push(new PotionHealthSmall(_arg1)); _local5.push(new PotionPowerSmall(_arg1)); _local5.push(new PotionPowerSmall(_arg1)); _local5.push(new PotionPowerSmall(_arg1)); _local5.push(new PotionRejuveSmall(_arg1)); _local5.push(new PotionRejuveSmall(_arg1)); _local5.push(new PotionReviveWeak(_arg1)); _local5.push(new PotionReviveWeak(_arg1)); _local5.push(new PotionHealth(_arg1)); _local5.push(new PotionPower(_arg1)); _local5.push(new PotionRejuve(_arg1)); _local5.push(new PotionRevive(_arg1)); _local5.push(new PotionPoisonResist(_arg1)); _local5.push(new PotionShield(_arg1)); _local5.push(new PotionQuickness(_arg1)); if (_arg4){ _local5.push(new SneakyScroll()); _local5.push(new SneakyScroll()); }; _local5.push(new Enchantment(_arg1)); _local5.push(new Enchantment(_arg1)); return (_local5); }; _local5.push(new iDagger(_arg1, _arg2)); _local5.push(new iDagger(_arg1, _arg2)); _local5.push(new iSword(_arg1, _arg2)); _local5.push(new iSword(_arg1, _arg2)); _local5.push(new iAxe(_arg1, _arg2)); _local5.push(new iSpear(_arg1, _arg2)); _local5.push(new iMace(_arg1, _arg2)); _local5.push(new iMace(_arg1, _arg2)); _local5.push(new iStaff(_arg1, _arg2)); _local5.push(new iStaff(_arg1, _arg2)); _local5.push(new iBow(_arg1, _arg2)); _local5.push(new iBow(_arg1, _arg2)); _local5.push(new iCrossbow(_arg1, _arg2)); _local5.push(new iPlateHelmet(_arg1, _arg2)); _local5.push(new iPlateGloves(_arg1, _arg2)); _local5.push(new iPlateGreaves(_arg1, _arg2)); _local5.push(new iPlateBoots(_arg1, _arg2)); _local5.push(new iPlateBreastplate(_arg1, _arg2)); _local5.push(new iLeatherHat(_arg1, _arg2)); _local5.push(new iLeatherGloves(_arg1, _arg2)); _local5.push(new iLeatherLegs(_arg1, _arg2)); _local5.push(new iLeatherBoots(_arg1, _arg2)); _local5.push(new iLeatherChest(_arg1, _arg2)); _local5.push(new iClothHat(_arg1, _arg2)); _local5.push(new iClothGloves(_arg1, _arg2)); _local5.push(new iClothLegs(_arg1, _arg2)); _local5.push(new iClothShoes(_arg1, _arg2)); _local5.push(new iClothRobe(_arg1, _arg2)); var _local6:* = 0; while (_local6 < 2) { _local5.push(new iRing(_arg1, _arg2)); _local5.push(new iCloak(_arg1, _arg2)); _local6++; }; _local5.push(new iQuiver(_arg1, _arg2)); _local5.push(new iParryingDagger(_arg1, _arg2)); _local5.push(new iShieldBuckler(_arg1, _arg2)); _local5.push(new iShieldTower(_arg1, _arg2)); _local5.push(new iCenser(_arg1, _arg2)); return (_local5); } public static function getItem(_arg1:int=-1, _arg2:int=-1, _arg3:Boolean=false, _arg4:Boolean=false):Item{ var _local5:Array; _local5 = GetItemTypes(_arg1, _arg2, _arg3, _arg4); var _local6:* = dmf.randomNum(0, _local5.length); return (_local5[_local6]); } public static function testItemSuitable(_arg1:Item, _arg2:Party):Boolean{ var _local3:int; var _local4:*; if (_arg1 == null){ return (false); }; if (_arg2 != null){ _local3 = 0; _local4 = 0; while (_local4 < _arg2.members.length) { if (_arg2.members[_local4].itemUsable(_arg1)){ _local3++; }; _local4++; }; if (_local3 > 0){ return (true); }; return (false); }; return (false); } } }//package
Section 617
//TreasureReport (TreasureReport) package { import flash.events.*; import flash.display.*; import flash.text.*; public class TreasureReport extends MovieClip { const icon_gap:int = 4; var chest:TreasureChest; var tooltipController:ItemTooltipController; var icons:Array; public var bg:MovieClip; public var takeDisabler:Sprite; public var take_btn:MovieClip; public var discard_btn:MovieClip; public var settings_btn:MovieClip; public var selected_count_label:TextField; public var armor_lbl:TextField; public var weapons_lbl:TextField; public var consumables_lbl:TextField; private var comparisons:Array; public function TreasureReport(_arg1:String="chest"){ icons = new Array(); super(); tooltipController = new ItemTooltipController(); settings_btn.addEventListener(MouseEvent.MOUSE_DOWN, settingsClick); this.gotoAndStop(_arg1); } public function cleanup():void{ settings_btn.removeEventListener(MouseEvent.MOUSE_DOWN, settingsClick); removeComparisons(); var _local1:* = 0; while (_local1 < icons.length) { icons[_local1].removeEventListener(MouseEvent.MOUSE_OVER, overIcon); icons[_local1].removeEventListener(MouseEvent.MOUSE_OUT, outIcon); icons[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, clickedIcon); icons[_local1].cleanup(); _local1++; }; } private function settingsClick(_arg1:MouseEvent):void{ var _local2:LootSettings = new LootSettings(); addChild(_local2); } public function addItemRef(_arg1:Item):int{ var _local4:*; if (_arg1 == null){ return (-1); }; var _local2:* = 0; var _local3:* = 0; while (_local3 < Party.MAX_OVERFLOW) { if (icons[_local3] == null){ _local4 = new InventoryIcon(_arg1, tooltipController); icons.push(_local4); return (_local3); }; _local3++; }; return (-1); } public function drawIcons():void{ var _local1:Array = new Array(); var _local2:Array = new Array(); var _local3:Array = new Array(); var _local4:* = 0; while (_local4 < icons.length) { if (icons[_local4] == null){ } else { if (icons[_local4].item_ref == null){ } else { if ((icons[_local4].item_ref is Weapon)){ _local2.push(icons[_local4]); } else { if ((icons[_local4].item_ref is Equipment)){ _local3.push(icons[_local4]); } else { _local1.push(icons[_local4]); }; }; icons[_local4].addEventListener(MouseEvent.MOUSE_DOWN, clickedIcon); icons[_local4].addEventListener(MouseEvent.MOUSE_OVER, overIcon); icons[_local4].addEventListener(MouseEvent.MOUSE_OUT, outIcon); }; }; _local4++; }; var _local5:* = 0; var _local6:* = 0; var _local7:* = 18; var _local8:* = 54; var _local9:* = (consumables_lbl.y + _local7); var _local10:* = (bg.x + 30); removeChild(consumables_lbl); removeChild(weapons_lbl); removeChild(armor_lbl); _local4 = 0; while (_local4 < _local1.length) { _local5 = Math.floor((_local4 / 12)); _local6 = (_local4 % 12); _local1[_local4].x = (_local10 + (_local6 * (_local1[_local4].width + icon_gap))); _local1[_local4].y = (_local9 + (_local5 * (_local1[_local4].height + icon_gap))); addChild(_local1[_local4]); _local4++; }; if (_local1.length){ _local9 = (_local9 + _local8); addChild(consumables_lbl); }; weapons_lbl.y = (_local9 - _local7); _local4 = 0; while (_local4 < _local2.length) { _local5 = Math.floor((_local4 / 12)); _local6 = (_local4 % 12); _local2[_local4].x = (_local10 + (_local6 * (_local2[_local4].width + icon_gap))); _local2[_local4].y = (_local9 + (_local5 * (_local2[_local4].height + icon_gap))); addChild(_local2[_local4]); _local4++; }; if (_local2.length){ _local9 = (_local9 + _local8); addChild(weapons_lbl); }; armor_lbl.y = (_local9 - _local7); _local4 = 0; while (_local4 < _local3.length) { _local5 = Math.floor((_local4 / 12)); _local6 = (_local4 % 12); _local3[_local4].x = (_local10 + (_local6 * (_local3[_local4].width + icon_gap))); _local3[_local4].y = (_local9 + (_local5 * (_local3[_local4].height + icon_gap))); addChild(_local3[_local4]); _local4++; }; if (_local3.length){ addChild(armor_lbl); }; updateSettings(); } public function takeSettingsChange(_arg1:TreasureCategoryTake):void{ } function clickedIcon(_arg1:MouseEvent):void{ var _local2:InventoryIcon = InventoryIcon(_arg1.currentTarget); _local2.taking = !(_local2.taking); if (_local2.taking){ _local2.alpha = 1; } else { setUnselected(_local2, true); }; updateSelectedCount(); } private function updateSelectedCount():void{ var _local1:int; var _local2:* = 0; while (_local2 < icons.length) { if (icons[_local2].taking){ _local1++; }; _local2++; }; selected_count_label.text = (((String(_local1) + "/") + String(icons.length)) + " selected"); if (_local1){ takeDisabler.alpha = 0; takeDisabler.mouseEnabled = false; } else { takeDisabler.alpha = 1; takeDisabler.mouseEnabled = true; }; } public function updateSettings():void{ var _local2:InventoryIcon; var _local3:Item; var _local4:int; var _local5:Boolean; var _local1:Party = dm.main.pc_party; for each (_local2 in icons) { if (_local2 == null){ } else { _local3 = _local2.item_ref; _local4 = _local3.item_rarity; _local5 = false; if ((((_local4 == Item.grey)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.GREY))))){ _local5 = setUnselected(_local2); } else { if ((((_local4 == Item.white)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.WHITE))))){ _local5 = setUnselected(_local2); } else { if ((((_local4 == Item.green)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.GREEN))))){ _local5 = setUnselected(_local2); } else { if ((((_local4 == Item.blue)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.BLUE))))){ _local5 = setUnselected(_local2); } else { if ((((_local4 == Item.purple)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.PURPLE))))){ _local5 = setUnselected(_local2); } else { if ((((_local3 is LightArmor)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.LIGHT))))){ _local5 = setUnselected(_local2); } else { if ((((_local3 is MediumArmor)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.MEDIUM))))){ _local5 = setUnselected(_local2); } else { if ((((_local3 is HeavyArmor)) && (!(dmf.hasFlag(_local1.lootSettings, LootSettings.HEAVY))))){ _local5 = setUnselected(_local2); }; }; }; }; }; }; }; }; if (!_local5){ _local2.alpha = 1; _local2.taking = true; }; }; }; updateSelectedCount(); } private function setUnselected(_arg1:InventoryIcon, _arg2:Boolean=false):Boolean{ var _local3:Party = dm.main.pc_party; var _local4:Boolean; if ((((_arg1.item_ref is Consumable)) && (dmf.hasFlag(_local3.lootSettings, LootSettings.CONSUMABLES)))){ _local4 = false; }; if ((((_arg1.item_ref is Enchantment)) && (dmf.hasFlag(_local3.lootSettings, LootSettings.ENCHANTMENTS)))){ _local4 = false; }; if (((_arg2) || (_local4))){ _arg1.taking = false; _arg1.alpha = 0.3; return (true); }; return (false); } private function removeComparisons():void{ var _local1:ItemComparison; for each (_local1 in comparisons) { if (_local1.parent != null){ _local1.parent.removeChild(_local1); }; }; } private function overIcon(_arg1:MouseEvent):void{ var _local4:PlayerCharacter; var _local5:ItemComparison; var _local6:CharacterPortrait; if (parent == null){ return; }; var _local2:Item = _arg1.currentTarget.item_ref; var _local3:Party = dm.main.pc_party; if ((_local2 is Equipment)){ removeComparisons(); comparisons = new Array(); for each (_local4 in _local3.members) { if ((_local4 is PC_Adventurer)){ } else { _local5 = new ItemComparison(_local4, Equipment(_local2).slot, Equipment(_local2)); comparisons.push(_local5); _local6 = _local4.portraitRef; if (_local6 != null){ stage.addChild(_local5); _local5.x = _local6.x; _local5.y = _local6.y; }; }; }; }; } private function outIcon(_arg1:MouseEvent):void{ removeComparisons(); } } }//package
Section 618
//turn_page_sound (turn_page_sound) package { import flash.media.*; public dynamic class turn_page_sound extends Sound { } }//package
Section 619
//VolumeControl (VolumeControl) package { import flash.events.*; import flash.display.*; public class VolumeControl extends MovieClip { var soundButton:SoundButton; public var sfx_selector:VolumeSelector; public var global_selector:VolumeSelector; public var music_selector:VolumeSelector; public var volCloseButton:SimpleButton; public function VolumeControl(_arg1:SoundButton=null):void{ init(_arg1); if (volCloseButton != null){ volCloseButton.addEventListener(MouseEvent.MOUSE_DOWN, clickedClose); }; } public function init(_arg1:SoundButton=null):void{ if (_arg1 != null){ soundButton = _arg1; }; global_selector.setFrameFromVolume(GlobalVolume.volumeSetting); sfx_selector.setFrameFromVolume(SoundControl.volumeSetting); music_selector.setFrameFromVolume(Music.volumeSetting); } public function cleanup():void{ global_selector.cleanup(); sfx_selector.cleanup(); music_selector.cleanup(); } function clickedClose(_arg1:MouseEvent):void{ volCloseButton.removeEventListener(MouseEvent.MOUSE_DOWN, clickedClose); if (soundButton != null){ soundButton.removeControl(); } else { if (stage != null){ this.cleanup(); stage.removeChild(this); }; }; } public function adjustVolume(_arg1:VolumeSelector, _arg2:Number):void{ if (_arg1 == global_selector){ GlobalVolume.setVolume(_arg2); dm.main.saveInterface(); } else { if (_arg1 == music_selector){ dm.main.setMusicVolume(_arg2); dm.main.saveInterface(); } else { if (_arg1 == sfx_selector){ SoundControl.volumeSetting = _arg2; dm.main.saveInterface(); }; }; }; } } }//package
Section 620
//VolumeControlMenu (VolumeControlMenu) package { public dynamic class VolumeControlMenu extends VolumeControl { } }//package
Section 621
//VolumeSelector (VolumeSelector) package { import flash.events.*; import flash.display.*; import flash.text.*; public class VolumeSelector extends MovieClip { const vol_low = 1; const vol_mid = 2; const vol_full = 3; const vol_off = 0; public var full:TextField; public var mid:TextField; public var low:TextField; public var off:TextField; public function VolumeSelector():void{ full.addEventListener(MouseEvent.MOUSE_DOWN, clickFull); mid.addEventListener(MouseEvent.MOUSE_DOWN, clickMid); low.addEventListener(MouseEvent.MOUSE_DOWN, clickLow); off.addEventListener(MouseEvent.MOUSE_DOWN, clickOff); } public function cleanup():void{ full.removeEventListener(MouseEvent.MOUSE_DOWN, clickFull); mid.removeEventListener(MouseEvent.MOUSE_DOWN, clickMid); low.removeEventListener(MouseEvent.MOUSE_DOWN, clickLow); off.removeEventListener(MouseEvent.MOUSE_DOWN, clickOff); } public function setFrameFromVolume(_arg1:Number):void{ if (_arg1 == GlobalVolume.volumeOff){ setFrame(vol_off); } else { if (_arg1 == GlobalVolume.volumeLow){ setFrame(vol_low); } else { if (_arg1 == GlobalVolume.volumeMid){ setFrame(vol_mid); } else { if (_arg1 == GlobalVolume.volumeFull){ setFrame(vol_full); }; }; }; }; } private function setFrame(_arg1:int):void{ if (_arg1 == vol_off){ this.gotoAndStop("off"); } else { if (_arg1 == vol_low){ this.gotoAndStop("low"); } else { if (_arg1 == vol_mid){ this.gotoAndStop("mid"); } else { if (_arg1 == vol_full){ this.gotoAndStop("full"); }; }; }; }; } function clickLow(_arg1:MouseEvent):void{ var _local2:* = GlobalVolume.volumeLow; setFrame(vol_low); if (parent != null){ VolumeControl(parent).adjustVolume(this, _local2); }; } function clickMid(_arg1:MouseEvent):void{ var _local2:* = GlobalVolume.volumeMid; setFrame(vol_mid); if (parent != null){ VolumeControl(parent).adjustVolume(this, _local2); }; } function clickFull(_arg1:MouseEvent):void{ var _local2:* = GlobalVolume.volumeFull; setFrame(vol_full); if (parent != null){ VolumeControl(parent).adjustVolume(this, _local2); }; } function clickOff(_arg1:MouseEvent):void{ var _local2:* = GlobalVolume.volumeOff; setFrame(vol_off); if (parent != null){ VolumeControl(parent).adjustVolume(this, _local2); }; } } }//package
Section 622
//VolumeSelectorMenu (VolumeSelectorMenu) package { public dynamic class VolumeSelectorMenu extends VolumeSelector { } }//package
Section 623
//WarningDialog (WarningDialog) package { import flash.events.*; import flash.display.*; import flash.text.*; public class WarningDialog extends MovieClip { public var yes_btn:MovieClip; public var dlg_text:TextField; public function WarningDialog(_arg1:String=""){ if (_arg1.length){ setText(_arg1); }; yes_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } private function cleanup():void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); } public function setText(_arg1:String):void{ dlg_text.text = _arg1; } function clickOkay(_arg1:MouseEvent):void{ yes_btn.removeEventListener(MouseEvent.MOUSE_DOWN, clickOkay); if (parent != null){ parent.removeChild(this); cleanup(); } else { if (((!((stage == null))) && (stage.contains(this)))){ stage.removeChild(this); cleanup(); }; }; } } }//package
Section 624
//Weapon (Weapon) package { public class Weapon extends Equipment { private var _twoHanded:Boolean;// = false private var _damage:int; var base_damage:int;// = 0 var base_damage_mod:int;// = 0 static const dagger_base_damage = 14; static const sword_base_damage = 15; static const mace_base_damage = 14; static const axe_base_damage = 22; static const spear_base_damage = 20; static const bow_base_damage = 14; static const crossbow_base_damage = 16; static const staff_base_damage = 14; public function Weapon(){ item_name = "Weapon"; slot = weapon; grey_name = "Damaged"; } public function get twoHanded():Boolean{ return (this._twoHanded); } public function set twoHanded(_arg1:Boolean):void{ this._twoHanded = _arg1; } public function get damage():int{ return (this._damage); } public function set damage(_arg1:int):void{ this._damage = _arg1; } override public function getItemTypeString(){ return ("Weapon"); } override public function generateItem(_arg1:int):void{ var _local2:* = false; var _local3:* = false; if (item_rarity == Item.green){ if (dmf.randomNum(0, 100) >= 50){ _local3 = true; } else { _local2 = true; }; }; getItemModifiers(); if ((((item_rarity == Item.blue)) || (_local3))){ prefix = rollForPrefix(item_rarity); }; if ((((item_rarity == Item.blue)) || (_local2))){ suffix = rollForSuffix(item_rarity); }; if (prefix >= 0){ applyPrefix(); }; if (suffix >= 0){ applySuffix(); }; damage = scaleWeaponDamageForLevel((base_damage * (1 + (base_damage_mod / 100)))); if (((materials.length) && ((item_rarity < Item.purple)))){ material = rollForMaterial(item_rarity, materials); scaleDamageForMaterial(material); } else { material = -1; }; if (material >= 0){ item_name = ((materials[material] + " ") + item_name); }; if (prefix >= 0){ item_name = ((prefixes[prefix][0] + " ") + item_name); }; if (suffix >= 0){ item_name = ((item_name + " of ") + suffixes[suffix][0]); }; if (item_rarity == Item.grey){ item_name = ((grey_name + " ") + item_name); }; } public function scaleWeaponDamageForLevel(_arg1:int):int{ return (scaleWeaponDamageForLevelNew(_arg1, item_level)); } override public function itemStatsString(_arg1:String):String{ _arg1 = (_arg1 + (String(damage) + " damage\n")); return (super.itemStatsString(_arg1)); } override public function getItemModifiers():void{ super.getItemModifiers(); prefixes.push(["Staggering", 10]); prefixes.push(["Unerring", base_accuracy_bonus]); prefixes.push(["Venomous", 5]); prefixes.push(["Blinding", 10]); prefixes.push(["Vampiric", 10]); suffixes.push(["Lethality", 1]); } override public function applyPrefix():void{ var _local1:* = prefix; if (_local1 < 0){ return; }; super.applyPrefix(); } override public function applySuffix():void{ var _local1:* = suffix; if (_local1 < 0){ return; }; super.applySuffix(); } public function scaleDamageForMaterial(_arg1:int){ var _local2:* = (1 + ((_arg1 + 1) * 0.05)); damage = Math.round((damage * _local2)); } public static function scaleWeaponDamageForLevelNew(_arg1:int, _arg2:int):int{ var _local3:int; var _local4 = ??pushnamespace ; _local3 = MonsterCharacter.getHealthMax(_arg2, false); _local4 = 5; var _local5:Number = (_local3 / _local4); var _local6:Number = (_arg1 / sword_base_damage); var _local7:* = Math.round((_local5 * _local6)); return (_local7); } } }//package
Section 625
//web_effect (web_effect) package { import flash.display.*; public dynamic class web_effect extends MovieClip { public function web_effect(){ addFrameScript(0, frame1, 44, frame45); } function frame1(){ dm.sound.play(SoundControl.web); } function frame45(){ this.stop(); } } }//package
Section 626
//web_squirt_sound (web_squirt_sound) package { import flash.media.*; public dynamic class web_squirt_sound extends Sound { } }//package
Section 627
//whirlwind_sound (whirlwind_sound) package { import flash.media.*; public dynamic class whirlwind_sound extends Sound { } }//package
Section 628
//writing_sound (writing_sound) package { import flash.media.*; public dynamic class writing_sound extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:3  Timeline
Symbol 2 GraphicUsed by:151 334 358 441 461 496 557 599 601 610 614 615 679 771 1007 1049 1080 1122 1245 1263 1276 1283 1291 1349 1560 1656 1658 1659 1665 1666 1710 1738  Timeline
Symbol 3 MovieClipUses:1Used by:Timeline
Symbol 4 FontUsed by:5 6 12 14 87 88 89 178 192 193 194 195 197 335 359 360 365 412 413 415 420 422 444 445 446 447 449 450 451 457 462 463 464 465 466 472 473 475 477 481 482 483 484 485 487 489 492 493 494 495 497 498 501 502 503 550 551 626 627 628 629 630 631 633 634 635 636 637 638 641 644 646 647 648 649 650 652 653 655 656 657 658 665 669 671 672 677 681 699 700 716 726 729 730 736 737 738 739 740 741 742 743 744 745 746 747 748 749 760 761 762 763 764 778 986 994 996 997 999 1000 1009 1010 1011 1019 1022 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1089 1097 1105 1106 1107 1113 1114 1124 1127 1135 1139 1142 1143 1144 1146 1149 1150 1152 1154 1155 1167 1169 1171 1179 1182 1186 1191 1192 1195 1196 1197 1198 1199 1202 1203 1204 1207 1208 1209 1215 1217 1218 1219 1220 1221 1223 1224 1226 1229 1230 1237 1243 1246 1247 1303 1534 1535 1536 1537 1562 1573 1574 1575 1576 1586 1594 1595 1596 1607 1621 1622 1623 1624 1627 1628 1629 1630 1638 1650 1680 1687 1691 1755 1756 1757 1758
Symbol 5 EditableTextUses:4 7Used by:Timeline
Symbol 6 EditableTextUses:4 7Used by:Timeline
Symbol 7 FontUsed by:5 6 8 11 13 14 59 162 174 175 179 192 193 194 333 359 360 365 399 400 401 402 415 416 417 420 422 444 445 446 447 457 463 464 465 466 472 473 482 483 484 485 492 493 501 502 503 550 551 626 627 628 629 630 631 633 634 635 636 637 638 639 641 644 646 647 648 649 650 652 653 655 656 658 665 669 677 681 693 694 697 699 700 703 708 711 713 714 715 716 719 726 731 732 733 734 735 749 756 762 764 778 986 994 996 997 1000 1002 1009 1010 1011 1019 1022 1025 1028 1031 1037 1038 1039 1040 1041 1042 1043 1045 1046 1047 1050 1090 1093 1097 1105 1106 1107 1109 1111 1113 1116 1124 1128 1131 1139 1143 1144 1145 1146 1147 1149 1152 1153 1154 1157 1167 1169 1171 1179 1183 1189 1191 1192 1195 1198 1202 1203 1215 1216 1217 1218 1219 1220 1221 1223 1224 1226 1229 1230 1237 1243 1246 1247 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1265 1266 1267 1268 1270 1271 1272 1273 1274 1275 1277 1278 1279 1280 1281 1282 1284 1285 1286 1287 1288 1289 1290 1303 1534 1535 1536 1537 1539 1540 1541 1543 1549 1562 1568 1573 1574 1575 1576 1577 1586 1594 1595 1596 1607 1608 1610 1611 1612 1613 1614 1615 1622 1623 1650 1703 1755 1757
Symbol 8 TextUses:7Used by:10
Symbol 9 GraphicUsed by:10
Symbol 10 ButtonUses:8 9Used by:Timeline
Symbol 11 TextUses:7Used by:Timeline
Symbol 12 EditableTextUses:4Used by:Timeline
Symbol 13 TextUses:7Used by:57
Symbol 14 EditableTextUses:4 7Used by:57
Symbol 15 GraphicUsed by:29
Symbol 16 FontUsed by:17 18 19 20 21 22 23 24 25 26 27 28 1736
Symbol 17 TextUses:16Used by:29
Symbol 18 TextUses:16Used by:29
Symbol 19 TextUses:16Used by:29
Symbol 20 TextUses:16Used by:29
Symbol 21 TextUses:16Used by:29
Symbol 22 TextUses:16Used by:29
Symbol 23 TextUses:16Used by:29
Symbol 24 TextUses:16Used by:29
Symbol 25 TextUses:16Used by:29
Symbol 26 TextUses:16Used by:29
Symbol 27 TextUses:16Used by:29
Symbol 28 TextUses:16Used by:29
Symbol 29 ButtonUses:15 17 18 19 20 21 22 23 24 25 26 27 28Used by:57
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:32
Symbol 32 ButtonUses:31Used by:57
Symbol 33 GraphicUsed by:40
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:36
Symbol 36 MovieClipUses:35Used by:40
Symbol 37 GraphicUsed by:40
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:40
Symbol 40 MovieClipUses:33 36 37 39Used by:57
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:57
Symbol 43 GraphicUsed by:44 45
Symbol 44 MovieClip {monstersdend_fla.Eye1_11}Uses:43Used by:54
Symbol 45 MovieClip {monstersdend_fla.Eye2_12}Uses:43Used by:54
Symbol 46 GraphicUsed by:50
Symbol 47 ShapeTweeningUsed by:50
Symbol 48 GraphicUsed by:50
Symbol 49 ShapeTweeningUsed by:50
Symbol 50 MovieClipUses:46 47 48 49Used by:54
Symbol 51 GraphicUsed by:54
Symbol 52 FontUsed by:53
Symbol 53 TextUses:52Used by:54
Symbol 54 MovieClipUses:44 45 50 51 53Used by:56
Symbol 55 GraphicUsed by:56
Symbol 56 ButtonUses:54 55Used by:57 512
Symbol 57 MovieClipUses:13 14 29 32 40 42 56Used by:Timeline
Symbol 58 GraphicUsed by:60
Symbol 59 TextUses:7Used by:60
Symbol 60 MovieClipUses:58 59Used by:Timeline
Symbol 61 GraphicUsed by:63
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClip {monstersdend_fla.SkillIconBG_16}Uses:61 62Used by:142 173  Timeline
Symbol 64 GraphicUsed by:142
Symbol 65 GraphicUsed by:142
Symbol 66 GraphicUsed by:142
Symbol 67 GraphicUsed by:142
Symbol 68 GraphicUsed by:142
Symbol 69 GraphicUsed by:142
Symbol 70 GraphicUsed by:142
Symbol 71 GraphicUsed by:142
Symbol 72 GraphicUsed by:142 173 411
Symbol 73 GraphicUsed by:142
Symbol 74 GraphicUsed by:142
Symbol 75 GraphicUsed by:142
Symbol 76 GraphicUsed by:142
Symbol 77 GraphicUsed by:142 173 1348 1395 1465
Symbol 78 GraphicUsed by:142 411
Symbol 79 GraphicUsed by:142 173 411
Symbol 80 GraphicUsed by:142
Symbol 81 GraphicUsed by:142
Symbol 82 GraphicUsed by:142
Symbol 83 GraphicUsed by:142
Symbol 84 GraphicUsed by:142
Symbol 85 GraphicUsed by:142
Symbol 86 GraphicUsed by:142
Symbol 87 TextUses:4Used by:142
Symbol 88 TextUses:4Used by:142
Symbol 89 TextUses:4Used by:142
Symbol 90 GraphicUsed by:142
Symbol 91 GraphicUsed by:142 173 411
Symbol 92 GraphicUsed by:142
Symbol 93 GraphicUsed by:142
Symbol 94 GraphicUsed by:142
Symbol 95 GraphicUsed by:142
Symbol 96 GraphicUsed by:142
Symbol 97 GraphicUsed by:142
Symbol 98 GraphicUsed by:142 173
Symbol 99 GraphicUsed by:142
Symbol 100 GraphicUsed by:142 173
Symbol 101 GraphicUsed by:142
Symbol 102 GraphicUsed by:142
Symbol 103 GraphicUsed by:142
Symbol 104 GraphicUsed by:142
Symbol 105 GraphicUsed by:142 173
Symbol 106 GraphicUsed by:142
Symbol 107 GraphicUsed by:142
Symbol 108 GraphicUsed by:142
Symbol 109 GraphicUsed by:142
Symbol 110 GraphicUsed by:142
Symbol 111 GraphicUsed by:142
Symbol 112 GraphicUsed by:142
Symbol 113 GraphicUsed by:142
Symbol 114 GraphicUsed by:142 173 411
Symbol 115 GraphicUsed by:142 173
Symbol 116 GraphicUsed by:142
Symbol 117 GraphicUsed by:142
Symbol 118 GraphicUsed by:142
Symbol 119 GraphicUsed by:142
Symbol 120 GraphicUsed by:142
Symbol 121 GraphicUsed by:142
Symbol 122 GraphicUsed by:142
Symbol 123 GraphicUsed by:142
Symbol 124 GraphicUsed by:142
Symbol 125 GraphicUsed by:142 431 662 1645 1648
Symbol 126 GraphicUsed by:142
Symbol 127 GraphicUsed by:142
Symbol 128 GraphicUsed by:142
Symbol 129 GraphicUsed by:142
Symbol 130 GraphicUsed by:142
Symbol 131 GraphicUsed by:142
Symbol 132 GraphicUsed by:142
Symbol 133 GraphicUsed by:142
Symbol 134 GraphicUsed by:142
Symbol 135 GraphicUsed by:142
Symbol 136 GraphicUsed by:142
Symbol 137 GraphicUsed by:142
Symbol 138 GraphicUsed by:142
Symbol 139 GraphicUsed by:142
Symbol 140 GraphicUsed by:142
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClip {SkillIcon}Uses:63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141Used by:180 993 995 1228  Timeline
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClip {SkillIconEmpty}Uses:143Used by:150 765  Timeline
Symbol 145 GraphicUsed by:148
Symbol 146 GraphicUsed by:148
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClip {SkillIconHighlight}Uses:145 146 147Used by:Timeline
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClip {SkillBar}Uses:149 144Used by:1242  Timeline
Symbol 151 MovieClip {FadeScreen}Uses:2Used by:180 1095 1098 1125 1133 1136 1140 1161 1180 1193 1200 1205 1625
Symbol 152 GraphicUsed by:180 490 512 548 1004 1095 1098 1100 1125 1133 1136 1137 1161 1193 1200 1205 1210 1625
Symbol 153 BitmapUsed by:154
Symbol 154 GraphicUses:153Used by:155 770 1008 1049 1546 1590
Symbol 155 MovieClipUses:154Used by:180 490 512 1004 1095 1098 1100 1125 1133 1136 1137 1161 1193 1200 1205 1210 1625 1665
Symbol 156 GraphicUsed by:180 490 512 1004 1095 1098 1125 1133 1136 1137 1161 1193 1200 1625
Symbol 157 GraphicUsed by:160
Symbol 158 GraphicUsed by:160
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClip {ThinButtonBG}Uses:157 158 159Used by:163 695 698 712 720 1003 1026 1029 1032 1091 1094 1110 1112 1117 1129 1132 1160 1184 1190 1550 1569 1704
Symbol 161 GraphicUsed by:163
Symbol 162 TextUses:7Used by:163
Symbol 163 MovieClipUses:160 161 162Used by:180 490 512 1004 1125 1140 1161 1180 1205 1625
Symbol 164 GraphicUsed by:173 537 1065 1457 1653 1659
Symbol 165 FontUsed by:166 1581
Symbol 166 EditableTextUses:165Used by:173
Symbol 167 GraphicUsed by:173
Symbol 168 GraphicUsed by:173
Symbol 169 GraphicUsed by:173
Symbol 170 GraphicUsed by:173
Symbol 171 GraphicUsed by:173
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClip {PassiveSkillIcon}Uses:63 164 166 167 168 72 169 105 170 79 114 171 91 172 115 100 77 98Used by:180 765 1004
Symbol 174 TextUses:7Used by:180
Symbol 175 TextUses:7Used by:180
Symbol 176 FontUsed by:177 181 196 198 394 428 442 468 470 479 491 545 625 676 998 1012 1088 1096 1104 1123 1126 1134 1138 1141 1162 1166 1168 1170 1175 1176 1178 1181 1194 1201 1206 1584 1598 1604
Symbol 177 EditableTextUses:176 544Used by:180
Symbol 178 TextUses:4Used by:180
Symbol 179 TextUses:7Used by:180
Symbol 180 MovieClip {SkillsPreview}Uses:151 152 155 156 142 163 173 174 175 177 178 179Used by:Timeline
Symbol 181 TextUses:176Used by:378
Symbol 182 GraphicUsed by:186 367 379 389 433
Symbol 183 GraphicUsed by:186
Symbol 184 GraphicUsed by:186
Symbol 185 GraphicUsed by:186 367 371 379 389 433 594 596 602 605 606 607 1008 1014 1122 1241 1326 1340 1348 1365 1370 1380 1389 1399 1402 1423 1443 1466 1552 1601 1674
Symbol 186 ButtonUses:182 183 184 185Used by:362
Symbol 187 FontUsed by:188 189 364 369 370 372 373 374 375 376 377 405 429 430 528 1172 1173 1174 1599 1600 1633 1634 1639 1640 1643 1644 1646 1647 1677 1678 1684 1685 1690
Symbol 188 TextUses:187Used by:191
Symbol 189 TextUses:187Used by:191
Symbol 190 GraphicUsed by:191
Symbol 191 ButtonUses:188 189 190Used by:362
Symbol 192 EditableTextUses:4 7Used by:362
Symbol 193 EditableTextUses:4 7Used by:362
Symbol 194 EditableTextUses:4 7Used by:362
Symbol 195 TextUses:4Used by:362
Symbol 196 EditableTextUses:176 544Used by:362
Symbol 197 TextUses:4Used by:362
Symbol 198 EditableTextUses:176 544Used by:362
Symbol 199 GraphicUsed by:361 1200 1205 1590 1625
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:358
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:358
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:358
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:358
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:358
Symbol 210 BitmapUsed by:211
Symbol 211 GraphicUses:210Used by:358
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:358
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:358
Symbol 216 BitmapUsed by:217
Symbol 217 GraphicUses:216Used by:358
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:358
Symbol 220 BitmapUsed by:221
Symbol 221 GraphicUses:220Used by:358
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:358
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:358
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:358
Symbol 228 BitmapUsed by:229
Symbol 229 GraphicUses:228Used by:358
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:358
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:358
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:358
Symbol 236 BitmapUsed by:237
Symbol 237 GraphicUses:236Used by:358
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:358
Symbol 240 BitmapUsed by:241
Symbol 241 GraphicUses:240Used by:358
Symbol 242 BitmapUsed by:243
Symbol 243 GraphicUses:242Used by:358
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:244Used by:358
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:358
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:358
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:358
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:358
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:358
Symbol 256 BitmapUsed by:257
Symbol 257 GraphicUses:256Used by:358
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:358
Symbol 260 BitmapUsed by:261 262
Symbol 261 GraphicUses:260Used by:358
Symbol 262 GraphicUses:260Used by:358
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:358
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:358
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:358
Symbol 269 BitmapUsed by:270
Symbol 270 GraphicUses:269Used by:358
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:358
Symbol 273 BitmapUsed by:274
Symbol 274 GraphicUses:273Used by:358
Symbol 275 BitmapUsed by:276
Symbol 276 GraphicUses:275Used by:358
Symbol 277 BitmapUsed by:278
Symbol 278 GraphicUses:277Used by:358
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:358
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:358
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:358
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:358
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:358
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:358
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:358
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:358
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:358
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:358
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:358
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:358
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:358
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:358
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:358
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:358
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:358
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:358
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:358
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:358
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:358
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:358
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:358
Symbol 325 BitmapUsed by:326
Symbol 326 GraphicUses:325Used by:358
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:358
Symbol 329 BitmapUsed by:330
Symbol 330 GraphicUses:329Used by:358
Symbol 331 BitmapUsed by:332
Symbol 332 GraphicUses:331Used by:358
Symbol 333 TextUses:7Used by:334
Symbol 334 MovieClip {EmptyCustomPortrait}Uses:2 333Used by:358 1193  Timeline
Symbol 335 TextUses:4Used by:358
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:358
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:358
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:358
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:358
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:358
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:358
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:358
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:358
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:358
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:358
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:358
Symbol 358 MovieClip {CharGraphic}Uses:201 203 205 207 209 211 213 215 217 219 221 223 225 227 229 231 233 235 237 239 241 243 245 247 249 251 253 255 257 259 261 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 2 335 337 339 341 343 345 347 349 351 353 355 357Used by:361 427 632 770 1200 1205 1225 1306 1368 1590 1625  Timeline
Symbol 359 EditableTextUses:4 7Used by:361
Symbol 360 EditableTextUses:4 7Used by:361
Symbol 361 MovieClip {CharacterInfo}Uses:199 358 359 360Used by:362
Symbol 362 MovieClip {SaveGameStatus}Uses:186 191 192 193 194 195 196 197 198 361Used by:368  Timeline
Symbol 363 GraphicUsed by:367 379
Symbol 364 TextUses:187Used by:367 379
Symbol 365 TextUses:7 4Used by:367 379
Symbol 366 GraphicUsed by:367 379
Symbol 367 ButtonUses:182 363 364 365 366 185Used by:368
Symbol 368 MovieClip {SaveGameStatusContainer}Uses:362 367Used by:378
Symbol 369 TextUses:187Used by:371
Symbol 370 TextUses:187Used by:371
Symbol 371 Button {OptionsBookButton}Uses:369 370 185Used by:378 432 1177 1603 1649
Symbol 372 TextUses:187Used by:378
Symbol 373 TextUses:187Used by:378
Symbol 374 EditableTextUses:187 386Used by:378
Symbol 375 EditableTextUses:187 386Used by:378
Symbol 376 TextUses:187Used by:378
Symbol 377 EditableTextUses:187 386Used by:378
Symbol 378 MovieClip {LoadParty}Uses:181 368 371 372 373 374 375 376 377Used by:Timeline
Symbol 379 MovieClip {SaveGameEmpty}Uses:182 363 364 365 366 185Used by:Timeline
Symbol 380 GraphicUsed by:384 393 414 1018 1590 1665
Symbol 381 GraphicUsed by:384 393
Symbol 382 GraphicUsed by:384 393
Symbol 383 GraphicUsed by:384 393
Symbol 384 MovieClipUses:380 381 382 383Used by:Timeline
Symbol 385 GraphicUsed by:389 433
Symbol 386 FontUsed by:374 375 377 387 405 434 435 436 437 1086 1172 1173 1174
Symbol 387 TextUses:386Used by:389 433
Symbol 388 GraphicUsed by:389 433
Symbol 389 ButtonUses:182 385 387 388 185Used by:432  Timeline
Symbol 390 GraphicUsed by:427
Symbol 391 GraphicUsed by:392
Symbol 392 MovieClipUses:391Used by:427
Symbol 393 Button {SelectArrow}Uses:380 381 382 383Used by:427
Symbol 394 EditableTextUses:176 544Used by:427
Symbol 395 GraphicUsed by:398
Symbol 396 GraphicUsed by:398
Symbol 397 GraphicUsed by:398
Symbol 398 MovieClipUses:395 396 397Used by:427
Symbol 399 TextUses:7Used by:404
Symbol 400 TextUses:7Used by:404
Symbol 401 TextUses:7Used by:404
Symbol 402 TextUses:7Used by:404
Symbol 403 GraphicUsed by:404
Symbol 404 ButtonUses:399 400 401 402 403Used by:427 1544
Symbol 405 EditableTextUses:187 386Used by:427
Symbol 406 GraphicUsed by:408
Symbol 407 GraphicUsed by:408
Symbol 408 MovieClipUses:406 407Used by:411  Timeline
Symbol 409 GraphicUsed by:411
Symbol 410 GraphicUsed by:411
Symbol 411 MovieClipUses:408 114 72 91 78 79 409 410Used by:427  Timeline
Symbol 412 TextUses:4Used by:414
Symbol 413 TextUses:4Used by:414
Symbol 414 ButtonUses:380 412 413Used by:427
Symbol 415 EditableTextUses:4 7Used by:427
Symbol 416 TextUses:7Used by:419
Symbol 417 TextUses:7Used by:419
Symbol 418 GraphicUsed by:419 1299 1302 1559
Symbol 419 ButtonUses:416 417 418Used by:427
Symbol 420 EditableTextUses:4 7Used by:427
Symbol 421 GraphicUsed by:426
Symbol 422 TextUses:7 4Used by:426
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:425
Symbol 425 ButtonUses:424Used by:426
Symbol 426 MovieClipUses:421 422 425Used by:427
Symbol 427 MovieClip {CharCreationPanel}Uses:390 392 358 393 394 398 404 405 411 414 415 419 420 426Used by:432
Symbol 428 TextUses:176Used by:432
Symbol 429 TextUses:187Used by:431
Symbol 430 TextUses:187Used by:431
Symbol 431 Button {NewProceedButton}Uses:429 430 125Used by:432 1087 1177 1603  Timeline
Symbol 432 MovieClip {PartyCreation}Uses:389 427 371 428 431Used by:Timeline
Symbol 433 MovieClipUses:182 385 387 388 185Used by:Timeline
Symbol 434 TextUses:386Used by:438
Symbol 435 TextUses:386Used by:438
Symbol 436 TextUses:386Used by:438
Symbol 437 TextUses:386Used by:438
Symbol 438 MovieClipUses:434 435 436 437Used by:1087  Timeline
Symbol 439 GraphicUsed by:440
Symbol 440 MovieClip {monstersdend_fla.LoadingSymbol_54}Uses:439Used by:Timeline
Symbol 441 MovieClip {monstersdend_fla.FadeScreenDarker_56}Uses:2Used by:490 512 1004 1122
Symbol 442 TextUses:176Used by:490
Symbol 443 GraphicUsed by:448 467 474 486 1538
Symbol 444 EditableTextUses:4 7Used by:448
Symbol 445 EditableTextUses:4 7Used by:448
Symbol 446 EditableTextUses:4 7Used by:448
Symbol 447 EditableTextUses:4 7Used by:448
Symbol 448 MovieClip {VolumeSelectorMenu}Uses:443 444 445 446 447Used by:453
Symbol 449 TextUses:4Used by:453
Symbol 450 TextUses:4Used by:453
Symbol 451 TextUses:4Used by:453
Symbol 452 GraphicUsed by:453
Symbol 453 MovieClip {VolumeControlMenu}Uses:448 449 450 451 452Used by:490
Symbol 454 GraphicUsed by:455 610 616 702 1051 1337 1353 1380 1532
Symbol 455 MovieClipUses:454Used by:461 1317
Symbol 456 GraphicUsed by:461
Symbol 457 EditableTextUses:4 7Used by:461
Symbol 458 GraphicUsed by:459 1094
Symbol 459 MovieClipUses:458Used by:461
Symbol 460 GraphicUsed by:461 757
Symbol 461 MovieClip {dCheckBox}Uses:455 2 456 457 459 460Used by:490 680 1140 1177 1210 1590  Timeline
Symbol 462 TextUses:4Used by:490
Symbol 463 EditableTextUses:4 7Used by:467
Symbol 464 EditableTextUses:4 7Used by:467
Symbol 465 EditableTextUses:4 7Used by:467
Symbol 466 EditableTextUses:4 7Used by:467
Symbol 467 MovieClip {QualitySelectorMenu}Uses:443 463 464 465 466Used by:490
Symbol 468 TextUses:176Used by:490
Symbol 469 GraphicUsed by:490
Symbol 470 TextUses:176Used by:490
Symbol 471 GraphicUsed by:490
Symbol 472 EditableTextUses:4 7Used by:474
Symbol 473 EditableTextUses:4 7Used by:474
Symbol 474 MovieClip {OnOffSelectorMenu}Uses:443 472 473Used by:490
Symbol 475 TextUses:4Used by:490
Symbol 476 GraphicUsed by:490
Symbol 477 TextUses:4Used by:490
Symbol 478 GraphicUsed by:490
Symbol 479 TextUses:176Used by:490
Symbol 480 GraphicUsed by:490
Symbol 481 TextUses:4Used by:490
Symbol 482 EditableTextUses:4 7Used by:486
Symbol 483 EditableTextUses:4 7Used by:486
Symbol 484 EditableTextUses:4 7Used by:486
Symbol 485 EditableTextUses:4 7Used by:486
Symbol 486 MovieClip {TooltipSelectorMenu}Uses:443 482 483 484 485Used by:490
Symbol 487 TextUses:4Used by:490
Symbol 488 GraphicUsed by:490
Symbol 489 TextUses:4Used by:490
Symbol 490 MovieClip {OptionsScreen}Uses:441 152 155 156 442 163 453 461 462 467 468 469 470 471 474 475 476 477 478 479 480 481 486 487 488 489Used by:Timeline
Symbol 491 TextUses:176Used by:512
Symbol 492 TextUses:7 4Used by:512
Symbol 493 TextUses:7 4Used by:512
Symbol 494 TextUses:4Used by:496
Symbol 495 TextUses:4Used by:496
Symbol 496 ButtonUses:494 495 2Used by:512
Symbol 497 TextUses:4Used by:500
Symbol 498 TextUses:4Used by:500
Symbol 499 GraphicUsed by:500
Symbol 500 ButtonUses:497 498 499Used by:512
Symbol 501 TextUses:7 4Used by:512
Symbol 502 TextUses:7 4Used by:512
Symbol 503 EditableTextUses:4 7Used by:512
Symbol 504 GraphicUsed by:511
Symbol 505 GraphicUsed by:506
Symbol 506 MovieClipUses:505Used by:511
Symbol 507 GraphicUsed by:508
Symbol 508 MovieClipUses:507Used by:511
Symbol 509 GraphicUsed by:510
Symbol 510 MovieClipUses:509Used by:511
Symbol 511 MovieClip {monstersdend_fla.FGL_logo_68}Uses:504 506 508 510Used by:512
Symbol 512 MovieClip {CreditsScreen}Uses:441 152 155 156 491 492 163 493 496 500 501 502 503 511 56Used by:Timeline
Symbol 513 BitmapUsed by:514
Symbol 514 GraphicUses:513Used by:525 1665
Symbol 515 GraphicUsed by:516
Symbol 516 MovieClipUses:515Used by:518
Symbol 517 GraphicUsed by:518 521 524 1463
Symbol 518 ButtonUses:516 517Used by:525 1665
Symbol 519 GraphicUsed by:520
Symbol 520 MovieClipUses:519Used by:521
Symbol 521 ButtonUses:520 517Used by:525 1665
Symbol 522 GraphicUsed by:523
Symbol 523 MovieClipUses:522Used by:524
Symbol 524 ButtonUses:523 517Used by:525 1665
Symbol 525 MovieClipUses:514 518 521 524Used by:552
Symbol 526 GraphicUsed by:527
Symbol 527 MovieClip {monstersdend_fla.PlayGameHint_80}Uses:526Used by:552
Symbol 528 EditableTextUses:187Used by:552
Symbol 529 GraphicUsed by:549
Symbol 530 GraphicUsed by:533
Symbol 531 GraphicUsed by:533
Symbol 532 GraphicUsed by:533
Symbol 533 MovieClip {MuteButton}Uses:530 531 532Used by:549
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:536
Symbol 536 MovieClipUses:535Used by:537
Symbol 537 ButtonUses:536 164Used by:549
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:538Used by:540 543
Symbol 540 MovieClipUses:539Used by:543
Symbol 541 GraphicUsed by:543
Symbol 542 GraphicUsed by:543
Symbol 543 ButtonUses:540 541 539 542Used by:549
Symbol 544 FontUsed by:177 196 198 394 545 625 1012 1096 1103 1121 1138 1176 1178 1604
Symbol 545 EditableTextUses:176 544Used by:549
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:548
Symbol 548 ButtonUses:547 152Used by:549
Symbol 549 MovieClipUses:529 533 537 543 545 548Used by:552
Symbol 550 EditableTextUses:4 7Used by:552
Symbol 551 EditableTextUses:4 7Used by:552
Symbol 552 MovieClip {TitleScreen}Uses:525 527 528 549 550 551Used by:Timeline
Symbol 553 BitmapUsed by:554 598
Symbol 554 GraphicUses:553Used by:557
Symbol 555 GraphicUsed by:557
Symbol 556 GraphicUsed by:557
Symbol 557 MovieClip {monstersdend_fla.CorridorSegment_88}Uses:2 554 555 556Used by:Timeline
Symbol 558 GraphicUsed by:559
Symbol 559 MovieClip {DungeonRoom}Uses:558Used by:Timeline
Symbol 560 BitmapUsed by:561 562 563 564
Symbol 561 GraphicUses:560Used by:571
Symbol 562 GraphicUses:560Used by:571
Symbol 563 GraphicUses:560Used by:571
Symbol 564 GraphicUses:560Used by:571
Symbol 565 BitmapUsed by:566 567
Symbol 566 GraphicUses:565Used by:571
Symbol 567 GraphicUses:565Used by:571
Symbol 568 BitmapUsed by:569 570
Symbol 569 GraphicUses:568Used by:571
Symbol 570 GraphicUses:568Used by:571
Symbol 571 MovieClip {RandomFloor}Uses:561 562 563 564 566 567 569 570Used by:594 596 602 605 606 607
Symbol 572 GraphicUsed by:574
Symbol 573 GraphicUsed by:574
Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}Uses:572 573Used by:594 596 600 601 602 605 606 607 614 615 622
Symbol 575 GraphicUsed by:594 596 602 605 606 607
Symbol 576 GraphicUsed by:594
Symbol 577 BitmapUsed by:578 1329 1428
Symbol 578 GraphicUses:577Used by:594 596 602 605 606 607
Symbol 579 GraphicUsed by:582
Symbol 580 GraphicUsed by:582
Symbol 581 GraphicUsed by:582
Symbol 582 MovieClip {RandomBones}Uses:579 580 581Used by:594 596 602 605 606 607
Symbol 583 GraphicUsed by:594 596 602 605 606 607
Symbol 584 GraphicUsed by:594
Symbol 585 GraphicUsed by:594 606
Symbol 586 GraphicUsed by:590
Symbol 587 GraphicUsed by:590
Symbol 588 GraphicUsed by:590
Symbol 589 GraphicUsed by:590
Symbol 590 MovieClip {RandomGear}Uses:586 587 588 589Used by:594 596 602 605 606 607  Timeline
Symbol 591 GraphicUsed by:594 596 602 605 607
Symbol 592 GraphicUsed by:594 596 602 605 606 607
Symbol 593 GraphicUsed by:594 602 605
Symbol 594 MovieClip {rCell}Uses:185 571 574 575 576 578 582 583 584 585 590 591 592 593Used by:Timeline
Symbol 595 GraphicUsed by:596 602 605
Symbol 596 MovieClip {rChamber}Uses:185 571 574 575 583 582 578 590 592 595 591Used by:Timeline
Symbol 597 GraphicUsed by:600
Symbol 598 GraphicUses:553Used by:599
Symbol 599 MovieClipUses:2 598Used by:600 601
Symbol 600 MovieClip {rCorridorH}Uses:597 599 574Used by:1276  Timeline
Symbol 601 MovieClip {rCorridorV}Uses:2 599 574Used by:Timeline
Symbol 602 MovieClip {rGallery}Uses:185 571 574 575 593 583 578 582 590 592 591 595Used by:Timeline
Symbol 603 BitmapUsed by:604 1332
Symbol 604 GraphicUses:603Used by:605 607
Symbol 605 MovieClip {rLargeRoom}Uses:185 571 574 575 578 604 593 592 582 590 591 583 595Used by:Timeline
Symbol 606 MovieClip {rTallRoom}Uses:185 571 574 575 583 585 582 578 592 590Used by:Timeline
Symbol 607 MovieClip {rWideRoom}Uses:185 571 574 575 582 590 583 578 604 592 591Used by:Timeline
Symbol 608 GraphicUsed by:609
Symbol 609 MovieClipUses:608Used by:610
Symbol 610 MovieClip {DoorIcon}Uses:2 609 454Used by:1080  Timeline
Symbol 611 BitmapUsed by:612
Symbol 612 GraphicUses:611Used by:613
Symbol 613 MovieClipUses:612Used by:614 615
Symbol 614 MovieClip {CorridorConnectorH}Uses:2 613 574Used by:Timeline
Symbol 615 MovieClip {CorridorConnectorV}Uses:2 613 574Used by:Timeline
Symbol 616 MovieClip {RoomFlash}Uses:454Used by:Timeline
Symbol 617 BitmapUsed by:618
Symbol 618 GraphicUses:617Used by:622
Symbol 619 GraphicUsed by:622
Symbol 620 GraphicUsed by:621
Symbol 621 MovieClipUses:620Used by:622
Symbol 622 MovieClip {rDemonRoom}Uses:618 574 619 621Used by:Timeline
Symbol 623 GraphicUsed by:624
Symbol 624 MovieClipUses:623Used by:632 645 651 654 659  Timeline
Symbol 625 EditableTextUses:176 544Used by:632
Symbol 626 EditableTextUses:4 7Used by:632
Symbol 627 EditableTextUses:4 7Used by:632
Symbol 628 EditableTextUses:4 7Used by:632
Symbol 629 EditableTextUses:4 7Used by:632
Symbol 630 EditableTextUses:4 7Used by:632
Symbol 631 EditableTextUses:4 7Used by:632
Symbol 632 MovieClip {HordeTooltip}Uses:624 625 626 358 627 628 629 630 631Used by:Timeline
Symbol 633 EditableTextUses:4 7Used by:645
Symbol 634 EditableTextUses:4 7Used by:645
Symbol 635 EditableTextUses:4 7Used by:645
Symbol 636 EditableTextUses:4 7Used by:645
Symbol 637 EditableTextUses:4 7Used by:645
Symbol 638 EditableTextUses:4 7Used by:645
Symbol 639 TextUses:7Used by:640
Symbol 640 MovieClipUses:639Used by:645
Symbol 641 EditableTextUses:4 7Used by:645
Symbol 642 GraphicUsed by:643
Symbol 643 MovieClipUses:642Used by:645 717 1597
Symbol 644 EditableTextUses:4 7Used by:645
Symbol 645 MovieClip {ItemTooltip}Uses:624 633 634 635 636 637 638 640 641 643 644Used by:Timeline
Symbol 646 EditableTextUses:4 7Used by:651
Symbol 647 EditableTextUses:4 7Used by:651
Symbol 648 EditableTextUses:4 7Used by:651
Symbol 649 EditableTextUses:4 7Used by:651
Symbol 650 EditableTextUses:4 7Used by:651
Symbol 651 MovieClip {SkillTooltip}Uses:624 646 647 648 649 650Used by:Timeline
Symbol 652 EditableTextUses:4 7Used by:654
Symbol 653 EditableTextUses:4 7Used by:654
Symbol 654 MovieClip {MiscTooltip}Uses:624 652 653Used by:Timeline
Symbol 655 EditableTextUses:4 7Used by:659
Symbol 656 EditableTextUses:4 7Used by:659
Symbol 657 TextUses:4Used by:659
Symbol 658 EditableTextUses:4 7Used by:659
Symbol 659 MovieClip {PassiveSkillTooltip}Uses:624 655 656 657 658Used by:Timeline
Symbol 660 GraphicUsed by:770
Symbol 661 GraphicUsed by:770
Symbol 662 MovieClipUses:125Used by:770
Symbol 663 GraphicUsed by:680
Symbol 664 GraphicUsed by:667
Symbol 665 EditableTextUses:4 7Used by:667
Symbol 666 GraphicUsed by:667 670
Symbol 667 MovieClip {InvFilter}Uses:664 665 666Used by:680
Symbol 668 GraphicUsed by:670
Symbol 669 EditableTextUses:4 7Used by:670
Symbol 670 MovieClip {InvFilterRecommend}Uses:668 669 666Used by:680
Symbol 671 TextUses:4Used by:680
Symbol 672 TextUses:4Used by:680
Symbol 673 GraphicUsed by:675
Symbol 674 GraphicUsed by:675
Symbol 675 MovieClipUses:673 674Used by:680
Symbol 676 TextUses:176Used by:680
Symbol 677 EditableTextUses:4 7Used by:680
Symbol 678 GraphicUsed by:679
Symbol 679 MovieClip {monstersdend_fla.InventoryProcessing_125}Uses:2 678Used by:680
Symbol 680 MovieClip {InventoryPanel}Uses:663 667 670 671 672 675 676 677 461 679Used by:770  Timeline
Symbol 681 EditableTextUses:4 7Used by:770
Symbol 682 GraphicUsed by:684
Symbol 683 GraphicUsed by:684
Symbol 684 MovieClip {ItemDestroyTarget}Uses:682 683Used by:770  Timeline
Symbol 685 GraphicUsed by:691
Symbol 686 GraphicUsed by:687
Symbol 687 MovieClipUses:686Used by:691
Symbol 688 GraphicUsed by:690
Symbol 689 GraphicUsed by:690
Symbol 690 MovieClip {PaperdollEmptySlot}Uses:688 689Used by:691  Timeline
Symbol 691 MovieClip {Paperdoll}Uses:685 687 690Used by:770 1590  Timeline
Symbol 692 GraphicUsed by:695
Symbol 693 TextUses:7Used by:695
Symbol 694 TextUses:7Used by:695
Symbol 695 MovieClip {HelpButton}Uses:160 692 693 694Used by:770 1049 1242 1590  Timeline
Symbol 696 GraphicUsed by:698
Symbol 697 TextUses:7Used by:698
Symbol 698 MovieClipUses:160 696 697Used by:770 1210 1590
Symbol 699 EditableTextUses:4 7Used by:770
Symbol 700 EditableTextUses:4 7Used by:770
Symbol 701 GraphicUsed by:704
Symbol 702 MovieClipUses:454Used by:704  Timeline
Symbol 703 EditableTextUses:7Used by:704
Symbol 704 MovieClip {NumericIndicatorHealth}Uses:701 702 703Used by:770 1225  Timeline
Symbol 705 GraphicUsed by:709
Symbol 706 GraphicUsed by:707
Symbol 707 MovieClipUses:706Used by:709  Timeline
Symbol 708 EditableTextUses:7Used by:709
Symbol 709 MovieClip {NumericIndicatorPower}Uses:705 707 708Used by:770 1225  Timeline
Symbol 710 GraphicUsed by:712
Symbol 711 TextUses:7Used by:712
Symbol 712 MovieClip {OptionsButton}Uses:160 710 711Used by:770 1049 1242 1590
Symbol 713 TextUses:7Used by:770
Symbol 714 TextUses:7Used by:770 1590
Symbol 715 TextUses:7Used by:770 1590
Symbol 716 EditableTextUses:4 7Used by:717
Symbol 717 MovieClip {GoldDisplay}Uses:716 643Used by:770 1590
Symbol 718 GraphicUsed by:720
Symbol 719 TextUses:7Used by:720
Symbol 720 MovieClipUses:160 718 719Used by:770 1049
Symbol 721 GraphicUsed by:728 766
Symbol 722 GraphicUsed by:728
Symbol 723 GraphicUsed by:725
Symbol 724 GraphicUsed by:725
Symbol 725 MovieClip {tab_flash}Uses:723 724Used by:728
Symbol 726 EditableTextUses:4 7Used by:728
Symbol 727 GraphicUsed by:728
Symbol 728 MovieClip {InventoryTab}Uses:722 725 726 727 721Used by:766  Timeline
Symbol 729 TextUses:4Used by:758
Symbol 730 TextUses:4Used by:758
Symbol 731 TextUses:7Used by:758
Symbol 732 TextUses:7Used by:758
Symbol 733 TextUses:7Used by:758
Symbol 734 TextUses:7Used by:758
Symbol 735 TextUses:7Used by:758
Symbol 736 TextUses:4Used by:758
Symbol 737 TextUses:4Used by:758
Symbol 738 TextUses:4Used by:758
Symbol 739 TextUses:4Used by:758
Symbol 740 TextUses:4Used by:758
Symbol 741 TextUses:4Used by:758
Symbol 742 TextUses:4Used by:758
Symbol 743 TextUses:4Used by:758
Symbol 744 TextUses:4Used by:758
Symbol 745 TextUses:4Used by:758
Symbol 746 TextUses:4Used by:758
Symbol 747 TextUses:4Used by:758
Symbol 748 TextUses:4Used by:758
Symbol 749 EditableTextUses:4 7Used by:750
Symbol 750 MovieClip {StatNumber}Uses:749Used by:758  Timeline
Symbol 751 GraphicUsed by:754
Symbol 752 GraphicUsed by:754
Symbol 753 GraphicUsed by:754
Symbol 754 MovieClip {StatIncreaseButton}Uses:751 752 753Used by:758  Timeline
Symbol 755 GraphicUsed by:757
Symbol 756 TextUses:7Used by:757
Symbol 757 ButtonUses:755 756 460Used by:758
Symbol 758 MovieClip {CharStatsPanel}Uses:729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 750 754 757Used by:766  Timeline
Symbol 759 GraphicUsed by:765
Symbol 760 TextUses:4Used by:765
Symbol 761 TextUses:4Used by:765
Symbol 762 EditableTextUses:4 7Used by:765
Symbol 763 TextUses:4Used by:765
Symbol 764 EditableTextUses:4 7Used by:765
Symbol 765 MovieClip {CharSkillsPanel}Uses:144 173 759 760 761 762 763 764Used by:766  Timeline
Symbol 766 MovieClip {CharInfoPanel}Uses:721 728 758 765Used by:770  Timeline
Symbol 767 GraphicUsed by:768 1411 1441 1657
Symbol 768 MovieClipUses:767Used by:769
Symbol 769 MovieClip {EmptyPortrait}Uses:768Used by:770 1049 1242 1590  Timeline
Symbol 770 MovieClip {Inventory}Uses:154 660 661 662 680 681 684 691 695 698 358 699 700 704 709 712 713 714 715 717 720 766 769Used by:Timeline
Symbol 771 MovieClipUses:2Used by:983
Symbol 772 GraphicUsed by:775
Symbol 773 GraphicUsed by:775
Symbol 774 GraphicUsed by:775
Symbol 775 MovieClipUses:772 773 774Used by:776
Symbol 776 MovieClip {monstersdend_fla.IconEnchantGlow_151}Uses:775Used by:983
Symbol 777 GraphicUsed by:983
Symbol 778 EditableTextUses:4 7Used by:983
Symbol 779 GraphicUsed by:786
Symbol 780 GraphicUsed by:786
Symbol 781 GraphicUsed by:786
Symbol 782 GraphicUsed by:786
Symbol 783 GraphicUsed by:786
Symbol 784 GraphicUsed by:786
Symbol 785 GraphicUsed by:786
Symbol 786 MovieClip {InventoryIconBg}Uses:779 780 781 782 783 784 785Used by:983  Timeline
Symbol 787 GraphicUsed by:983
Symbol 788 GraphicUsed by:983
Symbol 789 GraphicUsed by:983
Symbol 790 GraphicUsed by:983
Symbol 791 GraphicUsed by:983
Symbol 792 GraphicUsed by:983
Symbol 793 GraphicUsed by:983
Symbol 794 GraphicUsed by:983
Symbol 795 GraphicUsed by:983
Symbol 796 GraphicUsed by:983
Symbol 797 GraphicUsed by:983
Symbol 798 GraphicUsed by:983
Symbol 799 GraphicUsed by:983
Symbol 800 GraphicUsed by:983
Symbol 801 GraphicUsed by:983
Symbol 802 GraphicUsed by:983
Symbol 803 GraphicUsed by:983
Symbol 804 GraphicUsed by:983
Symbol 805 GraphicUsed by:983
Symbol 806 GraphicUsed by:983
Symbol 807 GraphicUsed by:983
Symbol 808 GraphicUsed by:983
Symbol 809 GraphicUsed by:983
Symbol 810 GraphicUsed by:983
Symbol 811 GraphicUsed by:983
Symbol 812 GraphicUsed by:983
Symbol 813 GraphicUsed by:983
Symbol 814 GraphicUsed by:983
Symbol 815 GraphicUsed by:983
Symbol 816 GraphicUsed by:983
Symbol 817 GraphicUsed by:983
Symbol 818 GraphicUsed by:983
Symbol 819 GraphicUsed by:983
Symbol 820 GraphicUsed by:983
Symbol 821 GraphicUsed by:983
Symbol 822 GraphicUsed by:983
Symbol 823 GraphicUsed by:983
Symbol 824 GraphicUsed by:983
Symbol 825 GraphicUsed by:983
Symbol 826 GraphicUsed by:983
Symbol 827 GraphicUsed by:983
Symbol 828 GraphicUsed by:983
Symbol 829 GraphicUsed by:983
Symbol 830 GraphicUsed by:831
Symbol 831 MovieClipUses:830Used by:832
Symbol 832 MovieClipUses:831Used by:983
Symbol 833 GraphicUsed by:983
Symbol 834 GraphicUsed by:983
Symbol 835 GraphicUsed by:983
Symbol 836 GraphicUsed by:983
Symbol 837 GraphicUsed by:983
Symbol 838 GraphicUsed by:983
Symbol 839 GraphicUsed by:983
Symbol 840 GraphicUsed by:983
Symbol 841 GraphicUsed by:983
Symbol 842 GraphicUsed by:983
Symbol 843 GraphicUsed by:983
Symbol 844 GraphicUsed by:983
Symbol 845 GraphicUsed by:983
Symbol 846 GraphicUsed by:983
Symbol 847 GraphicUsed by:848
Symbol 848 MovieClipUses:847Used by:849
Symbol 849 MovieClipUses:848Used by:983
Symbol 850 GraphicUsed by:983
Symbol 851 GraphicUsed by:983
Symbol 852 GraphicUsed by:983
Symbol 853 GraphicUsed by:983
Symbol 854 GraphicUsed by:983
Symbol 855 GraphicUsed by:983
Symbol 856 GraphicUsed by:983
Symbol 857 GraphicUsed by:983
Symbol 858 GraphicUsed by:983
Symbol 859 GraphicUsed by:983
Symbol 860 GraphicUsed by:983
Symbol 861 GraphicUsed by:983
Symbol 862 GraphicUsed by:983
Symbol 863 GraphicUsed by:983
Symbol 864 GraphicUsed by:983
Symbol 865 GraphicUsed by:983
Symbol 866 GraphicUsed by:983
Symbol 867 GraphicUsed by:983
Symbol 868 GraphicUsed by:983
Symbol 869 GraphicUsed by:983
Symbol 870 GraphicUsed by:983
Symbol 871 GraphicUsed by:983
Symbol 872 GraphicUsed by:983
Symbol 873 GraphicUsed by:983
Symbol 874 GraphicUsed by:983
Symbol 875 GraphicUsed by:983
Symbol 876 GraphicUsed by:983
Symbol 877 GraphicUsed by:983
Symbol 878 GraphicUsed by:983
Symbol 879 GraphicUsed by:983
Symbol 880 GraphicUsed by:983
Symbol 881 GraphicUsed by:983
Symbol 882 GraphicUsed by:983
Symbol 883 GraphicUsed by:983
Symbol 884 GraphicUsed by:983
Symbol 885 GraphicUsed by:983
Symbol 886 GraphicUsed by:983
Symbol 887 GraphicUsed by:983
Symbol 888 GraphicUsed by:983
Symbol 889 GraphicUsed by:983
Symbol 890 GraphicUsed by:983
Symbol 891 GraphicUsed by:983
Symbol 892 GraphicUsed by:983
Symbol 893 GraphicUsed by:983
Symbol 894 GraphicUsed by:983
Symbol 895 GraphicUsed by:983
Symbol 896 GraphicUsed by:983
Symbol 897 GraphicUsed by:983
Symbol 898 GraphicUsed by:983
Symbol 899 GraphicUsed by:983
Symbol 900 GraphicUsed by:983
Symbol 901 GraphicUsed by:983
Symbol 902 GraphicUsed by:983
Symbol 903 GraphicUsed by:983
Symbol 904 GraphicUsed by:983
Symbol 905 GraphicUsed by:983
Symbol 906 GraphicUsed by:983
Symbol 907 GraphicUsed by:983
Symbol 908 GraphicUsed by:983
Symbol 909 GraphicUsed by:983
Symbol 910 GraphicUsed by:983
Symbol 911 GraphicUsed by:912
Symbol 912 MovieClip {monstersdend_fla.EnchantOrbGlow_158}Uses:911Used by:983
Symbol 913 GraphicUsed by:983
Symbol 914 GraphicUsed by:983
Symbol 915 GraphicUsed by:983
Symbol 916 GraphicUsed by:983
Symbol 917 GraphicUsed by:983
Symbol 918 GraphicUsed by:983
Symbol 919 GraphicUsed by:983
Symbol 920 GraphicUsed by:983
Symbol 921 GraphicUsed by:983
Symbol 922 GraphicUsed by:983
Symbol 923 GraphicUsed by:983
Symbol 924 GraphicUsed by:983
Symbol 925 GraphicUsed by:983
Symbol 926 GraphicUsed by:983
Symbol 927 GraphicUsed by:983
Symbol 928 GraphicUsed by:983
Symbol 929 GraphicUsed by:983
Symbol 930 GraphicUsed by:983
Symbol 931 GraphicUsed by:983
Symbol 932 GraphicUsed by:983
Symbol 933 GraphicUsed by:983
Symbol 934 GraphicUsed by:983
Symbol 935 GraphicUsed by:983
Symbol 936 GraphicUsed by:983
Symbol 937 GraphicUsed by:983
Symbol 938 GraphicUsed by:983
Symbol 939 GraphicUsed by:983
Symbol 940 GraphicUsed by:983
Symbol 941 GraphicUsed by:983
Symbol 942 GraphicUsed by:983
Symbol 943 GraphicUsed by:983
Symbol 944 GraphicUsed by:945
Symbol 945 MovieClipUses:944Used by:983 1073 1276
Symbol 946 GraphicUsed by:983
Symbol 947 GraphicUsed by:983
Symbol 948 GraphicUsed by:983
Symbol 949 GraphicUsed by:983
Symbol 950 GraphicUsed by:983
Symbol 951 GraphicUsed by:983
Symbol 952 GraphicUsed by:983
Symbol 953 GraphicUsed by:983
Symbol 954 GraphicUsed by:983
Symbol 955 GraphicUsed by:983
Symbol 956 GraphicUsed by:983
Symbol 957 GraphicUsed by:983
Symbol 958 GraphicUsed by:983
Symbol 959 GraphicUsed by:983
Symbol 960 GraphicUsed by:983
Symbol 961 GraphicUsed by:983
Symbol 962 GraphicUsed by:983
Symbol 963 GraphicUsed by:983
Symbol 964 GraphicUsed by:983
Symbol 965 GraphicUsed by:983
Symbol 966 GraphicUsed by:983
Symbol 967 GraphicUsed by:983
Symbol 968 GraphicUsed by:983
Symbol 969 GraphicUsed by:983
Symbol 970 GraphicUsed by:983
Symbol 971 GraphicUsed by:983
Symbol 972 GraphicUsed by:983
Symbol 973 GraphicUsed by:983
Symbol 974 GraphicUsed by:983
Symbol 975 GraphicUsed by:983
Symbol 976 GraphicUsed by:983
Symbol 977 GraphicUsed by:983
Symbol 978 GraphicUsed by:983
Symbol 979 GraphicUsed by:983
Symbol 980 GraphicUsed by:983
Symbol 981 GraphicUsed by:983
Symbol 982 GraphicUsed by:983
Symbol 983 MovieClip {InventoryIcon}Uses:771 776 777 778 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982Used by:1597  Timeline
Symbol 984 GraphicUsed by:985 1118
Symbol 985 MovieClipUses:984Used by:993 995 1004
Symbol 986 EditableTextUses:4 7Used by:993
Symbol 987 GraphicUsed by:988 992
Symbol 988 MovieClipUses:987Used by:992
Symbol 989 GraphicUsed by:992
Symbol 990 GraphicUsed by:992
Symbol 991 GraphicUsed by:992
Symbol 992 ButtonUses:988 989 990 991 987Used by:993 995 1004
Symbol 993 MovieClip {BuySkillPanel}Uses:985 142 986 992Used by:1004
Symbol 994 EditableTextUses:4 7Used by:995
Symbol 995 MovieClip {BuySkillPanelR}Uses:985 142 994 992Used by:1004
Symbol 996 EditableTextUses:4 7Used by:1004
Symbol 997 EditableTextUses:4 7Used by:1004
Symbol 998 TextUses:176Used by:1004
Symbol 999 TextUses:4Used by:1004
Symbol 1000 EditableTextUses:4 7Used by:1004
Symbol 1001 GraphicUsed by:1003 1091 1112 1129 1184
Symbol 1002 TextUses:7Used by:1003
Symbol 1003 MovieClipUses:160 1001 1002Used by:1004
Symbol 1004 MovieClip {BuySkills}Uses:441 152 155 156 993 995 985 173 996 992 997 998 999 1000 1003 163Used by:Timeline
Symbol 1005 GraphicUsed by:1006
Symbol 1006 MovieClip {EnchantAnimation}Uses:1005Used by:Timeline
Symbol 1007 MovieClip {RestScreen}Uses:2Used by:Timeline
Symbol 1008 MovieClipUses:185 154Used by:1049
Symbol 1009 EditableTextUses:4 7Used by:1049
Symbol 1010 EditableTextUses:4 7Used by:1049
Symbol 1011 EditableTextUses:4 7Used by:1049
Symbol 1012 EditableTextUses:176 544Used by:1049
Symbol 1013 GraphicUsed by:1020 1023
Symbol 1014 MovieClipUses:185Used by:1020 1023
Symbol 1015 GraphicUsed by:1020
Symbol 1016 GraphicUsed by:1018
Symbol 1017 GraphicUsed by:1018
Symbol 1018 MovieClipUses:1016 380 1017Used by:1020 1023
Symbol 1019 EditableTextUses:4 7Used by:1020
Symbol 1020 MovieClip {ProgressCleared}Uses:1013 1014 1015 1018 1019Used by:1049
Symbol 1021 GraphicUsed by:1023
Symbol 1022 EditableTextUses:4 7Used by:1023
Symbol 1023 MovieClip {ProgressExplored}Uses:1013 1014 1021 1018 1022Used by:1049
Symbol 1024 GraphicUsed by:1026
Symbol 1025 TextUses:7Used by:1026
Symbol 1026 MovieClipUses:160 1024 1025Used by:1049
Symbol 1027 GraphicUsed by:1029
Symbol 1028 TextUses:7Used by:1029
Symbol 1029 MovieClipUses:160 1027 1028Used by:1049
Symbol 1030 GraphicUsed by:1032
Symbol 1031 TextUses:7Used by:1032
Symbol 1032 MovieClipUses:160 1030 1031Used by:1049
Symbol 1033 GraphicUsed by:1035 1036
Symbol 1034 GraphicUsed by:1035 1036 1609 1616
Symbol 1035 MovieClipUses:1033 1034Used by:1049  Timeline
Symbol 1036 MovieClipUses:1033 1034Used by:1049
Symbol 1037 EditableTextUses:4 7Used by:1049
Symbol 1038 EditableTextUses:4 7Used by:1049
Symbol 1039 EditableTextUses:4 7Used by:1049
Symbol 1040 EditableTextUses:4 7Used by:1049
Symbol 1041 EditableTextUses:4 7Used by:1049
Symbol 1042 EditableTextUses:4 7Used by:1049
Symbol 1043 EditableTextUses:4 7Used by:1049
Symbol 1044 TextUses:4Used by:1048
Symbol 1045 EditableTextUses:4 7Used by:1048
Symbol 1046 EditableTextUses:4 7Used by:1048
Symbol 1047 EditableTextUses:4 7Used by:1048
Symbol 1048 MovieClipUses:1044 1045 1046 1047Used by:1049
Symbol 1049 MovieClip {DungeonInterface}Uses:154 1008 2 769 1009 1010 1011 1012 1020 1023 695 1026 720 1029 712 1032 1035 1036 1037 1038 1039 1040 1041 1042 1043 1048Used by:Timeline
Symbol 1050 EditableTextUses:7Used by:1051
Symbol 1051 MovieClipUses:454 1050Used by:Timeline
Symbol 1052 GraphicUsed by:1053
Symbol 1053 MovieClipUses:1052Used by:1058 1276
Symbol 1054 GraphicUsed by:1058
Symbol 1055 GraphicUsed by:1056
Symbol 1056 MovieClipUses:1055Used by:1058
Symbol 1057 GraphicUsed by:1058
Symbol 1058 MovieClip {ExitStairs}Uses:1053 1054 1056 1057Used by:Timeline
Symbol 1059 GraphicUsed by:1060
Symbol 1060 MovieClipUses:1059Used by:1064 1276  Timeline
Symbol 1061 GraphicUsed by:1064
Symbol 1062 GraphicUsed by:1064
Symbol 1063 GraphicUsed by:1064
Symbol 1064 MovieClip {HordeIcon}Uses:1060 1061 1062 1063Used by:1066 1276  Timeline
Symbol 1065 MovieClipUses:164Used by:1066
Symbol 1066 MovieClip {Horde}Uses:1064 1065Used by:Timeline
Symbol 1067 GraphicUsed by:1068 1083
Symbol 1068 MovieClip {StairsGlow}Uses:1067Used by:1070 1080
Symbol 1069 GraphicUsed by:1070
Symbol 1070 MovieClip {RecoveryShrine}Uses:1068 1069Used by:1276  Timeline
Symbol 1071 GraphicUsed by:1073 1276
Symbol 1072 GraphicUsed by:1073 1276
Symbol 1073 MovieClip {TreasureChest}Uses:1071 1072 945Used by:Timeline
Symbol 1074 MovieClip {Dungeon}Used by:Timeline
Symbol 1075 GraphicUsed by:1077
Symbol 1076 GraphicUsed by:1077
Symbol 1077 MovieClip {MovementArrowHead}Uses:1075 1076Used by:Timeline
Symbol 1078 GraphicUsed by:1080
Symbol 1079 GraphicUsed by:1080
Symbol 1080 MovieClip {EntryStairs}Uses:1078 1068 2 610 1079Used by:Timeline
Symbol 1081 GraphicUsed by:1082
Symbol 1082 MovieClip {CurrentRoomIcon}Uses:1081Used by:Timeline
Symbol 1083 MovieClipUses:1067Used by:1085
Symbol 1084 GraphicUsed by:1085
Symbol 1085 MovieClip {SpecialShrine}Uses:1083 1084Used by:Timeline
Symbol 1086 EditableTextUses:386Used by:1087
Symbol 1087 MovieClip {DungeonLoading}Uses:1086 438 431Used by:Timeline
Symbol 1088 TextUses:176Used by:1095
Symbol 1089 TextUses:4Used by:1095
Symbol 1090 TextUses:7Used by:1091
Symbol 1091 MovieClipUses:160 1001 1090Used by:1095 1098 1136
Symbol 1092 GraphicUsed by:1094
Symbol 1093 TextUses:7Used by:1094
Symbol 1094 MovieClipUses:160 1092 458 1093Used by:1095 1098 1136 1193 1200
Symbol 1095 MovieClip {DownLevelDialog}Uses:151 152 155 156 1088 1089 1091 1094Used by:Timeline
Symbol 1096 EditableTextUses:176 544Used by:1098
Symbol 1097 EditableTextUses:4 7Used by:1098
Symbol 1098 MovieClip {ShrineUseDialog}Uses:151 152 155 156 1096 1097 1094 1091Used by:Timeline
Symbol 1099 GraphicUsed by:1100 1205 1210
Symbol 1100 MovieClipUses:152 155 1099Used by:1122
Symbol 1101 BitmapUsed by:1102
Symbol 1102 GraphicUses:1101Used by:1122
Symbol 1103 TextUses:544Used by:1122
Symbol 1104 TextUses:176Used by:1122
Symbol 1105 EditableTextUses:4 7Used by:1122
Symbol 1106 EditableTextUses:4 7Used by:1122
Symbol 1107 EditableTextUses:4 7Used by:1122
Symbol 1108 GraphicUsed by:1110
Symbol 1109 TextUses:7Used by:1110
Symbol 1110 MovieClipUses:160 1108 1109Used by:1122
Symbol 1111 TextUses:7Used by:1112
Symbol 1112 MovieClipUses:160 1001 1111Used by:1122
Symbol 1113 EditableTextUses:4 7Used by:1122
Symbol 1114 TextUses:4Used by:1122
Symbol 1115 GraphicUsed by:1117
Symbol 1116 TextUses:7Used by:1117
Symbol 1117 MovieClipUses:160 1115 1116Used by:1122
Symbol 1118 MovieClipUses:984Used by:1122 1566 1570
Symbol 1119 BitmapUsed by:1120
Symbol 1120 GraphicUses:1119Used by:1122
Symbol 1121 TextUses:544Used by:1122
Symbol 1122 MovieClip {TreasureReport}Uses:441 1100 185 1102 2 1103 1104 1105 1106 1107 1110 1112 1113 1114 1117 1118 1120 1121Used by:Timeline
Symbol 1123 TextUses:176Used by:1125
Symbol 1124 EditableTextUses:4 7Used by:1125
Symbol 1125 MovieClip {WarningDialog}Uses:151 152 155 156 1123 1124 163Used by:Timeline
Symbol 1126 TextUses:176Used by:1133
Symbol 1127 TextUses:4Used by:1133
Symbol 1128 TextUses:7Used by:1129
Symbol 1129 MovieClipUses:160 1001 1128Used by:1133
Symbol 1130 GraphicUsed by:1132
Symbol 1131 TextUses:7Used by:1132
Symbol 1132 MovieClipUses:160 1130 1131Used by:1133
Symbol 1133 MovieClip {SaveDeleteDialog}Uses:151 152 155 156 1126 1127 1129 1132Used by:Timeline
Symbol 1134 TextUses:176Used by:1136
Symbol 1135 TextUses:4Used by:1136
Symbol 1136 MovieClip {RestDialog}Uses:151 152 155 156 1134 1135 1094 1091Used by:Timeline
Symbol 1137 MovieClipUses:152 155 156Used by:1140 1180
Symbol 1138 EditableTextUses:176 544Used by:1140
Symbol 1139 EditableTextUses:4 7Used by:1140
Symbol 1140 MovieClip {HintDialog}Uses:151 1137 1138 1139 163 461Used by:Timeline
Symbol 1141 TextUses:176Used by:1161
Symbol 1142 TextUses:4Used by:1161
Symbol 1143 EditableTextUses:4 7Used by:1161
Symbol 1144 EditableTextUses:4 7Used by:1161
Symbol 1145 TextUses:7Used by:1161
Symbol 1146 EditableTextUses:4 7Used by:1161
Symbol 1147 TextUses:7Used by:1161
Symbol 1148 GraphicUsed by:1161
Symbol 1149 EditableTextUses:4 7Used by:1161
Symbol 1150 TextUses:4Used by:1161
Symbol 1151 GraphicUsed by:1161
Symbol 1152 EditableTextUses:4 7Used by:1161
Symbol 1153 TextUses:7Used by:1161
Symbol 1154 EditableTextUses:4 7Used by:1161
Symbol 1155 TextUses:4Used by:1161
Symbol 1156 GraphicUsed by:1160
Symbol 1157 TextUses:7Used by:1160
Symbol 1158 BitmapUsed by:1159
Symbol 1159 GraphicUses:1158Used by:1160
Symbol 1160 MovieClipUses:160 1156 1157 1159Used by:1161
Symbol 1161 MovieClip {RatingDialog}Uses:151 152 155 156 1141 1142 163 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1160Used by:Timeline
Symbol 1162 TextUses:176Used by:1177
Symbol 1163 GraphicUsed by:1165
Symbol 1164 GraphicUsed by:1165
Symbol 1165 MovieClip {monstersdend_fla.DifficultySelectBG_219}Uses:1163 1164Used by:1177
Symbol 1166 TextUses:176Used by:1177
Symbol 1167 TextUses:4 7Used by:1177
Symbol 1168 TextUses:176Used by:1177
Symbol 1169 TextUses:4 7Used by:1177
Symbol 1170 TextUses:176Used by:1177
Symbol 1171 TextUses:4 7Used by:1177
Symbol 1172 TextUses:187 386Used by:1177
Symbol 1173 TextUses:187 386Used by:1177
Symbol 1174 TextUses:187 386Used by:1177
Symbol 1175 TextUses:176Used by:1177
Symbol 1176 EditableTextUses:176 544Used by:1177
Symbol 1177 MovieClip {DifficultySelect}Uses:1162 461 431 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 371Used by:Timeline
Symbol 1178 EditableTextUses:176 544Used by:1180
Symbol 1179 EditableTextUses:4 7Used by:1180
Symbol 1180 MovieClip {ErrorDialog}Uses:151 1137 1178 1179 163Used by:Timeline
Symbol 1181 TextUses:176Used by:1193
Symbol 1182 TextUses:4Used by:1193
Symbol 1183 TextUses:7Used by:1184
Symbol 1184 MovieClipUses:160 1001 1183Used by:1193 1200
Symbol 1185 GraphicUsed by:1193
Symbol 1186 TextUses:4Used by:1193
Symbol 1187 GraphicUsed by:1193
Symbol 1188 GraphicUsed by:1190
Symbol 1189 TextUses:7Used by:1190
Symbol 1190 MovieClipUses:160 1188 1189Used by:1193
Symbol 1191 EditableTextUses:4 7Used by:1193
Symbol 1192 EditableTextUses:4 7Used by:1193
Symbol 1193 MovieClip {CustomPortraitDialog}Uses:151 152 155 156 1181 1182 1184 1094 1185 1186 1187 1190 1191 334 1192Used by:Timeline
Symbol 1194 TextUses:176Used by:1200 1625
Symbol 1195 EditableTextUses:4 7Used by:1200
Symbol 1196 TextUses:4Used by:1200
Symbol 1197 TextUses:4Used by:1200
Symbol 1198 EditableTextUses:4 7Used by:1200
Symbol 1199 TextUses:4Used by:1200
Symbol 1200 MovieClip {AdventurerJoinDialog}Uses:151 152 155 156 1194 1195 1094 1184 1196 1197 199 358 1198 1199Used by:Timeline
Symbol 1201 TextUses:176Used by:1205
Symbol 1202 EditableTextUses:4 7Used by:1205
Symbol 1203 EditableTextUses:4 7Used by:1205
Symbol 1204 TextUses:4Used by:1205
Symbol 1205 MovieClip {AllyDiedDialog}Uses:151 152 155 1099 1201 163 1202 199 358 1203 1204Used by:Timeline
Symbol 1206 TextUses:176Used by:1210
Symbol 1207 TextUses:4Used by:1210
Symbol 1208 TextUses:4Used by:1210
Symbol 1209 TextUses:4Used by:1210
Symbol 1210 MovieClip {LootSettings}Uses:152 155 1099 1206 698 461 1207 1208 1209Used by:Timeline
Symbol 1211 BitmapUsed by:1212
Symbol 1212 GraphicUses:1211Used by:1213
Symbol 1213 MovieClipUses:1212Used by:1242
Symbol 1214 GraphicUsed by:1225
Symbol 1215 EditableTextUses:4 7Used by:1225
Symbol 1216 EditableTextUses:7Used by:1225
Symbol 1217 EditableTextUses:4 7Used by:1225
Symbol 1218 EditableTextUses:4 7Used by:1225
Symbol 1219 EditableTextUses:4 7Used by:1225
Symbol 1220 EditableTextUses:4 7Used by:1225
Symbol 1221 EditableTextUses:4 7Used by:1225
Symbol 1222 GraphicUsed by:1225
Symbol 1223 EditableTextUses:4 7Used by:1225
Symbol 1224 EditableTextUses:4 7Used by:1225
Symbol 1225 MovieClip {BattleInfoPanel}Uses:1214 1215 358 1216 1217 704 709 1218 1219 1220 1221 1222 1223 1224Used by:1242  Timeline
Symbol 1226 EditableTextUses:4 7Used by:1242
Symbol 1227 GraphicUsed by:1228
Symbol 1228 MovieClip {BattleActionsBar}Uses:1227 142Used by:1242  Timeline
Symbol 1229 EditableTextUses:4 7Used by:1236
Symbol 1230 EditableTextUses:4 7Used by:1236
Symbol 1231 GraphicUsed by:1235
Symbol 1232 GraphicUsed by:1235
Symbol 1233 GraphicUsed by:1235
Symbol 1234 GraphicUsed by:1235
Symbol 1235 Button {BattleMessageScroller}Uses:1231 1232 1233 1234Used by:1236
Symbol 1236 MovieClip {BattleMessageBox}Uses:1229 1230 1235Used by:1242
Symbol 1237 EditableTextUses:4 7Used by:1242
Symbol 1238 GraphicUsed by:1239 1348
Symbol 1239 MovieClipUses:1238Used by:1241
Symbol 1240 GraphicUsed by:1241
Symbol 1241 MovieClip {InitiativeList}Uses:185 1239 1240Used by:1242  Timeline
Symbol 1242 MovieClip {Battlefield}Uses:1213 1225 769 150 1226 1228 1236 1237 1241 695 712Used by:Timeline
Symbol 1243 EditableTextUses:4 7Used by:1248
Symbol 1244 GraphicUsed by:1245
Symbol 1245 MovieClip {InitiativePositionIndicator}Uses:2 1244Used by:1248  Timeline
Symbol 1246 EditableTextUses:4 7Used by:1248
Symbol 1247 EditableTextUses:4 7Used by:1248
Symbol 1248 MovieClip {InitiativeIcon}Uses:1243 1245 1246 1247Used by:Timeline
Symbol 1249 TextUses:7Used by:1263
Symbol 1250 TextUses:7Used by:1263 1276 1283 1291
Symbol 1251 TextUses:7Used by:1263
Symbol 1252 TextUses:7Used by:1263
Symbol 1253 TextUses:7Used by:1263
Symbol 1254 TextUses:7Used by:1263
Symbol 1255 TextUses:7Used by:1263
Symbol 1256 TextUses:7Used by:1263
Symbol 1257 TextUses:7Used by:1263
Symbol 1258 TextUses:7Used by:1263
Symbol 1259 TextUses:7Used by:1263
Symbol 1260 TextUses:7Used by:1263
Symbol 1261 TextUses:7Used by:1263
Symbol 1262 TextUses:7Used by:1263
Symbol 1263 MovieClip {HelpScreenBattlefield}Uses:2 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262Used by:Timeline
Symbol 1264 GraphicUsed by:1276
Symbol 1265 TextUses:7Used by:1276
Symbol 1266 TextUses:7Used by:1276
Symbol 1267 TextUses:7Used by:1276
Symbol 1268 TextUses:7Used by:1276
Symbol 1269 GraphicUsed by:1276
Symbol 1270 TextUses:7Used by:1276 1283
Symbol 1271 TextUses:7Used by:1276
Symbol 1272 TextUses:7Used by:1276
Symbol 1273 TextUses:7Used by:1276
Symbol 1274 TextUses:7Used by:1276
Symbol 1275 TextUses:7Used by:1276
Symbol 1276 MovieClip {HelpScreenDungeon}Uses:2 1264 1070 1265 1266 1267 1268 1060 1064 1071 1072 945 600 1053 1269 1270 1250 1271 1272 1273 1274 1275Used by:Timeline
Symbol 1277 TextUses:7Used by:1283
Symbol 1278 TextUses:7Used by:1283
Symbol 1279 TextUses:7Used by:1283
Symbol 1280 TextUses:7Used by:1283
Symbol 1281 TextUses:7Used by:1283
Symbol 1282 TextUses:7Used by:1283
Symbol 1283 MovieClip {HelpScreenInventory}Uses:2 1270 1250 1277 1278 1279 1280 1281 1282Used by:Timeline
Symbol 1284 TextUses:7Used by:1291
Symbol 1285 TextUses:7Used by:1291
Symbol 1286 TextUses:7Used by:1291
Symbol 1287 TextUses:7Used by:1291
Symbol 1288 TextUses:7Used by:1291
Symbol 1289 TextUses:7Used by:1291
Symbol 1290 TextUses:7Used by:1291
Symbol 1291 MovieClip {HelpScreenShop}Uses:2 1284 1250 1285 1286 1287 1288 1289 1290Used by:Timeline
Symbol 1292 BitmapUsed by:1293
Symbol 1293 GraphicUses:1292Used by:1294
Symbol 1294 MovieClip {fire_scroll}Uses:1293Used by:1349  Timeline
Symbol 1295 BitmapUsed by:1296 1667
Symbol 1296 GraphicUses:1295Used by:1306
Symbol 1297 GraphicUsed by:1298
Symbol 1298 MovieClipUses:1297Used by:1299  Timeline
Symbol 1299 MovieClip {PowerBar}Uses:418 1298Used by:1306  Timeline
Symbol 1300 GraphicUsed by:1301
Symbol 1301 MovieClip {RedBar}Uses:1300Used by:1302  Timeline
Symbol 1302 MovieClip {HealthBar}Uses:418 1301Used by:1306  Timeline
Symbol 1303 EditableTextUses:4 7Used by:1306
Symbol 1304 GraphicUsed by:1306
Symbol 1305 GraphicUsed by:1306
Symbol 1306 MovieClip {CharacterPortrait}Uses:1296 358 1299 1302 1303 1304 1305Used by:Timeline
Symbol 1307 GraphicUsed by:1308 1318
Symbol 1308 MovieClip {CurrentPortraitHighlight}Uses:1307Used by:Timeline
Symbol 1309 GraphicUsed by:1311 1314
Symbol 1310 GraphicUsed by:1311 1368
Symbol 1311 MovieClip {DeadEffect}Uses:1309 1310Used by:Timeline
Symbol 1312 GraphicUsed by:1313
Symbol 1313 MovieClip {GreenBar}Uses:1312Used by:Timeline
Symbol 1314 MovieClip {HidingEffect}Uses:1309Used by:Timeline
Symbol 1315 GraphicUsed by:1316
Symbol 1316 MovieClip {LightGreenBar}Uses:1315Used by:Timeline
Symbol 1317 MovieClip {PortraitEffected}Uses:455Used by:Timeline
Symbol 1318 MovieClip {PortraitHighlight}Uses:1307Used by:Timeline
Symbol 1319 GraphicUsed by:1320
Symbol 1320 MovieClip {RetreatedEffect}Uses:1319Used by:Timeline
Symbol 1321 GraphicUsed by:1326 1368
Symbol 1322 GraphicUsed by:1325
Symbol 1323 GraphicUsed by:1325
Symbol 1324 GraphicUsed by:1325
Symbol 1325 MovieClip {monstersdend_fla.shield_gleam_256}Uses:1322 1323 1324Used by:1326
Symbol 1326 MovieClip {armor_buff_effect}Uses:1321 185 1325Used by:Timeline
Symbol 1327 GraphicUsed by:1328
Symbol 1328 MovieClip {blind_effect}Uses:1327Used by:Timeline
Symbol 1329 GraphicUses:577Used by:1333
Symbol 1330 BitmapUsed by:1331
Symbol 1331 GraphicUses:1330Used by:1333 1438
Symbol 1332 GraphicUses:603Used by:1333 1438
Symbol 1333 MovieClip {BloodRandom}Uses:1329 1331 1332Used by:1344 1366 1374 1384 1444 1464  Timeline
Symbol 1334 BitmapUsed by:1335 1336
Symbol 1335 GraphicUses:1334Used by:1337
Symbol 1336 GraphicUses:1334Used by:1337
Symbol 1337 MovieClip {blueburst}Uses:454 1335 1336Used by:1351  Timeline
Symbol 1338 GraphicUsed by:1340 1380
Symbol 1339 GraphicUsed by:1340
Symbol 1340 MovieClip {buff_effect}Uses:1338 185 1339Used by:Timeline
Symbol 1341 GraphicUsed by:1342
Symbol 1342 MovieClipUses:1341Used by:1343
Symbol 1343 MovieClip {horz_slash}Uses:1342Used by:1344 1366 1474  Timeline
Symbol 1344 MovieClip {creature_slash}Uses:1343 1333Used by:Timeline
Symbol 1345 GraphicUsed by:1346
Symbol 1346 MovieClipUses:1345Used by:1348
Symbol 1347 GraphicUsed by:1348 1395 1465
Symbol 1348 MovieClip {curse_effect}Uses:1238 185 1346 77 1347Used by:Timeline
Symbol 1349 MovieClip {fire_effect}Uses:2 1294Used by:Timeline
Symbol 1350 GraphicUsed by:1351
Symbol 1351 MovieClip {healeffect}Uses:1337 1350Used by:Timeline
Symbol 1352 GraphicUsed by:1355
Symbol 1353 MovieClipUses:454Used by:1355
Symbol 1354 GraphicUsed by:1355
Symbol 1355 MovieClip {healeffect_green}Uses:1352 1353 1354Used by:Timeline
Symbol 1356 GraphicUsed by:1357
Symbol 1357 MovieClipUses:1356Used by:1358 1359
Symbol 1358 MovieClip {player_multi_slash}Uses:1357Used by:Timeline
Symbol 1359 MovieClip {player_slash}Uses:1357Used by:1360  Timeline
Symbol 1360 MovieClip {player_power_slash}Uses:1359Used by:Timeline
Symbol 1361 GraphicUsed by:1362
Symbol 1362 MovieClipUses:1361Used by:1365 1466
Symbol 1363 GraphicUsed by:1364
Symbol 1364 MovieClip {monstersdend_fla.poisonbubble_276}Uses:1363Used by:1365 1466
Symbol 1365 MovieClip {poisoneffect}Uses:185 1362 1364Used by:Timeline
Symbol 1366 MovieClip {creature_weapon}Uses:1343 1333Used by:Timeline
Symbol 1367 GraphicUsed by:1368
Symbol 1368 MovieClip {revive_effect}Uses:1321 1367 1310 358Used by:Timeline
Symbol 1369 GraphicUsed by:1370
Symbol 1370 MovieClip {buff_quickness_effect}Uses:1369 185Used by:Timeline
Symbol 1371 GraphicUsed by:1372
Symbol 1372 MovieClipUses:1371Used by:1373
Symbol 1373 MovieClip {monstersdend_fla.vert_slash_281}Uses:1372Used by:1374  Timeline
Symbol 1374 MovieClip {creature_spear}Uses:1373 1333Used by:Timeline
Symbol 1375 GraphicUsed by:1376
Symbol 1376 MovieClipUses:1375Used by:1377
Symbol 1377 MovieClip {monstersdend_fla.player_arrow_impact_284}Uses:1376Used by:1378
Symbol 1378 MovieClip {player_arrow}Uses:1377Used by:Timeline
Symbol 1379 GraphicUsed by:1380
Symbol 1380 MovieClip {debuff_effect}Uses:1338 185 454 1379Used by:Timeline
Symbol 1381 GraphicUsed by:1382
Symbol 1382 MovieClipUses:1381Used by:1383
Symbol 1383 MovieClip {monster_arrow_impact}Uses:1382Used by:1384 1444 1464  Timeline
Symbol 1384 MovieClip {monster_arrow}Uses:1383 1333Used by:Timeline
Symbol 1385 GraphicUsed by:1387
Symbol 1386 GraphicUsed by:1387
Symbol 1387 MovieClip {LevelUpGlow}Uses:1385 1386Used by:Timeline
Symbol 1388 GraphicUsed by:1389
Symbol 1389 MovieClip {cosmic_prison}Uses:185 1388Used by:Timeline
Symbol 1390 BitmapUsed by:1391
Symbol 1391 GraphicUses:1390Used by:1394
Symbol 1392 BitmapUsed by:1393
Symbol 1393 GraphicUses:1392Used by:1394
Symbol 1394 MovieClip {frozen_effect}Uses:1391 1393Used by:Timeline
Symbol 1395 MovieClip {lethal_effect}Uses:1347 77Used by:Timeline
Symbol 1396 GraphicUsed by:1397
Symbol 1397 MovieClipUses:1396Used by:1399
Symbol 1398 GraphicUsed by:1399 1402 1443
Symbol 1399 MovieClip {gain_health_effect}Uses:185 1397 1398Used by:1439  Timeline
Symbol 1400 GraphicUsed by:1401
Symbol 1401 MovieClipUses:1400Used by:1402 1443
Symbol 1402 MovieClip {gain_power_effect}Uses:185 1401 1398Used by:1439  Timeline
Symbol 1403 GraphicUsed by:1406
Symbol 1404 GraphicUsed by:1405
Symbol 1405 MovieClipUses:1404Used by:1406 1411
Symbol 1406 MovieClip {clone_effect}Uses:1403 1405Used by:Timeline
Symbol 1407 GraphicUsed by:1408
Symbol 1408 MovieClipUses:1407Used by:1409
Symbol 1409 MovieClip {ClonePortrait}Uses:1408Used by:Timeline
Symbol 1410 GraphicUsed by:1411
Symbol 1411 MovieClip {clone_create_effect}Uses:1410 767 1405Used by:Timeline
Symbol 1412 GraphicUsed by:1413
Symbol 1413 MovieClipUses:1412Used by:1414
Symbol 1414 MovieClip {disintegrate_effect}Uses:1413Used by:Timeline
Symbol 1415 GraphicUsed by:1416
Symbol 1416 MovieClipUses:1415Used by:1417
Symbol 1417 MovieClip {smite_effect}Uses:1416Used by:Timeline
Symbol 1418 GraphicUsed by:1419
Symbol 1419 MovieClipUses:1418Used by:1420
Symbol 1420 MovieClip {player_mage_attack}Uses:1419Used by:Timeline
Symbol 1421 GraphicUsed by:1422
Symbol 1422 MovieClipUses:1421Used by:1423
Symbol 1423 MovieClip {monster_drain_effect}Uses:185 1422Used by:Timeline
Symbol 1424 BitmapUsed by:1425
Symbol 1425 GraphicUses:1424Used by:1438
Symbol 1426 BitmapUsed by:1427
Symbol 1427 GraphicUses:1426Used by:1438
Symbol 1428 GraphicUses:577Used by:1438
Symbol 1429 BitmapUsed by:1430
Symbol 1430 GraphicUses:1429Used by:1438
Symbol 1431 BitmapUsed by:1432
Symbol 1432 GraphicUses:1431Used by:1438
Symbol 1433 GraphicUsed by:1438
Symbol 1434 GraphicUsed by:1438
Symbol 1435 GraphicUsed by:1438
Symbol 1436 GraphicUsed by:1438
Symbol 1437 GraphicUsed by:1438
Symbol 1438 MovieClip {PortraitAnimationFrame}Uses:1425 1427 1428 1331 1332 1430 1432 1433 1434 1435 1436 1437Used by:Timeline
Symbol 1439 MovieClip {gain_both_effect}Uses:1399 1402Used by:Timeline
Symbol 1440 GraphicUsed by:1441 1442 1657
Symbol 1441 MovieClip {summon_effect}Uses:767 1440Used by:Timeline
Symbol 1442 MovieClip {transform_effect}Uses:1440Used by:Timeline
Symbol 1443 MovieClip {lose_power_effect}Uses:185 1401 1398Used by:1444  Timeline
Symbol 1444 MovieClip {monster_arrow_drainpower}Uses:1383 1333 1443Used by:Timeline
Symbol 1445 BitmapUsed by:1446
Symbol 1446 GraphicUses:1445Used by:1455
Symbol 1447 BitmapUsed by:1448
Symbol 1448 GraphicUses:1447Used by:1455
Symbol 1449 BitmapUsed by:1450
Symbol 1450 GraphicUses:1449Used by:1455
Symbol 1451 BitmapUsed by:1452
Symbol 1452 GraphicUses:1451Used by:1455
Symbol 1453 BitmapUsed by:1454
Symbol 1454 GraphicUses:1453Used by:1455
Symbol 1455 MovieClip {RandomLightning}Uses:1446 1448 1450 1452 1454Used by:1456
Symbol 1456 MovieClip {LightningFlash}Uses:1455Used by:1457
Symbol 1457 MovieClip {Lightning}Uses:164 1456Used by:Timeline
Symbol 1458 GraphicUsed by:1459
Symbol 1459 MovieClipUses:1458Used by:1460
Symbol 1460 MovieClip {monster_magic_attack}Uses:1459Used by:Timeline
Symbol 1461 GraphicUsed by:1462
Symbol 1462 MovieClipUses:1461Used by:1463
Symbol 1463 MovieClip {web_effect}Uses:517 1462Used by:Timeline
Symbol 1464 MovieClip {monster_thrown}Uses:1383 1333Used by:Timeline
Symbol 1465 MovieClip {feardeath_effect}Uses:1347 77Used by:Timeline
Symbol 1466 MovieClip {beer_effect}Uses:185 1362 1364Used by:Timeline
Symbol 1467 GraphicUsed by:1470
Symbol 1468 GraphicUsed by:1469
Symbol 1469 MovieClip {monstersdend_fla.QuestionMarkAnimated_328}Uses:1468Used by:1470
Symbol 1470 MovieClip {confuse_effect}Uses:1467 1469Used by:Timeline
Symbol 1471 GraphicUsed by:1472
Symbol 1472 MovieClipUses:1471Used by:1473
Symbol 1473 MovieClip {ShadowPortrait}Uses:1472Used by:Timeline
Symbol 1474 MovieClip {summon_slash}Uses:1343Used by:Timeline
Symbol 1475 FontUsed by:1476 1478
Symbol 1476 TextUses:1475Used by:1477
Symbol 1477 MovieClip {rune_protection}Uses:1476Used by:Timeline
Symbol 1478 TextUses:1475Used by:1479
Symbol 1479 MovieClip {rune_strength}Uses:1478Used by:Timeline
Symbol 1480 Sound {return_of_the_knights_b}Used by:1532
Symbol 1481 Sound {rollingthunder_c}Used by:1532
Symbol 1482 Sound {equip_sound}Used by:1532
Symbol 1483 Sound {equip_sword_sound}Used by:1532
Symbol 1484 Sound {equip_bow_sound}Used by:1532
Symbol 1485 Sound {equip_shield_sound}Used by:1532
Symbol 1486 Sound {destroy_item_sound}Used by:1532
Symbol 1487 Sound {disintegrate_sound}Used by:1532
Symbol 1488 Sound {equip_staff_sound}Used by:1532
Symbol 1489 Sound {battle_start2}Used by:1532
Symbol 1490 Sound {potion_sound}Used by:1532
Symbol 1491 Sound {coins_sound}Used by:1532
Symbol 1492 Sound {lightning_sound}Used by:1532
Symbol 1493 Sound {poison_sound}Used by:1532
Symbol 1494 Sound {freeze_sound}Used by:1532
Symbol 1495 Sound {flames_sound}Used by:1532
Symbol 1496 Sound {armor_buff_sound}Used by:1532
Symbol 1497 Sound {hide3_sound}Used by:1532
Symbol 1498 Sound {mage_staff_sound}Used by:1532
Symbol 1499 Sound {curse_sound}Used by:1532
Symbol 1500 Sound {summon1_sound}Used by:1532
Symbol 1501 Sound {summon2_sound}Used by:1532
Symbol 1502 Sound {arrow_fire_sound}Used by:1532
Symbol 1503 Sound {slash1_sound}Used by:1532
Symbol 1504 Sound {heal1_sound}Used by:1532
Symbol 1505 Sound {writing_sound}Used by:1532
Symbol 1506 Sound {web_squirt_sound}Used by:1532
Symbol 1507 Sound {buff_chant_sound}Used by:1532
Symbol 1508 Sound {debuff_sound}Used by:1532
Symbol 1509 Sound {cosmic_prison_sound}Used by:1532
Symbol 1510 Sound {monster_magic_sound}Used by:1532
Symbol 1511 Sound {power_up_sound}Used by:1532
Symbol 1512 Sound {punch_sound}Used by:1532
Symbol 1513 Sound {blind_sound}Used by:1532
Symbol 1514 Sound {thrown_sound}Used by:1532
Symbol 1515 Sound {creature_slash_sound}Used by:1532
Symbol 1516 Sound {basilisk_sound}Used by:1532
Symbol 1517 Sound {poison_drake_sound}Used by:1532
Symbol 1518 Sound {miss_melee_sound}Used by:1532
Symbol 1519 Sound {miss_ranged_sound}Used by:1532
Symbol 1520 Sound {miss_thrown_sound}Used by:1532
Symbol 1521 Sound {miss_magic_sound}Used by:1532
Symbol 1522 Sound {turn_page_sound}Used by:1532
Symbol 1523 Sound {frozen_wastelands_loop02}Used by:1532
Symbol 1524 Sound {fields_of_honor_loop01}Used by:1532
Symbol 1525 Sound {battlements_loop02}Used by:1532
Symbol 1526 Sound {black_mountain_loop01}Used by:1532
Symbol 1527 Sound {stormbringers_loop01}Used by:1532
Symbol 1528 Sound {hellwars_loop02}Used by:1532
Symbol 1529 Sound {morpheus_calls_loop02}Used by:1532
Symbol 1530 Sound {bonebreaker_loop03}Used by:1532
Symbol 1531 Sound {whirlwind_sound}Used by:1532
Symbol 1532 MovieClipUses:454 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531Used by:Timeline
Symbol 1533 GraphicUsed by:1544
Symbol 1534 EditableTextUses:4 7Used by:1538
Symbol 1535 EditableTextUses:4 7Used by:1538
Symbol 1536 EditableTextUses:4 7Used by:1538
Symbol 1537 EditableTextUses:4 7Used by:1538
Symbol 1538 MovieClipUses:443 1534 1535 1536 1537Used by:1544
Symbol 1539 TextUses:7Used by:1544
Symbol 1540 TextUses:7Used by:1544
Symbol 1541 TextUses:7Used by:1544
Symbol 1542 GraphicUsed by:1544
Symbol 1543 TextUses:7Used by:1544
Symbol 1544 MovieClipUses:1533 1538 1539 1540 1541 1542 1543 404Used by:Timeline
Symbol 1545 GraphicUsed by:1546
Symbol 1546 MovieClipUses:1545 154Used by:1590
Symbol 1547 GraphicUsed by:1550
Symbol 1548 GraphicUsed by:1550 1569
Symbol 1549 TextUses:7Used by:1550
Symbol 1550 MovieClipUses:160 1547 1548 1549Used by:1566
Symbol 1551 MovieClipUsed by:1560
Symbol 1552 MovieClipUses:185Used by:1560
Symbol 1553 GraphicUsed by:1554
Symbol 1554 MovieClipUses:1553Used by:1560
Symbol 1555 GraphicUsed by:1556
Symbol 1556 MovieClipUses:1555Used by:1560
Symbol 1557 GraphicUsed by:1558
Symbol 1558 MovieClip {ClickToScroll}Uses:1557Used by:1560
Symbol 1559 MovieClipUses:418Used by:1560
Symbol 1560 MovieClip {ShopListScrolling}Uses:2 1551 1552 1554 1556 1558 1559Used by:1566 1570  Timeline
Symbol 1561 GraphicUsed by:1565
Symbol 1562 EditableTextUses:4 7Used by:1565
Symbol 1563 GraphicUsed by:1565
Symbol 1564 GraphicUsed by:1565
Symbol 1565 MovieClip {ItemModeTab}Uses:1561 1562 1563 1564Used by:1566 1570
Symbol 1566 MovieClip {SellPanel}Uses:1550 1118 1560 1565Used by:1590
Symbol 1567 GraphicUsed by:1569
Symbol 1568 TextUses:7Used by:1569
Symbol 1569 MovieClipUses:160 1567 1548 1568Used by:1570
Symbol 1570 MovieClip {BuyPanel}Uses:1569 1118 1560 1565Used by:1590
Symbol 1571 BitmapUsed by:1572
Symbol 1572 GraphicUses:1571Used by:1590
Symbol 1573 TextUses:7 4Used by:1590
Symbol 1574 EditableTextUses:4 7Used by:1590
Symbol 1575 EditableTextUses:4 7Used by:1590
Symbol 1576 EditableTextUses:4 7Used by:1590
Symbol 1577 TextUses:7Used by:1590
Symbol 1578 GraphicUsed by:1579
Symbol 1579 MovieClipUses:1578Used by:1582
Symbol 1580 GraphicUsed by:1582
Symbol 1581 EditableTextUses:165Used by:1582
Symbol 1582 MovieClip {SpeechBubble}Uses:1579 1580 1581Used by:1590
Symbol 1583 GraphicUsed by:1590
Symbol 1584 TextUses:176Used by:1590
Symbol 1585 GraphicUsed by:1589
Symbol 1586 EditableTextUses:4 7Used by:1589
Symbol 1587 GraphicUsed by:1589
Symbol 1588 GraphicUsed by:1589
Symbol 1589 MovieClip {BuySellTab}Uses:1585 1586 1587 1588Used by:1590
Symbol 1590 MovieClip {Shop}Uses:154 1546 769 698 712 695 1566 1570 199 1572 691 1573 358 1574 1575 1576 714 715 717 461 1577 1582 1583 1584 1589 380Used by:Timeline
Symbol 1591 GraphicUsed by:1593
Symbol 1592 GraphicUsed by:1593
Symbol 1593 MovieClip {monstersdend_fla.ListEntryBG_355}Uses:1591 1592Used by:1597
Symbol 1594 EditableTextUses:4 7Used by:1597
Symbol 1595 EditableTextUses:4 7Used by:1597
Symbol 1596 EditableTextUses:4 7Used by:1597
Symbol 1597 MovieClip {ShopListEntry}Uses:1593 1594 1595 1596 643 983Used by:Timeline
Symbol 1598 TextUses:176Used by:1603
Symbol 1599 TextUses:187Used by:1601
Symbol 1600 TextUses:187Used by:1601
Symbol 1601 ButtonUses:1599 1600 185Used by:1603
Symbol 1602 GraphicUsed by:1603
Symbol 1603 MovieClip {CampaignSelect}Uses:1598 431 1601 1602 371Used by:Timeline
Symbol 1604 EditableTextUses:176 544Used by:1605
Symbol 1605 MovieClip {CombatFloater}Uses:1604Used by:Timeline
Symbol 1606 GraphicUsed by:1617
Symbol 1607 EditableTextUses:4 7Used by:1617
Symbol 1608 TextUses:7Used by:1616
Symbol 1609 MovieClipUses:1034Used by:1616
Symbol 1610 TextUses:7Used by:1616
Symbol 1611 TextUses:7Used by:1616
Symbol 1612 TextUses:7Used by:1616
Symbol 1613 TextUses:7Used by:1616
Symbol 1614 TextUses:7Used by:1616
Symbol 1615 TextUses:7Used by:1616
Symbol 1616 MovieClipUses:1608 1609 1610 1611 1034 1612 1613 1614 1615Used by:1617
Symbol 1617 MovieClip {ItemComparison}Uses:1606 1607 1616Used by:Timeline
Symbol 1618 GraphicUsed by:1619
Symbol 1619 MovieClipUses:1618Used by:1620
Symbol 1620 MovieClip {SpecialEncounterIcon}Uses:1619Used by:Timeline
Symbol 1621 TextUses:4Used by:1625
Symbol 1622 EditableTextUses:4 7Used by:1625
Symbol 1623 EditableTextUses:4 7Used by:1625
Symbol 1624 TextUses:4Used by:1625
Symbol 1625 MovieClip {SatyrQuestDialog}Uses:151 152 155 156 163 1621 1622 1194 199 358 1623 1624Used by:Timeline
Symbol 1626 GraphicUsed by:1632
Symbol 1627 TextUses:4Used by:1632
Symbol 1628 TextUses:4Used by:1632
Symbol 1629 TextUses:4Used by:1632
Symbol 1630 TextUses:4Used by:1632
Symbol 1631 GraphicUsed by:1632
Symbol 1632 MovieClip {BattleInfoPanelKey}Uses:1626 1627 1628 1629 1630 1631Used by:Timeline
Symbol 1633 TextUses:187Used by:1649 1694
Symbol 1634 TextUses:187Used by:1649
Symbol 1635 GraphicUsed by:1649
Symbol 1636 BitmapUsed by:1637
Symbol 1637 GraphicUses:1636Used by:1649
Symbol 1638 TextUses:4Used by:1649
Symbol 1639 TextUses:187Used by:1642
Symbol 1640 TextUses:187Used by:1642
Symbol 1641 GraphicUsed by:1642
Symbol 1642 ButtonUses:1639 1640 1641Used by:1649
Symbol 1643 TextUses:187Used by:1645
Symbol 1644 TextUses:187Used by:1645
Symbol 1645 ButtonUses:1643 1644 125Used by:1649
Symbol 1646 TextUses:187Used by:1648
Symbol 1647 TextUses:187Used by:1648
Symbol 1648 ButtonUses:1646 1647 125Used by:1649
Symbol 1649 MovieClip {SurvivalPrep}Uses:1633 1634 1635 1637 1638 371 1642 1645 1648Used by:Timeline
Symbol 1650 EditableTextUses:4 7Used by:1652
Symbol 1651 GraphicUsed by:1652
Symbol 1652 MovieClip {AccuracyRoll}Uses:1650 1651Used by:Timeline
Symbol 1653 MovieClip {TeleportTransition}Uses:164Used by:Timeline
Symbol 1654 GraphicUsed by:1655
Symbol 1655 MovieClip {PortraitSelect}Uses:1654Used by:Timeline
Symbol 1656 MovieClip {FadeFromPage}Uses:2Used by:Timeline
Symbol 1657 MovieClip {summon_whirlwind}Uses:767 1440Used by:Timeline
Symbol 1658 MovieClip {FadeToBlack}Uses:2Used by:Timeline
Symbol 1659 MovieClip {FadeScreenTransition}Uses:2 164Used by:Timeline
Symbol 1660 GraphicUsed by:1665
Symbol 1661 FontUsed by:1662 1664
Symbol 1662 TextUses:1661Used by:1664
Symbol 1663 TextUsed by:1664
Symbol 1664 MovieClipUses:1661 1662 1663Used by:1665
Symbol 1665 MovieClip {monstersdend_fla.TableIntro_378}Uses:380 155 1660 1664 514 518 521 524 2Used by:1666
Symbol 1666 MovieClip {Intro}Uses:2 1665Used by:Timeline
Symbol 1667 GraphicUses:1295Used by:1668 1674
Symbol 1668 MovieClipUses:1667Used by:1674
Symbol 1669 ShapeTweeningUsed by:1674
Symbol 1670 GraphicUsed by:1674
Symbol 1671 GraphicUsed by:1674
Symbol 1672 GraphicUsed by:1674
Symbol 1673 ShapeTweeningUsed by:1674
Symbol 1674 MovieClip {PageTurn}Uses:185 1668 1669 1670 1671 1667 1672 1673Used by:Timeline
Symbol 1675 BitmapUsed by:1676
Symbol 1676 GraphicUses:1675Used by:1681
Symbol 1677 TextUses:187Used by:1681
Symbol 1678 TextUses:187Used by:1681
Symbol 1679 GraphicUsed by:1681
Symbol 1680 TextUses:4Used by:1681
Symbol 1681 MovieClip {CampaignPaneOriginal}Uses:1676 1677 1678 1679 1680Used by:Timeline
Symbol 1682 BitmapUsed by:1683
Symbol 1683 GraphicUses:1682Used by:1688
Symbol 1684 TextUses:187Used by:1688
Symbol 1685 TextUses:187Used by:1688
Symbol 1686 GraphicUsed by:1688
Symbol 1687 TextUses:4Used by:1688
Symbol 1688 MovieClip {CampaignPaneNew}Uses:1683 1684 1685 1686 1687Used by:Timeline
Symbol 1689 GraphicUsed by:1694
Symbol 1690 TextUses:187Used by:1694
Symbol 1691 TextUses:4Used by:1694
Symbol 1692 BitmapUsed by:1693
Symbol 1693 GraphicUses:1692Used by:1694
Symbol 1694 MovieClip {CampaignPaneSurvival}Uses:1689 1633 1690 1691 1693Used by:Timeline
Symbol 1695 Sound {Smash}
Symbol 1696 GraphicUsed by:1704
Symbol 1697 GraphicUsed by:1702
Symbol 1698 GraphicUsed by:1702
Symbol 1699 GraphicUsed by:1702
Symbol 1700 GraphicUsed by:1702
Symbol 1701 GraphicUsed by:1702
Symbol 1702 MovieClip {SoundIcon}Uses:1697 1698 1699 1700 1701Used by:1704
Symbol 1703 TextUses:7Used by:1704
Symbol 1704 MovieClip {SoundButton}Uses:160 1696 1702 1703
Symbol 1705 GraphicUsed by:1709
Symbol 1706 GraphicUsed by:1709
Symbol 1707 GraphicUsed by:1709
Symbol 1708 GraphicUsed by:1709
Symbol 1709 MovieClip {TreasureCategoryTake}Uses:1705 1706 1707 1708
Symbol 1710 MovieClipUses:2Used by:1738
Symbol 1711 GraphicUsed by:1712
Symbol 1712 ButtonUses:1711Used by:1738
Symbol 1713 GraphicUsed by:1738
Symbol 1714 GraphicUsed by:1715
Symbol 1715 MovieClipUses:1714Used by:1733 1738
Symbol 1716 GraphicUsed by:1717
Symbol 1717 MovieClipUses:1716Used by:1732 1738
Symbol 1718 GraphicUsed by:1719
Symbol 1719 MovieClipUses:1718Used by:1726 1732 1733 1738
Symbol 1720 GraphicUsed by:1721
Symbol 1721 MovieClipUses:1720Used by:1726 1732 1733 1738
Symbol 1722 GraphicUsed by:1723
Symbol 1723 MovieClipUses:1722Used by:1726 1732 1733 1738
Symbol 1724 GraphicUsed by:1725
Symbol 1725 MovieClipUses:1724Used by:1726 1732 1733 1738
Symbol 1726 MovieClipUses:1719 1721 1723 1725Used by:1738
Symbol 1727 GraphicUsed by:1738
Symbol 1728 GraphicUsed by:1729 1738
Symbol 1729 MovieClipUses:1728Used by:1738
Symbol 1730 GraphicUsed by:1738
Symbol 1731 GraphicUsed by:1733
Symbol 1732 MovieClipUses:1717 1719 1721 1723 1725Used by:1733
Symbol 1733 MovieClipUses:1731 1715 1732 1719 1721 1723 1725Used by:1738
Symbol 1734 GraphicUsed by:1735
Symbol 1735 MovieClipUses:1734Used by:1738
Symbol 1736 TextUses:16Used by:1737
Symbol 1737 MovieClipUses:1736Used by:1738
Symbol 1738 MovieClip {monstersdend_fla.KongIntro_384}Uses:1710 1712 2 1713 1715 1717 1726 1727 1729 1730 1719 1721 1723 1725 1733 1735 1728 1737Used by:Timeline
Symbol 1739 GraphicUsed by:1740
Symbol 1740 MovieClipUses:1739Used by:1754
Symbol 1741 SoundUsed by:1754
Symbol 1742 SoundUsed by:1754
Symbol 1743 GraphicUsed by:1754
Symbol 1744 SoundUsed by:1754
Symbol 1745 SoundUsed by:1754
Symbol 1746 GraphicUsed by:1754
Symbol 1747 SoundUsed by:1754
Symbol 1748 SoundUsed by:1754
Symbol 1749 GraphicUsed by:1754
Symbol 1750 GraphicUsed by:1751
Symbol 1751 MovieClipUses:1750Used by:1754
Symbol 1752 SoundUsed by:1754
Symbol 1753 SoundUsed by:1754
Symbol 1754 MovieClip {monstersdend_fla.ArmorIntro_399}Uses:1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1751 1752 1753Used by:Timeline
Symbol 1755 EditableTextUses:4 7Used by:1759
Symbol 1756 TextUses:4Used by:1759
Symbol 1757 EditableTextUses:4 7Used by:1759
Symbol 1758 EditableTextUses:4Used by:1759
Symbol 1759 MovieClip {DungeonMain}Uses:1755 1756 1757 1758Used by:Timeline

Instance Names

"bar"Frame 1Symbol 3 MovieClip
"loaded_label"Frame 1Symbol 5 EditableText
"total_label"Frame 1Symbol 6 EditableText
"clickPlayButton"Frame 1Symbol 10 Button
"errorText"Frame 1Symbol 12 EditableText
"onKong"Frame 1Symbol 57 MovieClip
"adBox"Frame 1Symbol 60 MovieClip
"kongIntro"Frame 4Symbol 1738 MovieClip {monstersdend_fla.KongIntro_384}
"armorIntro"Frame 5Symbol 1754 MovieClip {monstersdend_fla.ArmorIntro_399}
"dungeonMain"Frame 6Symbol 1759 MovieClip {DungeonMain}
"sponsoredText"Symbol 57 MovieClip Frame 1Symbol 14 EditableText
"kongLogo"Symbol 57 MovieClip Frame 1Symbol 29 Button
"biclopsLogo"Symbol 57 MovieClip Frame 1Symbol 32 Button
"armorLogo"Symbol 57 MovieClip Frame 1Symbol 40 MovieClip
"biclopsLogo"Symbol 57 MovieClip Frame 2Symbol 56 Button
"bg"Symbol 142 MovieClip {SkillIcon} Frame 1Symbol 63 MovieClip {monstersdend_fla.SkillIconBG_16}
"slot1"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"slot2"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"slot3"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"slot4"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"slot5"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"slot6"Symbol 150 MovieClip {SkillBar} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"skillRank"Symbol 173 MovieClip {PassiveSkillIcon} Frame 1Symbol 166 EditableText
"unlock1"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock2"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock3"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock4"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"start1"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"start2"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"start3"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock5"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock6"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock7"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"unlock8"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 142 MovieClip {SkillIcon}
"continue_btn"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 163 MovieClip
"passive1"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"passive2"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"class_label"Symbol 180 MovieClip {SkillsPreview} Frame 1Symbol 177 EditableText
"playerGraphic"Symbol 361 MovieClip {CharacterInfo} Frame 1Symbol 358 MovieClip {CharGraphic}
"playerName"Symbol 361 MovieClip {CharacterInfo} Frame 1Symbol 359 EditableText
"playerClass"Symbol 361 MovieClip {CharacterInfo} Frame 1Symbol 360 EditableText
"load_btn"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 186 Button
"del_btn"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 191 Button
"levelText"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 192 EditableText
"campaignText"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 193 EditableText
"rulesText"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 194 EditableText
"difficultyNumber"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 196 EditableText
"scoreField"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 198 EditableText
"char1"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 361 MovieClip {CharacterInfo}
"char2"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 361 MovieClip {CharacterInfo}
"char3"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 361 MovieClip {CharacterInfo}
"char4"Symbol 362 MovieClip {SaveGameStatus} Frame 1Symbol 361 MovieClip {CharacterInfo}
"status"Symbol 368 MovieClip {SaveGameStatusContainer} Frame 1Symbol 362 MovieClip {SaveGameStatus}
"empty_panel"Symbol 368 MovieClip {SaveGameStatusContainer} Frame 1Symbol 367 Button
"party1"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 368 MovieClip {SaveGameStatusContainer}
"party2"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 368 MovieClip {SaveGameStatusContainer}
"party3"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 368 MovieClip {SaveGameStatusContainer}
"optionsButton"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 371 Button {OptionsBookButton}
"highestLevelField"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 374 EditableText
"highestRatingField"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 375 EditableText
"highestWaveField"Symbol 378 MovieClip {LoadParty} Frame 1Symbol 377 EditableText
"bg"Symbol 411 MovieClip Frame 1Symbol 408 MovieClip
"logo"Symbol 426 MovieClip Frame 1Symbol 425 Button
"random_name_btn"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 392 MovieClip
"portrait"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 358 MovieClip {CharGraphic}
"portrait_right"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 393 Button {SelectArrow}
"class_text"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 394 EditableText
"gender_icon"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 398 MovieClip
"delete_button"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 404 Button
"name_text"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 405 EditableText
"class1"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class2"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class3"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class5"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class4"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class6"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"class7"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 411 MovieClip
"customPortraitButton"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 414 Button
"portrait_left"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 393 Button {SelectArrow}
"theText"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 415 EditableText
"skill_preview"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 419 Button
"description_text"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 420 EditableText
"charLocked"Symbol 427 MovieClip {CharCreationPanel} Frame 1Symbol 426 MovieClip
"empty1"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 389 Button
"empty2"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 389 Button
"empty3"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 389 Button
"empty4"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 389 Button
"char1"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 427 MovieClip {CharCreationPanel}
"char2"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 427 MovieClip {CharCreationPanel}
"char3"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 427 MovieClip {CharCreationPanel}
"char4"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 427 MovieClip {CharCreationPanel}
"optionsButton"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 371 Button {OptionsBookButton}
"enter_button"Symbol 432 MovieClip {PartyCreation} Frame 1Symbol 431 Button {NewProceedButton}
"low"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 1Symbol 444 EditableText
"mid"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 1Symbol 445 EditableText
"full"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 1Symbol 446 EditableText
"off"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 1Symbol 447 EditableText
"global_selector"Symbol 453 MovieClip {VolumeControlMenu} Frame 1Symbol 448 MovieClip {VolumeSelectorMenu}
"music_selector"Symbol 453 MovieClip {VolumeControlMenu} Frame 1Symbol 448 MovieClip {VolumeSelectorMenu}
"sfx_selector"Symbol 453 MovieClip {VolumeControlMenu} Frame 1Symbol 448 MovieClip {VolumeSelectorMenu}
"hitBox"Symbol 461 MovieClip {dCheckBox} Frame 1Symbol 455 MovieClip
"description"Symbol 461 MovieClip {dCheckBox} Frame 1Symbol 457 EditableText
"med"Symbol 467 MovieClip {QualitySelectorMenu} Frame 1Symbol 463 EditableText
"high"Symbol 467 MovieClip {QualitySelectorMenu} Frame 1Symbol 464 EditableText
"best"Symbol 467 MovieClip {QualitySelectorMenu} Frame 1Symbol 465 EditableText
"low"Symbol 467 MovieClip {QualitySelectorMenu} Frame 1Symbol 466 EditableText
"onLabel"Symbol 474 MovieClip {OnOffSelectorMenu} Frame 1Symbol 472 EditableText
"offLabel"Symbol 474 MovieClip {OnOffSelectorMenu} Frame 1Symbol 473 EditableText
"low"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 1Symbol 482 EditableText
"med"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 1Symbol 483 EditableText
"long"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 1Symbol 484 EditableText
"off"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 1Symbol 485 EditableText
"yes_btn"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 163 MovieClip
"vc"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 453 MovieClip {VolumeControlMenu}
"showHintsBox"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 461 MovieClip {dCheckBox}
"quality_selector"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 467 MovieClip {QualitySelectorMenu}
"blur_selector"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 474 MovieClip {OnOffSelectorMenu}
"portrait_selector"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 474 MovieClip {OnOffSelectorMenu}
"tooltip_selector"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 486 MovieClip {TooltipSelectorMenu}
"pathfinding_selector"Symbol 490 MovieClip {OptionsScreen} Frame 1Symbol 474 MovieClip {OnOffSelectorMenu}
"yes_btn"Symbol 512 MovieClip {CreditsScreen} Frame 1Symbol 163 MovieClip
"biclops_link"Symbol 512 MovieClip {CreditsScreen} Frame 1Symbol 496 Button
"cerberus_link"Symbol 512 MovieClip {CreditsScreen} Frame 1Symbol 500 Button
"fglLogo"Symbol 512 MovieClip {CreditsScreen} Frame 1Symbol 511 MovieClip {monstersdend_fla.FGL_logo_68}
"biclopsLogo"Symbol 512 MovieClip {CreditsScreen} Frame 1Symbol 56 Button
"continue_button"Symbol 525 MovieClip Frame 1Symbol 518 Button
"credits_button"Symbol 525 MovieClip Frame 1Symbol 521 Button
"options_button"Symbol 525 MovieClip Frame 1Symbol 524 Button
"muteButton"Symbol 549 MovieClip Frame 1Symbol 533 MovieClip {MuteButton}
"armorButton"Symbol 549 MovieClip Frame 1Symbol 537 Button
"sponsorButton"Symbol 549 MovieClip Frame 1Symbol 543 Button
"playMoreGamesText"Symbol 549 MovieClip Frame 1Symbol 545 EditableText
"biclopsButton"Symbol 549 MovieClip Frame 1Symbol 548 Button
"cover"Symbol 552 MovieClip {TitleScreen} Frame 1Symbol 525 MovieClip
"buttonHintText"Symbol 552 MovieClip {TitleScreen} Frame 1Symbol 528 EditableText
"logoLine"Symbol 552 MovieClip {TitleScreen} Frame 1Symbol 549 MovieClip
"versionText"Symbol 552 MovieClip {TitleScreen} Frame 1Symbol 550 EditableText
"versionText"Symbol 552 MovieClip {TitleScreen} Frame 19Symbol 551 EditableText
"floor"Symbol 594 MovieClip {rCell} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 594 MovieClip {rCell} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"floor"Symbol 596 MovieClip {rChamber} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 596 MovieClip {rChamber} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"gfx"Symbol 600 MovieClip {rCorridorH} Frame 1Symbol 599 MovieClip
"tint"Symbol 600 MovieClip {rCorridorH} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"gfx"Symbol 601 MovieClip {rCorridorV} Frame 1Symbol 599 MovieClip
"tint"Symbol 601 MovieClip {rCorridorV} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"floor"Symbol 602 MovieClip {rGallery} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 602 MovieClip {rGallery} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"floor"Symbol 605 MovieClip {rLargeRoom} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 605 MovieClip {rLargeRoom} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"floor"Symbol 606 MovieClip {rTallRoom} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 606 MovieClip {rTallRoom} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"floor"Symbol 607 MovieClip {rWideRoom} Frame 1Symbol 571 MovieClip {RandomFloor}
"tint"Symbol 607 MovieClip {rWideRoom} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"door_gfx"Symbol 610 MovieClip {DoorIcon} Frame 1Symbol 609 MovieClip
"gfx"Symbol 614 MovieClip {CorridorConnectorH} Frame 1Symbol 613 MovieClip
"tint"Symbol 614 MovieClip {CorridorConnectorH} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"gfx"Symbol 615 MovieClip {CorridorConnectorV} Frame 1Symbol 613 MovieClip
"tint"Symbol 615 MovieClip {CorridorConnectorV} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"tint"Symbol 622 MovieClip {rDemonRoom} Frame 1Symbol 574 MovieClip {monstersdend_fla.RoomTint_92}
"rune1"Symbol 622 MovieClip {rDemonRoom} Frame 2Symbol 621 MovieClip
"rune2"Symbol 622 MovieClip {rDemonRoom} Frame 3Symbol 621 MovieClip
"rune3"Symbol 622 MovieClip {rDemonRoom} Frame 4Symbol 621 MovieClip
"rune4"Symbol 622 MovieClip {rDemonRoom} Frame 5Symbol 621 MovieClip
"rune5"Symbol 622 MovieClip {rDemonRoom} Frame 6Symbol 621 MovieClip
"rune3"Symbol 622 MovieClip {rDemonRoom} Frame 7Symbol 621 MovieClip
"rune2"Symbol 622 MovieClip {rDemonRoom} Frame 7Symbol 621 MovieClip
"rune6"Symbol 622 MovieClip {rDemonRoom} Frame 7Symbol 621 MovieClip
"rune4"Symbol 622 MovieClip {rDemonRoom} Frame 8Symbol 621 MovieClip
"rune7"Symbol 622 MovieClip {rDemonRoom} Frame 8Symbol 621 MovieClip
"rune8"Symbol 622 MovieClip {rDemonRoom} Frame 9Symbol 621 MovieClip
"rune9"Symbol 622 MovieClip {rDemonRoom} Frame 10Symbol 621 MovieClip
"tooltip_bg"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 624 MovieClip
"title_label"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 625 EditableText
"t1"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 626 EditableText
"p1"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"p2"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"p3"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"p4"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"p5"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"p6"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 358 MovieClip {CharGraphic}
"t2"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 627 EditableText
"t3"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 628 EditableText
"t4"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 629 EditableText
"t5"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 630 EditableText
"t6"Symbol 632 MovieClip {HordeTooltip} Frame 1Symbol 631 EditableText
"tooltip_bg"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 624 MovieClip
"name_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 633 EditableText
"stats_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 634 EditableText
"usable_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 635 EditableText
"type_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 636 EditableText
"level_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 637 EditableText
"enchanted_label"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 638 EditableText
"equipped_text"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 640 MovieClip
"priceLabel"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 641 EditableText
"gold"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 643 MovieClip
"specialLabel"Symbol 645 MovieClip {ItemTooltip} Frame 1Symbol 644 EditableText
"tooltip_bg"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 624 MovieClip
"title_label"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 646 EditableText
"text_label"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 647 EditableText
"requires_label"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 648 EditableText
"power_cost_label"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 649 EditableText
"increase_label"Symbol 651 MovieClip {SkillTooltip} Frame 1Symbol 650 EditableText
"tooltip_bg"Symbol 654 MovieClip {MiscTooltip} Frame 1Symbol 624 MovieClip
"title_label"Symbol 654 MovieClip {MiscTooltip} Frame 1Symbol 652 EditableText
"text_label"Symbol 654 MovieClip {MiscTooltip} Frame 1Symbol 653 EditableText
"tooltip_bg"Symbol 659 MovieClip {PassiveSkillTooltip} Frame 1Symbol 624 MovieClip
"title_label"Symbol 659 MovieClip {PassiveSkillTooltip} Frame 1Symbol 655 EditableText
"text_label"Symbol 659 MovieClip {PassiveSkillTooltip} Frame 1Symbol 656 EditableText
"rank_label"Symbol 659 MovieClip {PassiveSkillTooltip} Frame 1Symbol 658 EditableText
"filterLabel"Symbol 667 MovieClip {InvFilter} Frame 1Symbol 665 EditableText
"filterLabel"Symbol 670 MovieClip {InvFilterRecommend} Frame 1Symbol 669 EditableText
"filterAll"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"filterUsable"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"filterWeapons"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"filterArmor"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"filterMisc"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"filterRecommend"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 670 MovieClip {InvFilterRecommend}
"sortType"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"sortRarity"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"sortLevel"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"sortNone"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"sortValue"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 667 MovieClip {InvFilter}
"sortDirection"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 675 MovieClip
"count_label"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 677 EditableText
"ignoreArmorBox"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 461 MovieClip {dCheckBox}
"workingAnim"Symbol 680 MovieClip {InventoryPanel} Frame 1Symbol 679 MovieClip {monstersdend_fla.InventoryProcessing_125}
"boots"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"offhand"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"ring"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"weapon"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"gloves"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"armor"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"head"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"cloak"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"legs"Symbol 691 MovieClip {Paperdoll} Frame 1Symbol 690 MovieClip {PaperdollEmptySlot}
"bar"Symbol 704 MovieClip {NumericIndicatorHealth} Frame 1Symbol 702 MovieClip
"numbers"Symbol 704 MovieClip {NumericIndicatorHealth} Frame 1Symbol 703 EditableText
"bar"Symbol 709 MovieClip {NumericIndicatorPower} Frame 1Symbol 707 MovieClip
"numbers"Symbol 709 MovieClip {NumericIndicatorPower} Frame 1Symbol 708 EditableText
"goldLabel"Symbol 717 MovieClip {GoldDisplay} Frame 1Symbol 716 EditableText
"goldIcon"Symbol 717 MovieClip {GoldDisplay} Frame 1Symbol 643 MovieClip
"flasher"Symbol 728 MovieClip {InventoryTab} Frame 1Symbol 725 MovieClip {tab_flash}
"tab_text"Symbol 728 MovieClip {InventoryTab} Frame 1Symbol 726 EditableText
"nlabel"Symbol 750 MovieClip {StatNumber} Frame 1Symbol 749 EditableText
"str_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"end_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"dex_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"int_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"accuracy_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"armor_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"damage_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"reduction_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"poisonResist_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"stunResist_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"powerRegen_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"healthRegen_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"quickness_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"statpoints_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"vampiric_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"stun_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"poison_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"reflection_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"blind_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"lethality_number"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 750 MovieClip {StatNumber}
"strength_inc"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 754 MovieClip {StatIncreaseButton}
"endurance_inc"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 754 MovieClip {StatIncreaseButton}
"dexterity_inc"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 754 MovieClip {StatIncreaseButton}
"intellect_inc"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 754 MovieClip {StatIncreaseButton}
"undo_btn"Symbol 758 MovieClip {CharStatsPanel} Frame 1Symbol 757 Button
"idle1"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle2"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle3"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle6"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle7"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle8"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle4"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle5"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle9"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"idle10"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active1"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active2"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active3"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active4"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active5"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"active6"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 144 MovieClip {SkillIconEmpty}
"passiveDefense"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"passiveOffense"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"skillpoints_number"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 762 EditableText
"newskills_button"Symbol 765 MovieClip {CharSkillsPanel} Frame 1Symbol 764 EditableText
"stats_tab"Symbol 766 MovieClip {CharInfoPanel} Frame 1Symbol 728 MovieClip {InventoryTab}
"skills_tab"Symbol 766 MovieClip {CharInfoPanel} Frame 1Symbol 728 MovieClip {InventoryTab}
"stats_panel"Symbol 766 MovieClip {CharInfoPanel} Frame 1Symbol 758 MovieClip {CharStatsPanel}
"skills_panel"Symbol 766 MovieClip {CharInfoPanel} Frame 1Symbol 765 MovieClip {CharSkillsPanel}
"empty"Symbol 769 MovieClip {EmptyPortrait} Frame 1Symbol 768 MovieClip
"highlight1"Symbol 770 MovieClip {Inventory} Frame 1Symbol 662 MovieClip
"highlight2"Symbol 770 MovieClip {Inventory} Frame 1Symbol 662 MovieClip
"party_items"Symbol 770 MovieClip {Inventory} Frame 1Symbol 680 MovieClip {InventoryPanel}
"statusbar"Symbol 770 MovieClip {Inventory} Frame 1Symbol 681 EditableText
"destroy"Symbol 770 MovieClip {Inventory} Frame 1Symbol 684 MovieClip {ItemDestroyTarget}
"paperdoll"Symbol 770 MovieClip {Inventory} Frame 1Symbol 691 MovieClip {Paperdoll}
"help_btn"Symbol 770 MovieClip {Inventory} Frame 1Symbol 695 MovieClip {HelpButton}
"exit_btn"Symbol 770 MovieClip {Inventory} Frame 1Symbol 698 MovieClip
"large_portrait"Symbol 770 MovieClip {Inventory} Frame 1Symbol 358 MovieClip {CharGraphic}
"player_name_label"Symbol 770 MovieClip {Inventory} Frame 1Symbol 699 EditableText
"player_level_label"Symbol 770 MovieClip {Inventory} Frame 1Symbol 700 EditableText
"player_health_bar"Symbol 770 MovieClip {Inventory} Frame 1Symbol 704 MovieClip {NumericIndicatorHealth}
"player_power_bar"Symbol 770 MovieClip {Inventory} Frame 1Symbol 709 MovieClip {NumericIndicatorPower}
"options_btn"Symbol 770 MovieClip {Inventory} Frame 1Symbol 712 MovieClip {OptionsButton}
"goldDisplay"Symbol 770 MovieClip {Inventory} Frame 1Symbol 717 MovieClip {GoldDisplay}
"menu_btn"Symbol 770 MovieClip {Inventory} Frame 1Symbol 720 MovieClip
"info_panel"Symbol 770 MovieClip {Inventory} Frame 1Symbol 766 MovieClip {CharInfoPanel}
"empty1"Symbol 770 MovieClip {Inventory} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty2"Symbol 770 MovieClip {Inventory} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty3"Symbol 770 MovieClip {Inventory} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty4"Symbol 770 MovieClip {Inventory} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"bg"Symbol 983 MovieClip {InventoryIcon} Frame 1Symbol 771 MovieClip
"enchantGlow"Symbol 983 MovieClip {InventoryIcon} Frame 1Symbol 776 MovieClip {monstersdend_fla.IconEnchantGlow_151}
"stack_size"Symbol 983 MovieClip {InventoryIcon} Frame 1Symbol 778 EditableText
"outline"Symbol 983 MovieClip {InventoryIcon} Frame 1Symbol 786 MovieClip {InventoryIconBg}
"bg"Symbol 993 MovieClip {BuySkillPanel} Frame 1Symbol 985 MovieClip
"sk_icon"Symbol 993 MovieClip {BuySkillPanel} Frame 1Symbol 142 MovieClip {SkillIcon}
"sk_description"Symbol 993 MovieClip {BuySkillPanel} Frame 1Symbol 986 EditableText
"buyButton"Symbol 993 MovieClip {BuySkillPanel} Frame 1Symbol 992 Button
"bg"Symbol 995 MovieClip {BuySkillPanelR} Frame 1Symbol 985 MovieClip
"sk_icon"Symbol 995 MovieClip {BuySkillPanelR} Frame 1Symbol 142 MovieClip {SkillIcon}
"sk_description"Symbol 995 MovieClip {BuySkillPanelR} Frame 1Symbol 994 EditableText
"buyButton"Symbol 995 MovieClip {BuySkillPanelR} Frame 1Symbol 992 Button
"sk1"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 993 MovieClip {BuySkillPanel}
"sk2"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 993 MovieClip {BuySkillPanel}
"sk3"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 993 MovieClip {BuySkillPanel}
"sk4"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 993 MovieClip {BuySkillPanel}
"sk5"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 995 MovieClip {BuySkillPanelR}
"sk6"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 995 MovieClip {BuySkillPanelR}
"sk7"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 995 MovieClip {BuySkillPanelR}
"sk8"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 995 MovieClip {BuySkillPanelR}
"pass1_icon"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"pass1_description"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 996 EditableText
"pass1_button"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 992 Button
"pass2_icon"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 173 MovieClip {PassiveSkillIcon}
"pass2_description"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 997 EditableText
"pass2_button"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 992 Button
"points_txt"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 1000 EditableText
"cancel_btn"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 1003 MovieClip
"continue_btn"Symbol 1004 MovieClip {BuySkills} Frame 1Symbol 163 MovieClip
"bar_mask"Symbol 1020 MovieClip {ProgressCleared} Frame 1Symbol 1014 MovieClip
"holder"Symbol 1020 MovieClip {ProgressCleared} Frame 1Symbol 1018 MovieClip
"label"Symbol 1020 MovieClip {ProgressCleared} Frame 1Symbol 1019 EditableText
"bar_mask"Symbol 1023 MovieClip {ProgressExplored} Frame 1Symbol 1014 MovieClip
"holder"Symbol 1023 MovieClip {ProgressExplored} Frame 1Symbol 1018 MovieClip
"label"Symbol 1023 MovieClip {ProgressExplored} Frame 1Symbol 1022 EditableText
"betaLevel"Symbol 1048 MovieClip Frame 1Symbol 1045 EditableText
"betaEquipment"Symbol 1048 MovieClip Frame 1Symbol 1046 EditableText
"betaHeal"Symbol 1048 MovieClip Frame 1Symbol 1047 EditableText
"slot1"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"slot2"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"slot3"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"slot4"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"items_label"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1009 EditableText
"rating_label"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1010 EditableText
"level_label"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1011 EditableText
"campaign_label"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1012 EditableText
"cleared_bar"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1020 MovieClip {ProgressCleared}
"explored_bar"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1023 MovieClip {ProgressExplored}
"help_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 695 MovieClip {HelpButton}
"hint_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1026 MovieClip
"menu_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 720 MovieClip
"inventory_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1029 MovieClip
"options_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 712 MovieClip {OptionsButton}
"rating_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1032 MovieClip
"descend_button"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1035 MovieClip
"rest_button"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1036 MovieClip
"level_debug"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1037 EditableText
"newdungeon_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1038 EditableText
"clear_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1039 EditableText
"explore_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1040 EditableText
"gear_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1041 EditableText
"heal_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1042 EditableText
"critical_btn"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1043 EditableText
"betaFunctions"Symbol 1049 MovieClip {DungeonInterface} Frame 1Symbol 1048 MovieClip
"owner_label"Symbol 1051 MovieClip Frame 1Symbol 1050 EditableText
"icon"Symbol 1066 MovieClip {Horde} Frame 1Symbol 1064 MovieClip {HordeIcon}
"bg"Symbol 1066 MovieClip {Horde} Frame 1Symbol 1065 MovieClip
"glow"Symbol 1080 MovieClip {EntryStairs} Frame 1Symbol 1068 MovieClip {StairsGlow}
"prose"Symbol 1087 MovieClip {DungeonLoading} Frame 1Symbol 1086 EditableText
"blinker"Symbol 1087 MovieClip {DungeonLoading} Frame 1Symbol 438 MovieClip
"proceed_btn"Symbol 1087 MovieClip {DungeonLoading} Frame 1Symbol 431 Button {NewProceedButton}
"no_btn"Symbol 1095 MovieClip {DownLevelDialog} Frame 1Symbol 1091 MovieClip
"yes_btn"Symbol 1095 MovieClip {DownLevelDialog} Frame 1Symbol 1094 MovieClip
"headerText"Symbol 1098 MovieClip {ShrineUseDialog} Frame 1Symbol 1096 EditableText
"bodyText"Symbol 1098 MovieClip {ShrineUseDialog} Frame 1Symbol 1097 EditableText
"yes_btn"Symbol 1098 MovieClip {ShrineUseDialog} Frame 1Symbol 1094 MovieClip
"no_btn"Symbol 1098 MovieClip {ShrineUseDialog} Frame 1Symbol 1091 MovieClip
"bg"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1100 MovieClip
"consumables_lbl"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1105 EditableText
"weapons_lbl"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1106 EditableText
"armor_lbl"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1107 EditableText
"take_btn"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1110 MovieClip
"discard_btn"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1112 MovieClip
"selected_count_label"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1113 EditableText
"settings_btn"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1117 MovieClip
"takeDisabler"Symbol 1122 MovieClip {TreasureReport} Frame 1Symbol 1118 MovieClip
"dlg_text"Symbol 1125 MovieClip {WarningDialog} Frame 1Symbol 1124 EditableText
"yes_btn"Symbol 1125 MovieClip {WarningDialog} Frame 1Symbol 163 MovieClip
"yes_btn"Symbol 1133 MovieClip {SaveDeleteDialog} Frame 1Symbol 1129 MovieClip
"no_btn"Symbol 1133 MovieClip {SaveDeleteDialog} Frame 1Symbol 1132 MovieClip
"yes_btn"Symbol 1136 MovieClip {RestDialog} Frame 1Symbol 1094 MovieClip
"no_btn"Symbol 1136 MovieClip {RestDialog} Frame 1Symbol 1091 MovieClip
"bg"Symbol 1140 MovieClip {HintDialog} Frame 1Symbol 1137 MovieClip
"dlg_title"Symbol 1140 MovieClip {HintDialog} Frame 1Symbol 1138 EditableText
"dlg_text"Symbol 1140 MovieClip {HintDialog} Frame 1Symbol 1139 EditableText
"yes_btn"Symbol 1140 MovieClip {HintDialog} Frame 1Symbol 163 MovieClip
"showCheck"Symbol 1140 MovieClip {HintDialog} Frame 1Symbol 461 MovieClip {dCheckBox}
"yes_btn"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 163 MovieClip
"col1"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1143 EditableText
"col2"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1144 EditableText
"col3"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1146 EditableText
"subtotal"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1149 EditableText
"total"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1152 EditableText
"difficulty"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1154 EditableText
"kongSubmitButton"Symbol 1161 MovieClip {RatingDialog} Frame 1Symbol 1160 MovieClip
"checkHardcore"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkTactical"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkAttrition"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 461 MovieClip {dCheckBox}
"proceed"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 431 Button {NewProceedButton}
"standard"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 1165 MovieClip {monstersdend_fla.DifficultySelectBG_219}
"extreme"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 1165 MovieClip {monstersdend_fla.DifficultySelectBG_219}
"beginner"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 1165 MovieClip {monstersdend_fla.DifficultySelectBG_219}
"totalModifierLabel"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 1176 EditableText
"optionsButton"Symbol 1177 MovieClip {DifficultySelect} Frame 1Symbol 371 Button {OptionsBookButton}
"bg"Symbol 1180 MovieClip {ErrorDialog} Frame 1Symbol 1137 MovieClip
"dlg_title"Symbol 1180 MovieClip {ErrorDialog} Frame 1Symbol 1178 EditableText
"dlg_text"Symbol 1180 MovieClip {ErrorDialog} Frame 1Symbol 1179 EditableText
"yes_btn"Symbol 1180 MovieClip {ErrorDialog} Frame 1Symbol 163 MovieClip
"no_btn"Symbol 1193 MovieClip {CustomPortraitDialog} Frame 1Symbol 1184 MovieClip
"yes_btn"Symbol 1193 MovieClip {CustomPortraitDialog} Frame 1Symbol 1094 MovieClip
"load_btn"Symbol 1193 MovieClip {CustomPortraitDialog} Frame 1Symbol 1190 MovieClip
"resultsText"Symbol 1193 MovieClip {CustomPortraitDialog} Frame 1Symbol 1191 EditableText
"urlInput"Symbol 1193 MovieClip {CustomPortraitDialog} Frame 1Symbol 1192 EditableText
"dialogue"Symbol 1200 MovieClip {AdventurerJoinDialog} Frame 1Symbol 1195 EditableText
"yes_btn"Symbol 1200 MovieClip {AdventurerJoinDialog} Frame 1Symbol 1094 MovieClip
"no_btn"Symbol 1200 MovieClip {AdventurerJoinDialog} Frame 1Symbol 1184 MovieClip
"charGraphic"Symbol 1200 MovieClip {AdventurerJoinDialog} Frame 1Symbol 358 MovieClip {CharGraphic}
"charName"Symbol 1200 MovieClip {AdventurerJoinDialog} Frame 1Symbol 1198 EditableText
"yes_btn"Symbol 1205 MovieClip {AllyDiedDialog} Frame 1Symbol 163 MovieClip
"dlg_text"Symbol 1205 MovieClip {AllyDiedDialog} Frame 1Symbol 1202 EditableText
"charGraphic"Symbol 1205 MovieClip {AllyDiedDialog} Frame 1Symbol 358 MovieClip {CharGraphic}
"charName"Symbol 1205 MovieClip {AllyDiedDialog} Frame 1Symbol 1203 EditableText
"returnButton"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 698 MovieClip
"checkGrey"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkWhite"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkGreen"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkBlue"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkPurple"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkLightArmor"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkMediumArmor"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkHeavyArmor"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkConsumables"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"checkEnchantments"Symbol 1210 MovieClip {LootSettings} Frame 1Symbol 461 MovieClip {dCheckBox}
"name_label"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1215 EditableText
"large_portrait"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 358 MovieClip {CharGraphic}
"description_label"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1216 EditableText
"level_label"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1217 EditableText
"health_bar"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 704 MovieClip {NumericIndicatorHealth}
"power_bar"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 709 MovieClip {NumericIndicatorPower}
"damage_resist_number"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1218 EditableText
"poison_resist_number"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1219 EditableText
"stun_resist_number"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1220 EditableText
"accuracy_number"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1221 EditableText
"regenHealthAmount"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1223 EditableText
"regenPowerAmount"Symbol 1225 MovieClip {BattleInfoPanel} Frame 1Symbol 1224 EditableText
"pass_skill"Symbol 1228 MovieClip {BattleActionsBar} Frame 1Symbol 142 MovieClip {SkillIcon}
"retreat_all_skill"Symbol 1228 MovieClip {BattleActionsBar} Frame 1Symbol 142 MovieClip {SkillIcon}
"retreat_skill"Symbol 1228 MovieClip {BattleActionsBar} Frame 1Symbol 142 MovieClip {SkillIcon}
"line1"Symbol 1236 MovieClip {BattleMessageBox} Frame 1Symbol 1229 EditableText
"line2"Symbol 1236 MovieClip {BattleMessageBox} Frame 1Symbol 1230 EditableText
"previous_btn"Symbol 1236 MovieClip {BattleMessageBox} Frame 1Symbol 1235 Button {BattleMessageScroller}
"next_btn"Symbol 1236 MovieClip {BattleMessageBox} Frame 1Symbol 1235 Button {BattleMessageScroller}
"bg"Symbol 1241 MovieClip {InitiativeList} Frame 1Symbol 1239 MovieClip
"bg"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1213 MovieClip
"active_info_panel"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1225 MovieClip {BattleInfoPanel}
"target_info_panel"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1225 MovieClip {BattleInfoPanel}
"pc1"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"pc2"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"pc3"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"pc4"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"pc5"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"pc6"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc2"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc3"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc4"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc5"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc6"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"npc1"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"skillbar"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 150 MovieClip {SkillBar}
"selected_skill_text"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1226 EditableText
"actionsbar"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1228 MovieClip {BattleActionsBar}
"messages"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1236 MovieClip {BattleMessageBox}
"waveField"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1237 EditableText
"initDisplay"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 1241 MovieClip {InitiativeList}
"help_btn"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 695 MovieClip {HelpButton}
"options_btn"Symbol 1242 MovieClip {Battlefield} Frame 1Symbol 712 MovieClip {OptionsButton}
"name_label"Symbol 1248 MovieClip {InitiativeIcon} Frame 1Symbol 1243 EditableText
"pos_icon"Symbol 1248 MovieClip {InitiativeIcon} Frame 1Symbol 1245 MovieClip {InitiativePositionIndicator}
"name_label"Symbol 1248 MovieClip {InitiativeIcon} Frame 21Symbol 1246 EditableText
"pos_icon"Symbol 1248 MovieClip {InitiativeIcon} Frame 21Symbol 1245 MovieClip {InitiativePositionIndicator}
"name_label"Symbol 1248 MovieClip {InitiativeIcon} Frame 31Symbol 1247 EditableText
"pos_icon"Symbol 1248 MovieClip {InitiativeIcon} Frame 31Symbol 1245 MovieClip {InitiativePositionIndicator}
"lightbar"Symbol 1299 MovieClip {PowerBar} Frame 1Symbol 1298 MovieClip
"bar"Symbol 1299 MovieClip {PowerBar} Frame 1Symbol 1298 MovieClip
"lightbar"Symbol 1302 MovieClip {HealthBar} Frame 1Symbol 1301 MovieClip {RedBar}
"bar"Symbol 1302 MovieClip {HealthBar} Frame 1Symbol 1301 MovieClip {RedBar}
"graphic"Symbol 1306 MovieClip {CharacterPortrait} Frame 1Symbol 358 MovieClip {CharGraphic}
"powerbar"Symbol 1306 MovieClip {CharacterPortrait} Frame 1Symbol 1299 MovieClip {PowerBar}
"healthbar"Symbol 1306 MovieClip {CharacterPortrait} Frame 1Symbol 1302 MovieClip {HealthBar}
"nametag"Symbol 1306 MovieClip {CharacterPortrait} Frame 1Symbol 1303 EditableText
"shield"Symbol 1326 MovieClip {armor_buff_effect} Frame 1Symbol 1325 MovieClip {monstersdend_fla.shield_gleam_256}
"slash"Symbol 1343 MovieClip {horz_slash} Frame 1Symbol 1342 MovieClip
"blood"Symbol 1344 MovieClip {creature_slash} Frame 6Symbol 1333 MovieClip {BloodRandom}
"flames"Symbol 1349 MovieClip {fire_effect} Frame 1Symbol 1294 MovieClip {fire_scroll}
"hslash"Symbol 1358 MovieClip {player_multi_slash} Frame 1Symbol 1357 MovieClip
"hslash"Symbol 1359 MovieClip {player_slash} Frame 1Symbol 1357 MovieClip
"slash"Symbol 1366 MovieClip {creature_weapon} Frame 1Symbol 1343 MovieClip {horz_slash}
"blood"Symbol 1366 MovieClip {creature_weapon} Frame 6Symbol 1333 MovieClip {BloodRandom}
"gfx"Symbol 1368 MovieClip {revive_effect} Frame 1Symbol 358 MovieClip {CharGraphic}
"slash"Symbol 1373 MovieClip {monstersdend_fla.vert_slash_281} Frame 1Symbol 1372 MovieClip
"slash"Symbol 1374 MovieClip {creature_spear} Frame 1Symbol 1373 MovieClip {monstersdend_fla.vert_slash_281}
"blood"Symbol 1374 MovieClip {creature_spear} Frame 6Symbol 1333 MovieClip {BloodRandom}
"hit"Symbol 1377 MovieClip {monstersdend_fla.player_arrow_impact_284} Frame 1Symbol 1376 MovieClip
"spark"Symbol 1378 MovieClip {player_arrow} Frame 1Symbol 1377 MovieClip {monstersdend_fla.player_arrow_impact_284}
"hit"Symbol 1383 MovieClip {monster_arrow_impact} Frame 1Symbol 1382 MovieClip
"spark"Symbol 1384 MovieClip {monster_arrow} Frame 1Symbol 1383 MovieClip {monster_arrow_impact}
"blood"Symbol 1384 MovieClip {monster_arrow} Frame 6Symbol 1333 MovieClip {BloodRandom}
"spark"Symbol 1444 MovieClip {monster_arrow_drainpower} Frame 1Symbol 1383 MovieClip {monster_arrow_impact}
"blood"Symbol 1444 MovieClip {monster_arrow_drainpower} Frame 6Symbol 1333 MovieClip {BloodRandom}
"lightning"Symbol 1456 MovieClip {LightningFlash} Frame 1Symbol 1455 MovieClip {RandomLightning}
"flash"Symbol 1457 MovieClip {Lightning} Frame 1Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 6Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 11Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 16Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 21Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 26Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 31Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 36Symbol 1456 MovieClip {LightningFlash}
"flash"Symbol 1457 MovieClip {Lightning} Frame 41Symbol 1456 MovieClip {LightningFlash}
"spark"Symbol 1464 MovieClip {monster_thrown} Frame 5Symbol 1383 MovieClip {monster_arrow_impact}
"blood"Symbol 1464 MovieClip {monster_thrown} Frame 11Symbol 1333 MovieClip {BloodRandom}
"low"Symbol 1538 MovieClip Frame 1Symbol 1534 EditableText
"mid"Symbol 1538 MovieClip Frame 1Symbol 1535 EditableText
"full"Symbol 1538 MovieClip Frame 1Symbol 1536 EditableText
"off"Symbol 1538 MovieClip Frame 1Symbol 1537 EditableText
"global_selector"Symbol 1544 MovieClip Frame 1Symbol 1538 MovieClip
"music_selector"Symbol 1544 MovieClip Frame 1Symbol 1538 MovieClip
"sfx_selector"Symbol 1544 MovieClip Frame 1Symbol 1538 MovieClip
"volCloseButton"Symbol 1544 MovieClip Frame 1Symbol 404 Button
"pane"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1551 MovieClip
"maskSprite"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1552 MovieClip
"visibleArea"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1554 MovieClip
"scrollBar"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1556 MovieClip
"scrollUp"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1558 MovieClip {ClickToScroll}
"scrollDown"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1558 MovieClip {ClickToScroll}
"scrollHandle"Symbol 1560 MovieClip {ShopListScrolling} Frame 1Symbol 1559 MovieClip
"tab_text"Symbol 1565 MovieClip {ItemModeTab} Frame 1Symbol 1562 EditableText
"sellButton"Symbol 1566 MovieClip {SellPanel} Frame 1Symbol 1550 MovieClip
"sellDisabler"Symbol 1566 MovieClip {SellPanel} Frame 1Symbol 1118 MovieClip
"sellList"Symbol 1566 MovieClip {SellPanel} Frame 1Symbol 1560 MovieClip {ShopListScrolling}
"allTab"Symbol 1566 MovieClip {SellPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"equippedTab"Symbol 1566 MovieClip {SellPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"buyButton"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1569 MovieClip
"buyDisabler"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1118 MovieClip
"buyList"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1560 MovieClip {ShopListScrolling}
"allTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"weaponsTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"armorLightTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"armorMediumTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"armorHeavyTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"accessoriesTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"consumablesTab"Symbol 1570 MovieClip {BuyPanel} Frame 1Symbol 1565 MovieClip {ItemModeTab}
"bg"Symbol 1582 MovieClip {SpeechBubble} Frame 1Symbol 1579 MovieClip
"dialogue"Symbol 1582 MovieClip {SpeechBubble} Frame 1Symbol 1581 EditableText
"tab_text"Symbol 1589 MovieClip {BuySellTab} Frame 1Symbol 1586 EditableText
"empty1"Symbol 1590 MovieClip {Shop} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty2"Symbol 1590 MovieClip {Shop} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty3"Symbol 1590 MovieClip {Shop} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"empty4"Symbol 1590 MovieClip {Shop} Frame 1Symbol 769 MovieClip {EmptyPortrait}
"exitButton"Symbol 1590 MovieClip {Shop} Frame 1Symbol 698 MovieClip
"optionsButton"Symbol 1590 MovieClip {Shop} Frame 1Symbol 712 MovieClip {OptionsButton}
"helpButton"Symbol 1590 MovieClip {Shop} Frame 1Symbol 695 MovieClip {HelpButton}
"sellPanel"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1566 MovieClip {SellPanel}
"buyPanel"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1570 MovieClip {BuyPanel}
"paperdoll"Symbol 1590 MovieClip {Shop} Frame 1Symbol 691 MovieClip {Paperdoll}
"playerGraphic"Symbol 1590 MovieClip {Shop} Frame 1Symbol 358 MovieClip {CharGraphic}
"playerName"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1574 EditableText
"playerClass"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1575 EditableText
"inventoryCount"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1576 EditableText
"goldDisplay"Symbol 1590 MovieClip {Shop} Frame 1Symbol 717 MovieClip {GoldDisplay}
"blueCheck"Symbol 1590 MovieClip {Shop} Frame 1Symbol 461 MovieClip {dCheckBox}
"greenCheck"Symbol 1590 MovieClip {Shop} Frame 1Symbol 461 MovieClip {dCheckBox}
"purpleCheck"Symbol 1590 MovieClip {Shop} Frame 1Symbol 461 MovieClip {dCheckBox}
"bubble"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1582 MovieClip {SpeechBubble}
"buyTab"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1589 MovieClip {BuySellTab}
"sellTab"Symbol 1590 MovieClip {Shop} Frame 1Symbol 1589 MovieClip {BuySellTab}
"bg"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 1593 MovieClip {monstersdend_fla.ListEntryBG_355}
"itemLabel"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 1594 EditableText
"ownerLabel"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 1595 EditableText
"priceLabel"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 1596 EditableText
"gold"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 643 MovieClip
"ico"Symbol 1597 MovieClip {ShopListEntry} Frame 1Symbol 983 MovieClip {InventoryIcon}
"continueButton"Symbol 1603 MovieClip {CampaignSelect} Frame 1Symbol 431 Button {NewProceedButton}
"nextButton"Symbol 1603 MovieClip {CampaignSelect} Frame 1Symbol 1601 Button
"optionsButton"Symbol 1603 MovieClip {CampaignSelect} Frame 1Symbol 371 Button {OptionsBookButton}
"floatText"Symbol 1605 MovieClip {CombatFloater} Frame 1Symbol 1604 EditableText
"itemName"Symbol 1617 MovieClip {ItemComparison} Frame 1Symbol 1607 EditableText
"indicator"Symbol 1617 MovieClip {ItemComparison} Frame 1Symbol 1616 MovieClip
"yes_btn"Symbol 1625 MovieClip {SatyrQuestDialog} Frame 1Symbol 163 MovieClip
"dialogue"Symbol 1625 MovieClip {SatyrQuestDialog} Frame 1Symbol 1622 EditableText
"charGraphic"Symbol 1625 MovieClip {SatyrQuestDialog} Frame 1Symbol 358 MovieClip {CharGraphic}
"charName"Symbol 1625 MovieClip {SatyrQuestDialog} Frame 1Symbol 1623 EditableText
"optionsButton"Symbol 1649 MovieClip {SurvivalPrep} Frame 1Symbol 371 Button {OptionsBookButton}
"beginButton"Symbol 1649 MovieClip {SurvivalPrep} Frame 1Symbol 1642 Button
"shopButton"Symbol 1649 MovieClip {SurvivalPrep} Frame 1Symbol 1645 Button
"manageButton"Symbol 1649 MovieClip {SurvivalPrep} Frame 1Symbol 1648 Button
"accuracy"Symbol 1652 MovieClip {AccuracyRoll} Frame 1Symbol 1650 EditableText
"continue_button"Symbol 1665 MovieClip {monstersdend_fla.TableIntro_378} Frame 1Symbol 518 Button
"credits_button"Symbol 1665 MovieClip {monstersdend_fla.TableIntro_378} Frame 1Symbol 521 Button
"options_button"Symbol 1665 MovieClip {monstersdend_fla.TableIntro_378} Frame 1Symbol 524 Button
"page"Symbol 1674 MovieClip {PageTurn} Frame 1Symbol 1668 MovieClip
"page"Symbol 1674 MovieClip {PageTurn} Frame 15Symbol 1668 MovieClip
"sound_icon"Symbol 1704 MovieClip {SoundButton} Frame 1Symbol 1702 MovieClip {SoundIcon}
"debug_label"Symbol 1759 MovieClip {DungeonMain} Frame 1Symbol 1755 EditableText
"version_label"Symbol 1759 MovieClip {DungeonMain} Frame 1Symbol 1757 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 256, ScriptTimeout: 20 seconds

Labels

"addicting"Frame 3
"kong"Frame 4
"armorIntro"Frame 5
"main"Frame 6
"WaitRight"Symbol 44 MovieClip {monstersdend_fla.Eye1_11} Frame 18
"WaitLeft"Symbol 44 MovieClip {monstersdend_fla.Eye1_11} Frame 82
"WaitLeft"Symbol 45 MovieClip {monstersdend_fla.Eye2_12} Frame 51
"WaitRight"Symbol 45 MovieClip {monstersdend_fla.Eye2_12} Frame 103
"normal"Symbol 57 MovieClip Frame 1
"andkon"Symbol 57 MovieClip Frame 2
"alt2"Symbol 358 MovieClip {CharGraphic} Frame 6
"alt1"Symbol 358 MovieClip {CharGraphic} Frame 8
"alt3"Symbol 358 MovieClip {CharGraphic} Frame 10
"alt4"Symbol 358 MovieClip {CharGraphic} Frame 11
"alt5"Symbol 358 MovieClip {CharGraphic} Frame 12
"skeleton"Symbol 358 MovieClip {CharGraphic} Frame 23
"skeleton_archer"Symbol 358 MovieClip {CharGraphic} Frame 24
"vampire"Symbol 358 MovieClip {CharGraphic} Frame 25
"fallen knight"Symbol 358 MovieClip {CharGraphic} Frame 26
"necromancer"Symbol 358 MovieClip {CharGraphic} Frame 27
"lich"Symbol 358 MovieClip {CharGraphic} Frame 28
"bone_horror"Symbol 358 MovieClip {CharGraphic} Frame 29
"berserker"Symbol 358 MovieClip {CharGraphic} Frame 31
"troll"Symbol 358 MovieClip {CharGraphic} Frame 32
"goblin"Symbol 358 MovieClip {CharGraphic} Frame 33
"goblin_archer"Symbol 358 MovieClip {CharGraphic} Frame 34
"orc warlord"Symbol 358 MovieClip {CharGraphic} Frame 35
"half-troll"Symbol 358 MovieClip {CharGraphic} Frame 36
"shaman"Symbol 358 MovieClip {CharGraphic} Frame 37
"greebler"Symbol 358 MovieClip {CharGraphic} Frame 47
"poison_drake"Symbol 358 MovieClip {CharGraphic} Frame 48
"lightning_drake"Symbol 358 MovieClip {CharGraphic} Frame 49
"cult_warrior"Symbol 358 MovieClip {CharGraphic} Frame 51
"cult_archer"Symbol 358 MovieClip {CharGraphic} Frame 52
"cult_priest"Symbol 358 MovieClip {CharGraphic} Frame 53
"aetherguard"Symbol 358 MovieClip {CharGraphic} Frame 54
"ascendant"Symbol 358 MovieClip {CharGraphic} Frame 55
"chosen"Symbol 358 MovieClip {CharGraphic} Frame 56
"engine"Symbol 358 MovieClip {CharGraphic} Frame 57
"neophyte"Symbol 358 MovieClip {CharGraphic} Frame 58
"demon"Symbol 358 MovieClip {CharGraphic} Frame 60
"male"Symbol 398 MovieClip Frame 1
"female"Symbol 398 MovieClip Frame 2
"off"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 1
"low"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 2
"mid"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 3
"full"Symbol 448 MovieClip {VolumeSelectorMenu} Frame 4
"low"Symbol 467 MovieClip {QualitySelectorMenu} Frame 1
"med"Symbol 467 MovieClip {QualitySelectorMenu} Frame 2
"high"Symbol 467 MovieClip {QualitySelectorMenu} Frame 3
"best"Symbol 467 MovieClip {QualitySelectorMenu} Frame 4
"off"Symbol 474 MovieClip {OnOffSelectorMenu} Frame 1
"on"Symbol 474 MovieClip {OnOffSelectorMenu} Frame 2
"off"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 1
"low"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 2
"med"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 3
"long"Symbol 486 MovieClip {TooltipSelectorMenu} Frame 4
"on"Symbol 533 MovieClip {MuteButton} Frame 1
"mute"Symbol 533 MovieClip {MuteButton} Frame 2
"begin"Symbol 552 MovieClip {TitleScreen} Frame 1
"open"Symbol 552 MovieClip {TitleScreen} Frame 11
"normal"Symbol 667 MovieClip {InvFilter} Frame 1
"highlight"Symbol 667 MovieClip {InvFilter} Frame 2
"normal"Symbol 670 MovieClip {InvFilterRecommend} Frame 1
"highlight"Symbol 670 MovieClip {InvFilterRecommend} Frame 2
"up"Symbol 675 MovieClip Frame 1
"down"Symbol 675 MovieClip Frame 2
"blank"Symbol 776 MovieClip {monstersdend_fla.IconEnchantGlow_151} Frame 1
"normal"Symbol 985 MovieClip Frame 1
"complete"Symbol 1018 MovieClip Frame 1
"normal"Symbol 1018 MovieClip Frame 2
"normal"Symbol 1066 MovieClip {Horde} Frame 1
"fade"Symbol 1066 MovieClip {Horde} Frame 2
"battle"Symbol 1066 MovieClip {Horde} Frame 16
"blue"Symbol 1077 MovieClip {MovementArrowHead} Frame 1
"red"Symbol 1077 MovieClip {MovementArrowHead} Frame 2
"chest"Symbol 1122 MovieClip {TreasureReport} Frame 1
"drop"Symbol 1122 MovieClip {TreasureReport} Frame 2
"scroll up"Symbol 1248 MovieClip {InitiativeIcon} Frame 1
"death"Symbol 1248 MovieClip {InitiativeIcon} Frame 10
"revive"Symbol 1248 MovieClip {InitiativeIcon} Frame 21
"fade"Symbol 1248 MovieClip {InitiativeIcon} Frame 41
"miss"Symbol 1438 MovieClip {PortraitAnimationFrame} Frame 8
"immune"Symbol 1438 MovieClip {PortraitAnimationFrame} Frame 9
"stun"Symbol 1438 MovieClip {PortraitAnimationFrame} Frame 10
"pass"Symbol 1438 MovieClip {PortraitAnimationFrame} Frame 11
"dungeon music"Symbol 1532 MovieClip Frame 1
"battle music"Symbol 1532 MovieClip Frame 2
"off"Symbol 1538 MovieClip Frame 1
"low"Symbol 1538 MovieClip Frame 2
"mid"Symbol 1538 MovieClip Frame 3
"full"Symbol 1538 MovieClip Frame 4
"normal"Symbol 1593 MovieClip {monstersdend_fla.ListEntryBG_355} Frame 1
"selected"Symbol 1593 MovieClip {monstersdend_fla.ListEntryBG_355} Frame 2
"better"Symbol 1616 MovieClip Frame 1
"worse"Symbol 1616 MovieClip Frame 2
"equal"Symbol 1616 MovieClip Frame 3
"none"Symbol 1616 MovieClip Frame 4
"blocked"Symbol 1616 MovieClip Frame 5
"white"Symbol 1653 MovieClip {TeleportTransition} Frame 15
"continue"Symbol 1653 MovieClip {TeleportTransition} Frame 16
"white"Symbol 1659 MovieClip {FadeScreenTransition} Frame 15
"continue"Symbol 1659 MovieClip {FadeScreenTransition} Frame 16
"on"Symbol 1702 MovieClip {SoundIcon} Frame 1
"off"Symbol 1702 MovieClip {SoundIcon} Frame 2




https://swfchan.com/53/263951/info.shtml
Created: 18/4 -2026 04:21:28 Last modified: 18/4 -2026 04:21:28 Server time: 18/04 -2026 10:16:49