Commit Graph

354 Commits

Author SHA1 Message Date
0f709b5455 Fix relation in return statements. Added vendor interact range check to the serverside vendor methods. Did not add it for spell learning, that will have to be reworked. 2021-08-05 22:57:51 +02:00
6490663c97 Added helpers for easy checking the target's range for interaction. 2021-08-05 22:33:23 +02:00
378ebcff23 Update the copyright texts for 2021. 2021-04-19 10:13:51 +02:00
3bbe113897 Don't crash if stat_data is not set. 2021-02-21 00:00:19 +01:00
aa7e605d65 Fix compile for 4.0. 2021-02-06 11:44:14 +01:00
52cd322c88 Added SpeciesInstance to EntityData. 2020-10-19 12:20:12 +02:00
20811bb740 removed the entity_controller property from EntityData. 2020-10-19 11:53:57 +02:00
83a688f9dc Removed get_entity_type from EntityData, Entity now uses the one from EntitySpeciesData. 2020-10-19 11:48:00 +02:00
ee099a0f0e Moved StatData from EntityData to EntityClassData. 2020-10-18 23:15:09 +02:00
fe16d4573f Moved vendor item data, spell train data, item container data, and craft recipes from EntityData to EntityClassData. 2020-10-18 18:04:15 +02:00
a90d4f997a Removed AIFormation property from EntityData. 2020-10-18 16:20:24 +02:00
743dca09ec Removed the inherits property from EntityData (wasn't exposed to gdscript). 2020-10-18 15:55:14 +02:00
e992462683 Fix compile for 4.0. 2020-10-06 23:15:49 +02:00
aaf6ea68d2 Now the character's equipment visuals will be applied after setting it's skeleton. Also fix an argument. 2020-09-15 16:57:12 +02:00
a957c94436 Fix equipment deserialization. 2020-09-15 15:19:45 +02:00
bbe9df3ad6 Implemented buying from and selling to a vendor. 2020-09-15 01:15:53 +02:00
0a1e08f541 Implement level and money handling in _spell_learns. 2020-09-13 00:01:30 +02:00
57d80dafff Entities now create their own actionbar profiles from the default on the first access. 2020-09-12 23:00:18 +02:00
749c0a5c2f Removed onc_open_loot_winow_request, onc_open_container_winow_request, and onc_open_vendor_winow_request signals from Entity, onc_open_winow_request with a window_id parameter took their place. 2020-09-10 12:35:06 +02:00
2c7a982a28 Added a body changed signal, and a vmethod to Entity. 2020-07-29 15:21:29 +02:00
e45d109d7f Implemented modifier support for EntityResources. 2020-07-29 14:36:45 +02:00
7b6097d95c Fix compile for 4.0. 2020-07-29 00:02:27 +02:00
e0d00e3eb8 Properly decrement free talent points when learning a talent. Also removed a duplicate ERR_FAIL_COND. 2020-07-25 23:29:19 +02:00
f6f125b92c sdeal_damage_to shouldn't check if the entity that dealt damage died. Also fix signal. 2020-07-16 15:57:36 +02:00
9839cb4972 Fix sresources_set, now it properly set resource's owner. 2020-07-14 12:43:02 +02:00
f343482bf6 Actually bind _spell_learns in Entity. This fixes spell learning. 2020-07-10 21:21:31 +02:00
4ab7e83956 Removed XPData. 2020-07-10 17:17:15 +02:00
dbc7bde24b Now Entity only has one level property instead of separate class and character levels. Updated notifications accordingly. 2020-07-10 15:24:14 +02:00
ce2d652456 Emit changed signal in EntityResouce in receivec_update, and from_dict. 2020-07-09 11:21:52 +02:00
4b9c18f23c getc_health, and getc_speed now properly return the clientside resources. 2020-07-08 15:21:56 +02:00
b7f8ea8c0e Implement automatic spell learning. Also fix a notification. 2020-06-27 00:17:45 +02:00
59dbd6ceb1 Moved around a few things in Entity's to and from dict. 2020-06-21 00:16:59 +02:00
dd2876d2e2 4.0 compile fix. 2020-06-20 22:36:31 +02:00
1946fd96a4 Use resource's built in changed signal in EntityResource, instead of a custom one. 2020-06-20 16:10:52 +02:00
d3951436bd Removed a few forgotten debug lines. 2020-06-20 15:44:55 +02:00
94e9a2c02e Removed EntityResourceData. Now EntityResources just get duplicated. 2020-06-20 15:26:21 +02:00
54bd0ff16b Don't set the entity data twice if an Entity is deserialized. 2020-06-18 21:32:37 +02:00
f2d35f8b2c Bit more work on fixing the crash. Haven't yet found the culprit. Fortunately it's only crashing sometimes. 2020-06-18 20:47:02 +02:00
4405178f06 (Hopefully) fixed the crash that sometimes occurs on scene changes. 2020-06-18 13:38:23 +02:00
e82dca60f8 Cleaned up the properties exposed inside the inspector for Entity. The properties can be brought back with a debug define. (They do get serialized though!) 2020-06-15 14:47:28 +02:00
712accde54 Properties for cooldowns, and category cooldowns. 2020-06-15 13:40:12 +02:00
924e258d33 Property for datas. 2020-06-15 13:23:43 +02:00
f13dff0dfd Also added a property for spells. 2020-06-15 13:18:07 +02:00
cd0acdf329 Property for serverside craft recipes. 2020-06-15 13:12:50 +02:00
c809b04ba8 Also added properties for all class talents and character talents. 2020-06-15 13:05:14 +02:00
4d7983b6fc Added a property for serverside auras aswell. 2020-06-15 12:47:08 +02:00
f7847dfafc Also added a property for serverside skills. 2020-06-15 12:34:35 +02:00
545bd9b4de Added an PoolIntArray based property for server side states. Also fixed a few states specific properties. 2020-06-15 12:22:39 +02:00
827d67cca0 Added a getter and setter for all EntityResources into Entity. 2020-06-15 11:59:33 +02:00
503481924f Added sgcd, and cgcd properties. 2020-06-15 11:48:22 +02:00