helapordo 1.4.12
|
#include "game_utils.h"
Go to the source code of this file.
Functions | |
void | artifact_thinkingskull (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter, Enemy and Boss pointers. | |
void | artifact_twinkie (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | artifact_wristband (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | artifact_boartail (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | artifact_chaosorb (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | artifact_powersyphon (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | artifact_giantfossile (Fighter *f, Enemy *e, Boss *b, int mode) |
Takes a Fighter pointer and an Enemy pointer. | |
void | applyArtifacts (Fighter *f, Enemy *e, Boss *b, int isBoss) |
Takes a Fighter, a Enemy and a Boss pointer; plus an integer indicating if effects should be applied to enemy (==0) or boss (==1=. | |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at BOARTAIL index of artifactsBag array is false, and the class value of enemy pointer is Boar, enemy's vel value is multiplied by 2/3. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at CHAOSORB index of artifactsBag array is false, all the and the level values for the baseenemystats array increase by 2. If the artifact is already active, the same action as before occurs but the increase is by 3 and only if we hit 0 on a 20 roll. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at GIANTFOSSILE index of artifactsBag array is false, and the class value of enemy pointer is Troll, the enemy hp value is either decreased by 10 if it's at least 11 or set to 1 otherwise. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at POWERSYPHON index of artifactsBag array is false, fighter energy value increases by 1. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter, Enemy and Boss pointers.
Uses the Enemy pointer if isBoss is 0; If the active value inside the Artifact at THKSKULL index of artifactsBag array is false, fighter's permboost_def value increases by 4. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at TWINKIE index of artifactsBag array is false, and the class value of enemy pointer is Zombie, enemy's xp value is doubled and then increased by its level value. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |
Takes a Fighter pointer and an Enemy pointer.
If the active value inside the Artifact at WRISTBAND index of artifactsBag array is false, fighter's permboost_enr value increases by 2. Then the artifact is set as active.
f | The fighter involved in the artifact action. |
e | The enemy involved in the artifact action. |
b | The boss involved in the artifact action. |
isBoss | Integer describing if effect applies to enemy or boss. |