Commit Graph

562 Commits

Author SHA1 Message Date
Deukhoofd d1efde4328
Adds Angelscript hook to prevent stat boost changes 2022-02-12 15:59:16 +01:00
Deukhoofd 8983ba7251
Adds Angelscript script hook to modify stat boost changes 2022-02-12 15:24:50 +01:00
Deukhoofd a7e582a712
Fixes for Windows 2022-02-12 14:32:15 +01:00
Deukhoofd 55f90728bf
Remove explicit bfd and dl links 2022-02-12 13:36:00 +01:00
Deukhoofd 8522b93b7f
Adds new script hook to prevent incoming critical hits 2022-02-12 13:03:40 +01:00
Deukhoofd 6444a8ce1c
threaded fixes 2022-02-12 12:55:58 +01:00
Deukhoofd 214e75b992
Link pthread statically again 2022-02-11 14:36:39 +01:00
Deukhoofd 50feb94ca1
Adds math functions to Angelscript 2022-02-11 12:22:58 +01:00
Deukhoofd b7c27cb1f8
Move all dependencies over to CPM 2022-02-11 12:17:27 +01:00
Deukhoofd c960f3fa0b
Remove pthread dependency by default, adds ability to turn off angelscript debugger 2022-02-05 17:48:47 +01:00
Deukhoofd b438e36a63
Allow angelscript to change rpath during build 2022-02-05 16:26:53 +01:00
Deukhoofd b4d492f2af
Change cmake option TESTS --> PKMNLIB_TESTS 2022-02-05 16:01:19 +01:00
Deukhoofd 537ae93294
Switch to CPM for dependency management 2022-02-05 15:31:10 +01:00
Deukhoofd af450dceb4
Adds OnDamage parameters for old and new health. 2021-11-21 14:16:57 +01:00
Deukhoofd 0b8ebcc778
Adds OnDamage script hook to Angelscript. 2021-11-21 14:06:36 +01:00
Deukhoofd 95e1e32abe
Fixes SetStatus and ChangeForme Angelscript functions. 2021-11-21 13:49:48 +01:00
Deukhoofd 55cebc4802
Adds Angelscript function to change forme. 2021-11-21 13:46:49 +01:00
Deukhoofd 67df06ef04
Adds OnFaintingOpponent script hook to Angelscript. 2021-11-21 13:37:26 +01:00
Deukhoofd b0f9daef60
Fixes invalid set up of ChangeAttack. 2021-11-21 13:17:25 +01:00
Deukhoofd 2396615d4a
Fixes MoveData::HasFlag using OBJLAST instead of OBJFIRST, causing memory corruption. 2021-11-21 12:59:11 +01:00
Deukhoofd 4d81ca1d08
Fixes for OnFaint in Angelscript. 2021-11-21 12:49:10 +01:00
Deukhoofd 6d3c027a08
Update to new THROW message. 2021-11-21 12:40:25 +01:00
Deukhoofd 50e2f39919
Adds BlockCritical script hook to angelscript. 2021-11-21 10:55:54 +01:00
Deukhoofd 6480d97915
NativeArray does not need to return const pointers in Angelscript. 2021-11-20 15:30:03 +01:00
Deukhoofd b40e004724
Make Pokemon::HasVolatile const in Angelscript. 2021-11-20 14:42:06 +01:00
Deukhoofd 62d7793944
Fixes HasType declaration in angelscript. 2021-11-20 11:08:51 +01:00
Deukhoofd 4d1b3448ba
Adds angelscript helper function to check if Pokemon has a type by the types string name. 2021-11-20 11:06:39 +01:00
Deukhoofd 8de1d4d635
Adds const marker to new GetEffectiveness helper in Angelscript. 2021-11-20 10:59:18 +01:00
Deukhoofd d94d1287ef
Adds angelscript helper to easily get effectiveness of a type against a Pokemon. 2021-11-20 10:56:32 +01:00
Deukhoofd e39056d3d6
Adds angelscript interface to get types of a Pokemon. 2021-11-20 10:48:46 +01:00
Deukhoofd 95457d9701
Adds Angelscript getter on BattleSide for getting an narray of Pokemon. 2021-11-20 10:24:03 +01:00
Deukhoofd 1d90360efe
Adds OnIncomingHit hook to Angelscript. 2021-11-19 18:07:21 +01:00
Deukhoofd d59ee9d869
Adds ChoiceQueue::HasNext() to Angelscript. 2021-11-19 16:18:40 +01:00
Deukhoofd d1ba703f76
Adds OnSwitchIn script hook to Angelscript. 2021-11-19 15:55:48 +01:00
Deukhoofd 496ebfdfa1
Add BlockWeather hook to Angelscript as well. 2021-11-19 15:06:13 +01:00
Deukhoofd b2accd720e
Support for (un)suppressing weather, adds hook to block weather changes. 2021-11-19 14:56:29 +01:00
Deukhoofd ea3bc7ee33
Adds GetLastUsedAttackOnTargetWrapper wrapper function to Angelscript. 2021-11-19 13:10:30 +01:00
Deukhoofd 47e3919734
Adds OnFaint script hook to Angelscript. 2021-11-19 12:40:31 +01:00
Deukhoofd 545e321018
Updates needed for breaking change in how abilities work. 2021-11-15 12:47:02 +01:00
Deukhoofd 46538092bf
Support for failing a MoveTurnChoice in Angelscript. 2021-11-12 13:00:34 +01:00
Deukhoofd 5334ad14da
Fixes issue where GetAngelscriptOwner would return an invalid value. 2021-11-05 13:45:51 +01:00
Deukhoofd d4ece51866
Adds more Angelscript functions to HistoryElement base class. 2021-10-30 18:18:40 +02:00
Deukhoofd abaee62582
Dont allow changing weight and height of Pokemon if its const 2021-10-30 17:12:39 +02:00
Deukhoofd 21092eb347
Adds Getters and Setters for Weight and Height of a Pokemon in angelscript. 2021-10-30 17:11:26 +02:00
Deukhoofd 6cc4206292
Adds Angelscript functions for getting a volatile script from a Battle or BattleSide. 2021-10-30 16:35:23 +02:00
Deukhoofd 86ffe00b20
Fixes Windows build. 2021-10-30 16:30:57 +02:00
Deukhoofd ad3b3bebfa
Updates to new CreatureLib, with removed precompiled header. 2021-10-30 14:29:57 +02:00
Deukhoofd 3732cab54b
Bunch of fixes for Owners of scripts. 2021-10-30 11:44:16 +02:00
Deukhoofd 0f6d538695
Make GetOwner angelscript func return a reference to the ref. 2021-10-30 00:19:24 +02:00
Deukhoofd 475e2142c6
Slight optimization and defensive programming. 2021-10-30 00:14:15 +02:00