@@ -195,17 +195,15 @@ int Game_BattleAlgorithm::AlgorithmBase::ApplySpEffect() {
195195 source->ChangeSp (-sp);
196196 }
197197
198- if (Player::IsPatchManiac ()) {
199- Game_Battle::ManiacBattleHook (
200- Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
201- target->GetType () == Game_Battler::Type_Enemy,
202- target->GetPartyIndex (),
203- target->GetDisplayX (),
204- target->GetDisplayY (),
205- 3 ,
206- sp
207- );
208- }
198+ Game_Battle::ManiacBattleHook (
199+ Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
200+ target->GetType () == Game_Battler::Type_Enemy,
201+ target->GetPartyIndex (),
202+ target->GetDisplayX (),
203+ target->GetDisplayY (),
204+ 3 ,
205+ sp
206+ );
209207 }
210208
211209 return sp;
@@ -221,17 +219,15 @@ int Game_BattleAlgorithm::AlgorithmBase::ApplyAtkEffect() {
221219 source->ChangeAtkModifier (-atk);
222220 }
223221
224- if (Player::IsPatchManiac ()) {
225- Game_Battle::ManiacBattleHook (
226- Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
227- target->GetType () == Game_Battler::Type_Enemy,
228- target->GetPartyIndex (),
229- target->GetDisplayX (),
230- target->GetDisplayY (),
231- 4 ,
232- atk
233- );
234- }
222+ Game_Battle::ManiacBattleHook (
223+ Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
224+ target->GetType () == Game_Battler::Type_Enemy,
225+ target->GetPartyIndex (),
226+ target->GetDisplayX (),
227+ target->GetDisplayY (),
228+ 4 ,
229+ atk
230+ );
235231 }
236232 return atk;
237233}
@@ -246,17 +242,15 @@ int Game_BattleAlgorithm::AlgorithmBase::ApplyDefEffect() {
246242 source->ChangeDefModifier (-def);
247243 }
248244
249- if (Player::IsPatchManiac ()) {
250- Game_Battle::ManiacBattleHook (
251- Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
252- target->GetType () == Game_Battler::Type_Enemy,
253- target->GetPartyIndex (),
254- target->GetDisplayX (),
255- target->GetDisplayY (),
256- 5 ,
257- def
258- );
259- }
245+ Game_Battle::ManiacBattleHook (
246+ Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
247+ target->GetType () == Game_Battler::Type_Enemy,
248+ target->GetPartyIndex (),
249+ target->GetDisplayX (),
250+ target->GetDisplayY (),
251+ 5 ,
252+ def
253+ );
260254 }
261255 return def;
262256}
@@ -271,17 +265,15 @@ int Game_BattleAlgorithm::AlgorithmBase::ApplySpiEffect() {
271265 source->ChangeSpiModifier (-spi);
272266 }
273267
274- if (Player::IsPatchManiac ()) {
275- Game_Battle::ManiacBattleHook (
276- Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
277- target->GetType () == Game_Battler::Type_Enemy,
278- target->GetPartyIndex (),
279- target->GetDisplayX (),
280- target->GetDisplayY (),
281- 6 ,
282- spi
283- );
284- }
268+ Game_Battle::ManiacBattleHook (
269+ Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
270+ target->GetType () == Game_Battler::Type_Enemy,
271+ target->GetPartyIndex (),
272+ target->GetDisplayX (),
273+ target->GetDisplayY (),
274+ 6 ,
275+ spi
276+ );
285277 }
286278 return spi;
287279}
@@ -296,17 +288,15 @@ int Game_BattleAlgorithm::AlgorithmBase::ApplyAgiEffect() {
296288 source->ChangeAgiModifier (-agi);
297289 }
298290
299- if (Player::IsPatchManiac ()) {
300- Game_Battle::ManiacBattleHook (
301- Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
302- target->GetType () == Game_Battler::Type_Enemy,
303- target->GetPartyIndex (),
304- target->GetDisplayX (),
305- target->GetDisplayY (),
306- 7 ,
307- agi
308- );
309- }
291+ Game_Battle::ManiacBattleHook (
292+ Game_Interpreter_Battle::ManiacBattleHookType::StatChange,
293+ target->GetType () == Game_Battler::Type_Enemy,
294+ target->GetPartyIndex (),
295+ target->GetDisplayX (),
296+ target->GetDisplayY (),
297+ 7 ,
298+ agi
299+ );
310300 }
311301 return agi;
312302}
0 commit comments