All pastes #57039 Raw Edit

Miscellany

public text v1 · immutable
#57039 ·published 2006-05-19 07:06 UTC
rendered paste body
/*
	SPELL DATA
*/

double Spell::ReturnCastTime(int job, int spellID) {
	return castTime[job][spellID];
}

int Spell::ReturnCooldown(int job, int spellID) {
	return cooldown[job][spellID];
}

int Spell::ReturnManaCost(int job, int spellID) {
	return manaCost[job][spellID];
}

int Spell::ReturnDuration(int job, int spellID) {
	return duration[job][spellID];
}

void Spell::LoadSpellData() {
	int i, j;

	for (i=0; i<3; i++) {
		for (j=0; j<10; j++) {
			castTime[i][j] = 0;
		}
	}

	for (i=0; i<3; i++) {
		for (j=0; j<10; j++) {
			cooldown[i][j] = 0;
		}
	}

	for (i=0; i<3; i++) {
		for (j=0; j<10; j++) {
			manaCost[i][j] = 0;
		}
	}

	for (i=0; i<3; i++) {
		for (j=0; j<10; j++) {
			duration[i][j] = 0;
		}
	}


	// Priest
	// ------

	// Greater Heal
	castTime[0][0] = 3;
	manaCost[0][0] = 710;

	// Flash Heal
	castTime[0][1] = 1.5;
	manaCost[0][1] = 380;

	// Renew
	manaCost[0][2] = 410;
	duration[0][2] = 15;

	// Shield
	manaCost[0][3] = 500;
	cooldown[0][3] = 4;
	duration[0][3] = 30;

	// Fort
	manaCost[0][4] = 680;
	duration[0][4] = 600;

	// Prayer of Healing
	castTime[0][5] = 3;
	manaCost[0][5] = 535;

	// Fear Ward
	cooldown[0][6] = 30;
	duration[0][6] = 600;
	manaCost[0][6] = 100;

	// Resurrection
	manaCost[0][7] = 2000;

	// Cure
	manaCost[0][8] = 300;

	// Dispel
	manaCost[0][9] = 300;


	// Paladin
	// -------

	// Holy light
	castTime[1][0] = 2.5;
	manaCost[1][0] = 660;

	// Flash of Light
	castTime[1][1] = 1.5;
	manaCost[1][1] = 140;

	// Lay on Hands
	manaCost[1][2] = 6666;
	cooldown[1][2] = 3600;

	// Resurrection
	manaCost[1][3] = 2000;

	// Kings
	manaCost[1][4] = 300;
	duration[1][4] = 300;

	// Might
	manaCost[1][5] = 130;
	duration[1][5] = 300;
	
	// Wisdom
	manaCost[1][6] = 125;
	duration[1][6] = 300;

	// Light
	manaCost[1][7] = 135;
	duration[1][7] = 300;

	// Purify
	manaCost[1][8] = 300;

	// Cleanse
	manaCost[1][9] = 300;


	// Druid
	// -----

	// Healing Touch
	castTime[2][0] = 3.5;
	manaCost[2][0] = 800;

	// Regrowth
	castTime[2][1] = 2;
	duration[2][1] = 21;
	manaCost[2][1] = 880;

	// Rejuvenation
	manaCost[2][2] = 360;
	duration[2][2] = 12;

	// Tranquility
	manaCost[2][3] = 925;
	cooldown[2][3] = 300;
	castTime[2][3] = -10;

	// MOTW
	manaCost[2][4] = 445;
	duration[2][4] = 1800;

	// Nature's Swiftness
	cooldown[2][5] = 180;

	// Innervate
	manaCost[2][6] = 300;
	cooldown[2][6] = 360;
	duration[2][6] = 20;

	// Rebirth
	manaCost[2][7] = 3000;
	cooldown[2][7] = 1800;
	castTime[2][7] = 2;

	// Abolish
	manaCost[2][8] = 300;

	// Decurse
	manaCost[2][9] = 300;
}