Joonas Rikkonen
7ebb0be29b
(db42ef494) Don't allow combat priority go over 100.
2019-05-16 05:09:51 +03:00
Joonas Rikkonen
171c42f077
(3241b8fe7) Adjust the priorities. The orders should now always have higher priority than other objectives (except find safety and combat).
2019-05-16 05:09:33 +03:00
Joonas Rikkonen
7c901d8d77
(8fd36f702) Add a separate value for run threshold. Increase the order priority from 50 to 70.
2019-05-16 05:09:15 +03:00
Joonas Rikkonen
3a3d55d780
(39b4d0859) Merge branch 'dev' into human-ai
2019-05-16 05:08:56 +03:00
Joonas Rikkonen
616efac2bf
(19b26d13b) Merge branch 'dev' into human-ai
2019-05-16 05:08:39 +03:00
Joonas Rikkonen
454dda56c7
(1762f02b3) Merge branch 'dev' into human-ai
2019-05-16 05:08:22 +03:00
Joonas Rikkonen
4797f6b0d3
(307219669) Add some automatic orders.
2019-05-16 05:08:02 +03:00
Joonas Rikkonen
b51fd32b88
(de7949704) Rewrite the leak priority calculations. Ensure that the damage priority is not negative.
2019-05-16 05:07:45 +03:00
Joonas Rikkonen
7f58f30829
(1c243b972) Fix steering related issues in the fix leaks objective.
2019-05-16 05:07:27 +03:00
Joonas Rikkonen
37555ed1a4
(9fc7c8e98) Only reset when the objective is an order.
2019-05-16 05:07:07 +03:00
Joonas Rikkonen
2a0e289a59
(40f4f67f8) Further changes to the calculations.
2019-05-16 05:06:49 +03:00
Joonas Rikkonen
b7272e1c96
(2f379083c) Change how some of the priorities are clamped.
2019-05-16 05:06:30 +03:00
Joonas Rikkonen
b5db30ec72
(c48cb7804) Change the operate item priority calculation so that it starts from 25 and increases with devotion and is multiplied by the priority modifier. Clamp the result.
2019-05-16 05:06:11 +03:00
Joonas Rikkonen
ff5a819ad3
(62a89ce6a) Refactor and fix priority calculations. WIP, but should already improve things.
2019-05-16 05:05:53 +03:00
Joonas Rikkonen
d0795791e7
(3bb9485ad) Add automatic orders as objectives instead of orders so that we can take advantage of the existing priority system. Turn the priority values defined in the xml into modifiers.
2019-05-16 05:04:53 +03:00
Joonas Rikkonen
5def53f7bd
(2972c6da9) Add a missing text.
2019-05-16 05:04:29 +03:00
Joonas Rikkonen
039d07f693
(a2943d8b7) Merge branch 'dev' into human-ai
2019-05-16 05:04:10 +03:00
Joonas Rikkonen
60f52375e6
(7788ec72a) Test issuing orders automatically.
2019-05-16 05:03:49 +03:00
Joonas Rikkonen
3701f0e957
(7e3aa6097) Merge remote-tracking branch 'origin/docking-interface' into dev
2019-05-03 13:48:31 +03:00
Joonas Rikkonen
8d3a48584b
(92fc1380e) Allow interacting with items inside outposts (only prevent deattaching items from walls)
2019-05-03 13:48:15 +03:00
Joonas Rikkonen
088f7e5485
(d3c10117b) Fixed nullref exception if there are no texts defined for a location type change
2019-05-03 13:47:58 +03:00
Joonas Rikkonen
5031432e77
(513733e88) Check that the character is inside the same room as the target before repairing/operating an item.
2019-05-03 13:47:39 +03:00
Joonas Rikkonen
1ff1584be5
(53f9210d1) Check the line of sight before fixing leaks or extinguishing fires.
2019-05-03 13:47:22 +03:00
Joonas Rikkonen
d1dd0c6043
(d3791496e) FireSource implements ISpatialEntity.
2019-05-03 13:47:05 +03:00
Joonas Rikkonen
3d5e402d22
(a98f03ffb) Fix target blocking itself when it's structure. Take doors into account.
2019-05-03 13:46:48 +03:00
Joonas Rikkonen
0e96e18a24
(d9833de39) Added bug report texts to EnglishVanilla
2019-05-03 13:46:32 +03:00
Joonas Rikkonen
3371e7dca4
(17183b3e8) Add a reference in the project.
2019-05-03 13:46:15 +03:00
Joonas Rikkonen
e0732e6d57
(2eca8483c) Refactor CanSeeCharacter method and implement CanSeeTarget method. If we check whether or not we can see a character, it should now check if any of the limbs can be seen instead of always checking the head/torso etc. Not tested.
2019-05-03 13:45:58 +03:00
Joonas Rikkonen
953b5690ec
(2a7829fab) Add ISpatialEntity as a common interface for everything that has a position in the game world. Would have used IMapEntity, but there's already MapEntity, which inherits Entity, so that would be confusing. Declare the inheritance only in the shared class (Character).
2019-05-03 13:45:41 +03:00
Joonas Rikkonen
4daa149f29
(15c28d37a) fixed outpost
2019-05-03 13:45:26 +03:00
Joonas Rikkonen
904cad71a5
(3be596a23) Don't allow using invalid filename characters in a save name. Fixes crashing when attempting to use symbols such as <, > or | in the name.
2019-05-03 13:45:10 +03:00
Joonas Rikkonen
a640439617
(3a64fa8f4) Fixes to wall textures bleeding into adjacent sprites, incorrect dimensions & misaligned colliders
2019-05-03 13:44:53 +03:00
Joonas Rikkonen
16e49d10d9
(a8b3957c6) Fixed nullref exception when selecting categories in the sub editor
2019-05-03 13:44:38 +03:00
Joonas Rikkonen
c988016b6f
(90245034a) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
2019-05-03 13:44:21 +03:00
Joonas Rikkonen
35f4657ea1
(d85d68721) Fixed character's feet getting stuck to platforms when climbing ladders while holding A/D
2019-05-03 13:44:04 +03:00
Joonas Rikkonen
fb21005258
(6f4bea467) Updated doors
2019-05-03 13:43:47 +03:00
Joonas Rikkonen
bc5f571903
(29d8edbb9) Use a sprite to draw the lines on the sonar display (looks better than GUI.DrawLine)
2019-05-03 13:42:36 +03:00
Joonas Rikkonen
1d7faa8d1d
(b778c4641) Docking button works now in the docking interface, change button text depending on whether we're docking/undocking, some placeholder UI graphics for the nav terminal
2019-05-03 13:42:19 +03:00
Joonas Rikkonen
a2c2f72357
(2edf7845f) Progress on docking interface (nudge controls), focus sonar on the center of the submarine instead of the nav terminal
2019-05-03 13:40:31 +03:00
Joonas Rikkonen
5dc31c213f
ad0bbaf...7245c72
...
commit 7245c721339885d062567befc052a592391b3b4a
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sun Mar 10 15:22:31 2019 +0200
Fixed StatusEffects only applying afflictions to one limb even if the target is "Character" instead of "Limb", added a subtle screen distortion effect to heavy radiation sickness. Closes #1256
commit e0db27e62ec9546fd4b182a0cc97f7e5830645ae
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 21:53:51 2019 +0200
Fixed WrapText adding unnecessary spaces after every line break. Closes #1215
commit 988bc58d51c195ad9265b84a1e97e0101cd3f808
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 21:12:50 2019 +0200
Fixed crashing when attempting to create a body for a wall section that's less than 1 unit long (e.g. if a wall that's just slightly longer than the wall section size receives damage).
commit 8c31157425a9e2ec02312618d1bfa359ab3ee87d
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 20:30:44 2019 +0200
Fixed clients being unable to toggle the respawn shuttle on/off
commit a4ccb039219830efe9cd305c26942dda1bd04e9c
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 19:33:22 2019 +0200
Fixed inability to select the respawn shuttle as a client host
commit b89b2d2c282d8c74d7ccd37b3f29dcab51eff680
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 19:32:41 2019 +0200
Made it possible to edit the style of the ListBox under GUIDropDowns, increased the opacity of the listbox to make the contents more readable when there's text behind it
commit 8f6d9aef3d637fe37a18c78f4b15ef8fd266374e
Author: Joonas Rikkonen <poe.regalis@gmail.com >
Date: Sat Mar 9 18:11:23 2019 +0200
Fixed NetLobbyScreen not showing the names of the submarines the client doesn't have
2019-03-18 22:39:57 +02:00
Joonas Rikkonen
044fd3344b
2f107db...5202af9
2019-03-18 21:42:26 +02:00
Joonas Rikkonen
6c0679c297
38f1ddb...178a853: v0.8.9.1, removed content folder
2019-03-18 20:39:27 +02:00
Joonas Rikkonen
d81ee1a27e
Added a bunch of checks to make sure a normalized zero vector (= NaN, NaN) is not used in any position/velocity/movement calculations. There were at least three places where it was causing problems according to error reports: when a character that can't enter a sub spawns at the center of a hull and when using an underwater scooter or throwing something while the cursor is at the position of the character, but there were tons of other places as well where it may have potentially caused physics errors.
2018-07-31 12:28:04 +03:00
Joonas Rikkonen
79f3f04c3b
Fixed Steering components never setting their currPowerConsumption field above zero, making them cause zero load on the electrical grid.
2018-01-01 15:00:12 +02:00
Joonas Rikkonen
b3769b383a
- Input field for rects.
...
- Input fields for ItemComponent requiredItems.
- Added tooltips to a bunch of editable ItemComponent properties.
- Misc fixes.
2017-11-13 22:06:13 +02:00
Joonas Rikkonen
8e556f1c76
- Renamed a bunch of ObjectProperty-related stuff (ObjectProperty -> SerializableProperty, IPropertyObject -> ISerializableEntity, the "SerializableProperty" attribute -> Serialize).
...
- Rectangle serialization.
- Option to restrict numeric properties to a range of values.
- WIP generic ISerializableEntity editor.
2017-11-08 21:15:03 +02:00
Joonas Rikkonen
a0d606ef5f
Working on improving the serialization system and ObjectProperty/IPropertyObject (TODO: come up with better names). The plan is to:
...
- Add support for some of the most common types (vectors, colors, rects) so there's no need to parse the values in the setters of the serializable properties (see Holdable.HoldPos for example).
- Make a generic version of the item editing HUD that can be used on any IPropertyObject. Should make it easier to implement things like the character editor, editing structure properties, particle editor, etc.
- Improve the interface of the editing HUD. Instead of having to type in a string value into a textbox, there should be number input fields for numeric properties, sliders for properties that only accept a range of values, a color picker, etc. And tooltips.
2017-11-03 19:41:21 +02:00
Joonas Rikkonen
1ff2054ca8
Converted the GetAttribute methods in the ToolBox class to extension methods
2017-10-04 18:38:40 +03:00
Joonas Rikkonen
1311a286f5
Added battery recharge docks, moved applying OnActive statuseffects to the Powered itemcomponent, removed smoke particles from stun baton hit effect
2017-09-03 16:57:32 +03:00
Joonas Rikkonen
64ad5e5003
Removed unnecessary using directives
2017-07-05 18:35:09 +03:00