Commit graph

561 commits

Author SHA1 Message Date
Erik Ogenvik
4e4537f40c
Merge pull request #34 from NetSysFire/randint
Better gravestone message, only import randint from random
2023-01-13 22:59:48 +01:00
Erik Ogenvik
44b7493d63 Clean up some CMake stuff and rearrange Python docs. 2023-01-10 11:17:47 +01:00
NetSysFire
2d55121bd0 uniform is still needed 2023-01-07 13:38:27 +01:00
NetSysFire
412323dc33 better gravestone message, only import randint from random 2023-01-05 13:46:02 +01:00
Erik Ogenvik
850192e408 Store created instances using entity id format. 2022-08-16 23:16:06 +02:00
Erik Ogenvik
6e05be6da2 Remove unused "mass" attribute. 2022-08-16 00:27:18 +02:00
Erik Ogenvik
b3598f8ecf Provide name and descriptions. 2021-08-06 00:05:28 +02:00
Erik Ogenvik
8af43d151e Refactor mind code to throttle ops sent to server.
To make it more predictable.
2021-08-05 19:17:29 +02:00
Erik Ogenvik
69ecb0ac44 Added limits to processing move ticks. 2021-08-03 17:47:35 +02:00
Erik Ogenvik
5e287405a4 Remove unused code. 2021-08-03 12:09:30 +02:00
Erik Ogenvik
7f6fa5c707 Remove ops queue in CommAsioClient.
Any such queuing should instead be handled in the Link which receives the operations.
2021-08-02 01:21:18 +02:00
Erik Ogenvik
c108319878 Implement "actions" property for triggering client animations. 2021-07-25 22:31:41 +02:00
Erik Ogenvik
cebdde1734 Refactored how entities move themselves.
An entity is now mainly moved by setting the "_propel" and "_direction" properties.
These will then be applies on the next physics tick.
This moves away from the system where entities move themselves by issuing Move ops.
2021-07-22 23:19:51 +02:00
Erik Ogenvik
fc88157578 Formatting. 2021-07-22 22:55:50 +02:00
Erik Ogenvik
6f0580e347 Print distance with less fractions. 2021-07-08 23:22:47 +02:00
Erik Ogenvik
3c8ef3a178 Update AI to handle lack of Location on LocatedEntity. 2021-06-27 16:27:10 +02:00
Erik Ogenvik
a40cad95ea Removed Location from LocatedEntity.
Since not all entities have physical location, which is more and more true
now that we have domains. Entities that are placed in non-physical domains don't have
any location data.
This also makes it easier to streamline the sending of properties, since we only need
to send the properties that actually have changed.
In addition, this helps with removing circular references, since the "m_parent" field no longer
is a Ref.
2021-06-18 22:44:30 +02:00
Erik Ogenvik
87148f658e Only increase level, never decrease it. 2020-11-10 18:21:56 +01:00
Erik Ogenvik
8109579161 Adjust after size changes. 2020-11-08 22:10:44 +01:00
Erik Ogenvik
ea57bf52a2 Implement "warmup" for tools.
This is the time it takes for a tool to become ready.
For a sword it's the time it takes to draw it back, for a bow it's the time it takes to draw the bow.
This should tie into an upcoming improved system for displaying actions.
2020-11-03 00:14:40 +01:00
Erik Ogenvik
d3972f330b Added potion for increasing level. 2020-11-02 18:39:29 +01:00
Erik Ogenvik
c47dff2415 Use modifiers when applying effects. 2020-11-02 18:38:56 +01:00
Erik Ogenvik
4ce922cfce Fix incorrect are below house. 2020-11-02 00:28:07 +01:00
Erik Ogenvik
ebd1b44c26 Use correct parent. 2020-11-01 23:27:41 +01:00
Erik Ogenvik
f35108d99a Remove unused prop. 2020-11-01 23:07:33 +01:00
Erik Ogenvik
50816bebe2 Make crabs defend themselves. 2020-11-01 22:38:48 +01:00
Erik Ogenvik
7f548e6730 Protect against null. 2020-11-01 21:04:57 +01:00
Erik Ogenvik
1384a9130e Report errors when trying to dig. 2020-11-01 18:17:43 +01:00
Erik Ogenvik
de70f9cafd Make creatures roam by default. 2020-11-01 15:29:54 +01:00
Erik Ogenvik
2b76e36425 Make crabs smaller. 2020-11-01 15:29:39 +01:00
Erik Ogenvik
ac7b997eeb Removed unused attribute. 2020-10-30 13:58:46 +01:00
Erik Ogenvik
7cbd0a0d34 Added various spawners. 2020-10-30 13:57:49 +01:00
Erik Ogenvik
f7675506af Fixed some issues with types. 2020-10-10 23:59:12 +02:00
Erik Ogenvik
63074ffe7a Replenish deposit each hour. 2020-09-13 17:29:44 +02:00
Erik Ogenvik
7f245f082a Return info on failed crafting. 2020-09-13 17:29:32 +02:00
Erik Ogenvik
668a3a0f76 Added descriptions. 2020-09-13 17:21:24 +02:00
Erik Ogenvik
8cea254fa7 Updated container types. 2020-09-12 20:45:34 +02:00
Erik Ogenvik
dda9bf6dee Formatting. 2020-09-08 23:10:12 +02:00
Erik Ogenvik
cc59235cbd Don't move to limbo if there still are minds connected. 2020-08-30 22:49:05 +02:00
Erik Ogenvik
80ae36d511 Improve on combat.
NPCs will now stop any attacking task if the target isn't available.
2020-08-30 00:22:28 +02:00
Erik Ogenvik
e55116a43e Signal when players are defeated.
This is needed to allow AI to know when a player has been "killed".
When this happens they should clear any grudge they have with that player.
2020-08-29 18:56:50 +02:00
Erik Ogenvik
70b85fff5a Make land immortal, so it's not deleted by mistake. 2020-08-28 23:27:23 +02:00
Erik Ogenvik
81d9f15052 Lighten the tick rate in most systems. 2020-08-18 23:35:23 +02:00
Erik Ogenvik
f91416e3ab Listen to correct property. 2020-08-18 23:31:18 +02:00
Erik Ogenvik
eff445716d Send better message when no charges. 2020-08-11 16:27:38 +02:00
Erik Ogenvik
8075c19cd5 Add jitter to growing entities.
So that they don't all grow at the same time, as they are wont to do since
they often are created at the same time during world creation.
2020-07-25 23:59:54 +02:00
Erik Ogenvik
5ac78de8d0 No need to log. 2020-07-25 21:32:06 +02:00
Erik Ogenvik
f2bf5876db Made more creatures grazing. 2020-07-15 00:38:56 +02:00
Erik Ogenvik
977e8326f0 Remove extra logging. 2020-07-15 00:36:22 +02:00
Erik Ogenvik
192da589ed Added "grazing" to cow and chicken.
This allows them to graze the land.
2020-07-14 22:46:22 +02:00