Commit Graph

50 Commits

Author SHA1 Message Date
Deukhoofd f447e40663
Adds damage script hooks.
continuous-integration/drone/push Build is passing Details
2021-10-29 18:29:30 +02:00
Deukhoofd 8005ad1232
Large cleanup of type registration, added new "NativeArray" (or narray in angelscript) type that simply holds a pointer to a native list, to prevent copies we don't need
continuous-integration/drone/push Build is failing Details
2021-09-25 17:56:45 +02:00
Deukhoofd e323b62250
Damage calculation can only return 0 if effectiveness is 0.
continuous-integration/drone/push Build is failing Details
2021-08-28 12:20:22 +02:00
Deukhoofd aee0f04d9c
Further fixes for rounding errors in damage calculations.
continuous-integration/drone/push Build is failing Details
2021-08-28 12:16:01 +02:00
Deukhoofd 037ff590f0
Fixes for damage calculation: Adds missing + 2, and handles rounding correctly.
continuous-integration/drone/push Build is failing Details
2021-08-28 12:04:18 +02:00
Deukhoofd 7fe7c8becf
Add support for turning off the random damage modifier.
continuous-integration/drone/push Build is passing Details
2021-08-24 20:57:45 +02:00
Deukhoofd 0eb2cb0ed0
Adds OverrideBasePower script hook.
continuous-integration/drone/push Build is passing Details
2021-08-24 20:28:27 +02:00
Deukhoofd 5a082c5995
Style Fixes
continuous-integration/drone/push Build is passing Details
2021-07-09 14:36:14 +02:00
Deukhoofd 9424a209ec
Adds a bunch of helpers for evolution, as well as custom script evolution methods.
continuous-integration/drone/push Build is failing Details
2021-07-09 13:54:42 +02:00
Deukhoofd 3d3bff3772
Work on evolution helpers
continuous-integration/drone/push Build is passing Details
2021-06-27 17:11:37 +02:00
Deukhoofd 59a092a06e
Use GetUseAttack for executingmove
continuous-integration/drone/push Build is passing Details
2021-05-13 13:25:08 +02:00
Deukhoofd bbb2691b91
Update to latest Arbutils.
continuous-integration/drone/push Build is passing Details
2020-12-13 12:32:52 +01:00
Deukhoofd 53bd6e7a94
Update to new Arbutils memory model.
continuous-integration/drone/push Build is failing Details
2020-12-12 14:25:27 +01:00
Deukhoofd fff926b617
Mark several classes as final for devirtualization performance benefits.
continuous-integration/drone/push Build is passing Details
2020-10-15 18:13:00 +02:00
Deukhoofd 2ce766f589
Adds precompiled header.
continuous-integration/drone/push Build is passing Details
2020-09-29 17:51:11 +02:00
Deukhoofd c6e2de6156
Use level_int_t for levels.
continuous-integration/drone/push Build is passing Details
2020-08-22 12:24:52 +02:00
Deukhoofd cc92cf1491
Defensive programming.
continuous-integration/drone/push Build is passing Details
2020-08-17 18:23:25 +02:00
Deukhoofd f3721ad2a5
Fixes damage calculation, 2020-08-17 18:23:13 +02:00
Deukhoofd b5a1d74bdb
Update to latest CreatureLib
continuous-integration/drone/push Build is passing Details
2020-08-16 11:12:04 +02:00
Deukhoofd ece07f5648
Defensive programming in DamageLibrary, ensuring the final damage is between 0 and uint32 max.
continuous-integration/drone/push Build is passing Details
2020-08-11 21:47:05 +02:00
Deukhoofd dc3630b171
Cleanup cmake file.
continuous-integration/drone/push Build is failing Details
2020-07-18 12:42:54 +02:00
Deukhoofd 12066e1dfe
Implements most of the Damage Modifier calculation.
continuous-integration/drone/push Build is failing Details
2020-06-05 13:49:12 +02:00
Deukhoofd 2d3a2fc63b
Smart pointers for most library and battle classes.
continuous-integration/drone/push Build is passing Details
2020-06-02 20:37:21 +02:00
Deukhoofd f42ce8865d
Update CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-05-27 17:26:25 +02:00
Deukhoofd 0d111739f4
Support for experience sharing.
continuous-integration/drone/push Build is passing Details
2020-05-24 13:36:45 +02:00
Deukhoofd d6792635f9
Don't calculate experience gained if the Pokemon is not allowed to receive experience.
continuous-integration/drone/push Build is passing Details
2020-05-22 14:17:19 +02:00
Deukhoofd 92135a88eb
Move experience gain from species to forme.
continuous-integration/drone/push Build is passing Details
2020-05-22 13:43:02 +02:00
Deukhoofd 6c7c460640
Support Pokemon style experience gain.
continuous-integration/drone/push Build is failing Details
2020-05-20 16:05:52 +02:00
Deukhoofd c4b866cb38
File formatting.
continuous-integration/drone/push Build is passing Details
2020-04-28 14:48:56 +02:00
Deukhoofd e23165d489
Update to latest CreatureLib, improved DamageLibrary performance.
continuous-integration/drone/push Build is passing Details
2020-04-25 16:59:27 +02:00
Deukhoofd df802b561a
Update to latest CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-04-25 16:31:57 +02:00
Deukhoofd 330a24c493
Update to latest CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-04-23 23:31:17 +02:00
Deukhoofd c6a4c87d47
As we're re-using the same struggle object, ensure PP is always restored before use.
continuous-integration/drone/push Build is passing Details
2020-04-22 17:06:21 +02:00
Deukhoofd 3174986796
Increase max PP for Struggle, make conan always pull the latest dependencies.
continuous-integration/drone/push Build is passing Details
2020-04-22 17:05:00 +02:00
Deukhoofd 097cda34c0
Fixes for Struggle.
continuous-integration/drone/push Build is passing Details
2020-04-22 16:35:04 +02:00
Deukhoofd 0f440a8a63
Enforce PkmnLib MiscLibrary in Library constructor.
continuous-integration/drone/push Build is passing Details
2020-04-22 16:10:13 +02:00
Deukhoofd 6b704224d0
Handle natures as pointers instead of values.
continuous-integration/drone/push Build is failing Details
2020-04-17 18:39:04 +02:00
Deukhoofd 94980ef7ab
Implements struggle.
continuous-integration/drone/push Build is passing Details
2020-04-17 17:56:41 +02:00
Deukhoofd 48ef465c82
Update to the latest CreatureLib version. 2020-04-06 20:03:44 +02:00
Deukhoofd 19cfcc9e32
Support for specific PkmnLib functions in Scripts, added ModifyCriticalStage function. 2020-02-20 13:28:31 +01:00
Deukhoofd 85d402c2c1
Update CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:19:14 +01:00
Deukhoofd 61e9c9ba1f
Update CreatureLib headers, move header files to PkmnLib subdirectory.
continuous-integration/drone/push Build is passing Details
2020-02-08 19:22:29 +01:00
Deukhoofd f33d96d922
Many tweaks and fixes relating to AngelScript, implements shininess.
continuous-integration/drone/push Build is failing Details
2020-02-01 16:56:09 +01:00
Deukhoofd cade351bc2
Register many battle classes in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-26 15:18:04 +01:00
Deukhoofd 9372ba4b27
Adds tests for MoveData type in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-01-18 14:35:08 +01:00
Deukhoofd c716992f12
Layout work on an AngelScript implementation.
continuous-integration/drone/push Build is failing Details
2020-01-11 22:30:23 +01:00
Deukhoofd 2a39467899
Initial layout work for allowing multiple script providers, but defaulting to AngelScript.
continuous-integration/drone/push Build is failing Details
2020-01-09 17:03:34 +01:00
Deukhoofd 191b128125
Implements Pokemon stat calculation.
continuous-integration/drone/push Build is passing Details
2020-01-05 15:18:30 +01:00
Deukhoofd 02ab4b3272
Support natures for Pokemon.
continuous-integration/drone/push Build is passing Details
2020-01-02 20:26:01 +01:00
Deukhoofd 800147c339
Started working on getting Battling side done.
continuous-integration/drone/push Build is passing Details
2020-01-02 18:02:40 +01:00