44 Commits

Author SHA1 Message Date
Matroftt
f3a27fff75 Add machine menu (#2793)
---------

Co-authored-by: lewri <lewri@users.noreply.github.com>
Co-authored-by: Artem Argus <ARGAMX@users.noreply.github.com>
2025-04-19 00:13:04 -04:00
lewri
3e0f44a958 Merge pull request #2197 from Alberth289346/poisson-func
Add Poisson distribution function.
2025-03-14 19:19:22 +00:00
MandrakeHorse
3490143ed8 Add new language (Japanese) 2024-11-04 18:17:27 +00:00
JurecStrongman
070924bfff Add new language (Ukrainian) (#2611)
* Update .luacheckrc
add "ukrainian" language file to ignore warnings

* Update config_finder.lua
* Update config_template.txt
add Ukrainian to lang list

* Update ukrainian.lua
* Translated all missing strings
* Changed translation of humanoid names
2024-09-09 11:47:55 +01:00
Toby Lane
4df197318b Refactor earthquakes to its own class 2024-07-07 08:52:04 +01:00
Toby Lane
ddd1cf0956 Add groups to win/lose criteria 2024-05-10 17:49:24 +01:00
Alberth
1d4180b5d9 Silence luacheck 2024-01-29 21:36:24 +00:00
lewri
1a026df385 Add simple interface for serialize
Adds a simplified interface for serialize
2023-11-25 12:13:01 +00:00
Toby Lane
f022583710 Luacheck warnings tidyup, global ignore for unused params 2023-05-22 18:43:38 +01:00
Toby Lane
f9ea7d5a6d Remove unused parameters 2023-05-22 16:07:43 +01:00
Alberth289346
09d33451eb Add Triangular disitrbution function. (#2198) 2022-07-04 13:35:41 -04:00
Toby Lane
0503905aea Remove inlined ignores from .luacheckrc 2022-05-17 19:07:18 +01:00
Toby Lane
241304660c Add luacheck inline ignore for intentionally accessing undefined variables 2022-05-17 19:07:18 +01:00
Toby Lane
fe201bf1d9 Remove unnecessary ignore for unused variable 2022-05-17 19:07:18 +01:00
Toby Lane
9b94335390 Add luacheck inline ignore for intentionally changing global variables 2022-05-17 19:07:18 +01:00
Toby Lane
92bdb258e1 Add luacheck inline ignore for setting global variables 2022-05-17 19:07:18 +01:00
Toby Lane
574faff3ed Add luacheck inline ignore for accessing undefined field 2022-05-17 19:07:18 +01:00
Toby Lane
5be84a40df Add luacheck inline ignore for intended variable never accessed 2022-05-17 19:07:18 +01:00
Toby Lane
cbfbaaff77 Add luacheck inline ignore for intended empty if branches 2022-05-17 19:07:18 +01:00
Toby Lane
cb44a04a2e Create stubs section in Hospital, with PlayerHospital order and comments 2022-04-30 09:26:42 +01:00
Toby Lane
2dd5396986 Use luacheck inline ignore for intentionally unused arguments 2022-04-30 09:16:24 +01:00
Toby
5a781cb9ea Minor fixes related to luacheck (#2137)
* Add staff_initials_cache to globals list

* Add parent class afterloads where missing
2022-04-29 22:36:21 -04:00
Stephen E. Baker
ad9e62a0ba New Hotkey settings layout
Use left side buttons for choosing sections, with keys laid out on the
right. Allow sections to take up full width unless there is reason for
side by side - currently only used for store and recall keys.
2021-07-20 22:50:19 -04:00
Stephen E. Baker
71cef6f507 Move game speed hotkeys to a new panel
Allows all keys to fit now that there is a reset zoom button.
Fixes: #1941
2021-07-20 22:50:19 -04:00
Stephen E. Baker
d2af1ebc8f Merge pull request #1706 from tobylane/wardnurse
Patients in a ward may stay in bed when the nurse leaves
2021-07-02 23:28:46 -04:00
Stephen E. Baker
73d1fea272 Merge pull request #1745 from tobylane/staffnames
Add initial to staff names, from users language
2021-06-29 09:09:48 -04:00
Robert Flack
807068838c Implement serious radiation animation effect (#1938)
Also this change adds a treatPatient function for removing the effect
and restores the afterLoad function to support loading saves with this
disease assuming the style based on cured.

* Set effect on disease data type to be applied when patient has disease.

* Persist animation patient_effect.

Also adds fallback code for old savegames to infer whether to apply the
effect based on the cured state, which will be correct most of the time.

* Apply jelly effect for Jellyitus.

Even though this doesn't have any visual effect, this will ensure the
effect in savegame version 158 is set correctly.

* Track game_ticks and use to drive patient animation effects.

* Calculate the serious radiation sine angle based on the cycle length

By taking the remainder after dividing by the cycle length we can ensure
that no precision is lost when converting large values of game_ticks to
the desired angle.

* Bump lua api_version.

Co-authored-by: Luís Duarte <lduarte@luisduarte.net>
2021-06-23 20:24:14 -04:00
Toby Lane
9902bb0012 Add initial to staff names, from users language 2021-04-30 15:15:03 +01:00
Toby Lane
4c453a8b6c Patient's healing in a ward is based on the number of other patients, and the number and quality of nurses 2021-04-25 08:24:45 +01:00
Dimitrios Iliadis
0176f0e91f Added Greek language file (#1772)
* Added Greek language file

For some newspaper titles that can't be directly translated into Greek, I've tried to create new humorous titles in the same spirit as the originals. There's a couple I have yet to alter.
2020-12-28 08:32:56 -05:00
Stephen E. Baker
b4d0519797 Set the cstacklimit for 5.4.0 / 5.4.1 2020-10-26 22:32:46 -04:00
Toby Lane
4db9d16975 Lua 5.2+ compatibility in luatest 2020-09-21 15:45:55 +01:00
Alberth289346
4a4c6290c2 [rdy] Create player hospital (#1711)
* Create PlayerHospital, move AIHospital

* Construct a PlayerHospital for the player, move hospital creation code to a single spot.

* Change player hospital instance to the PlayerHospital class.
2020-09-17 20:37:11 -04:00
lewri
617d7dcf92 [RDY] Refactor cheats + Roujin Challenge (#1704)
* Refactor cheats

* Cheats Refactor using UI

* Reintoroduce Roujin's Challenge

Re-adds the lost Roujin's challenge.
This cheat triggers the cheats used flag.

* Bump savegame version

* Add afterload and travis fixes

* Update cheats.lua

* Missing a passthrough afterload

* Some updates

Removes user message on afterload
Changes a print to a gamelog
Added Cheats to luacheckrc

* Coding convention compliance

Camel case needed changing to snake case for the cheats list

* Changes requested

* Travis fix
2020-09-10 07:47:37 -04:00
mugmuggy
635a71b784 [RDY] Research fax options updating (#1484)
* Research fax options updating

* Update to better handle message content

* Updates from feedback

* Trainee doctors notify hospital
2019-04-20 07:52:20 -04:00
Stephen E. Baker
fd99e753ce Subclass Staff
Create new Doctor, Handyman, Nurse, and Receptionist classes
Remove self warnings from luacheck
2019-03-26 20:03:06 -04:00
Stephen E. Baker
ae532d609b Prepare luacheckrc for hotkey changes 2019-01-16 21:20:45 -05:00
Stephen E. Baker
0076539bfd Fix one iteration loop warnings
Use next instead of pairs to test if a table is empty.
2018-06-04 17:30:42 -04:00
Pavel Schoffer
0b31655228 Adds assertionMatches to base test class 2018-03-09 12:52:59 +01:00
Stephen E. Baker
153281d24b Rename dofile to corsixth.require
Moves our custom require like function which handles persistence
to a new corsixth scope to avoid confusion with the built in method.

The require name is closer to the actual behaviour of the corsixth
version.
2018-02-01 07:08:14 -05:00
Pavel Schoffer
0d2e51aef7 Date implementation
* Replaces all world.day, world.year usage with date
2018-01-31 08:36:33 +01:00
Justin
5602a171a2 Door alignments with TH
Refactors adding doors.
Adds the idea of shared passable tiles, e.g. in front of a bench, which allows
another passable tile to occupy the same spot, but not an object.
Fixes issue where doors could be blocked in some circumstances
2017-11-09 21:50:23 -05:00
Alberth
742091b3dc Update lua check configuration newer luacheck version 2017-04-05 17:46:48 +02:00
Alberth
8f823bb22d Add luacheck, and run it in Travis 2016-12-04 16:48:55 +01:00