Commit Graph

33 Commits

Author SHA1 Message Date
Mnemotechnican
7463b37f3b More Gamemodes (#527)
# Description
Adds traitors and hellshift to the list of gamemodes offered by the
gamemode vote.

Traitors just make sense.

Hellshift is a new version of survival. It starts out roughly as slow as
survival, but it slowly devolves into a torrent of station events as
frequent as one every 10-30 seconds. Good for when there's no other
~~self-antaggers~~ players to spice up the shift, or when there's one
too many security officers to deal with all the threats this brings.

# Technical details
Had to refactor a lot of RampingStationEventScheduler. Firstly, it was
total shitcode, secondly, it had everything hardcoded, thirdly, it had a
bug that made it possible for events to appear with little to no delay
whatsoever. Now its component features four data fields that can be used
to configure the scheduler and its system contains cleaner and more
readable code.

<!--
This is default collapsed, readers click to expand it and see all your
media
The PR media section can get very large at times, so this is a good way
to keep it clean
The title is written using HTML tags
The title must be within the <summary> tags or you won't see it
-->

<details><summary><h1>Media</h1></summary>
<p>


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/e9831b63-0339-4849-981a-bdc58c7beabe)


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/bfa117d3-cb66-456b-9425-1b3bf80cd60f)


</p>
</details>

# Changelog
🆑
- tweak: Players can now vote on two more gamemodes: Traitors and
Hellshift.

---------

Signed-off-by: Mnemotechnican <69920617+Mnemotechnician@users.noreply.github.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
2024-07-11 18:26:41 +01:00
Ilya246
e025ff72f2 buff gas leak event (#25864)
the fog is coming

(cherry picked from commit 27e14d8a9660c9ab7a69470e7566fea0ff1b71c1)
2024-03-07 01:28:42 +01:00
Pieter-Jan Briers
e7a3b82a8d Use new ComponentPauseGenerator (#25183)
Also includes some (non critical) changes to the solution file to re-organize the Roslyn components.

(cherry picked from commit e00f74505c62310bd15aeaba8d6530f648397074)
2024-03-07 00:57:05 +01:00
Nemanja
98530a63dc clerical error station event (#23091)
(cherry picked from commit 3e08fe07cd4eae61b6518660ec466b8015db799e)
2024-01-22 18:47:30 +01:00
Leon Friedrich
309ca8224c Fix closet skeletons spawning in nullspace (#22942)
(cherry picked from commit 0baffe32435341a066198805c94f38fd049395ae)
2024-01-22 18:36:51 +01:00
chromiumboy
a37bf27456 Power monitoring console overhaul (#20927)
* Prototyping whole station wire map

* More prototyping

* Added icons for the different power distributors and toggleable cable displays

* Power cable layouts are now only sent to the client when the power monitor is open

* UI prototyping

* Power monitors can now see the sprites of distant entities, long entity names are truncated

* Updated how network devices are added to the player's PVS

* More feature prototypes

* Added source / load symbols

* Final prototype! Time to actually code it properly...

* Start of code clean up

* Continuing code clean up

* Fixed UI appearance

* Code clean up complete

* Removed unnecessary changes

* Updated how power values are calculated, added UI warnings for power sinks and power net checks

* Updated how power values are calculated again, added support for portable generators

* Removed unnecessary files

* Map beacons start toggled off, console map now works outside the station, fixed substation icon

* Made some of Sloth's requested changes. Power distributors don't blink anymore, unless selected

* Moved a number of static variables in PowerMonitoringHelper to sensible places in the main files. Added a NavMapTrackableComponent so that you can specify how individual entities appear on the navmap

* Updated the colors/positions of HV cables and SMESes to improve contrast

* Fixed SMES color in map legend

* Partially fixed auto-scrolling on device selection, made sublists alphabetical

* Changed how auto-scroll is handled

* Changed the font color of the console warning messages

* Reduced the font size of beacon labels

* Added the station name to the console

* Organized references

* Removed unwanted changes to RobustToolbox

* Fix merge conflict

* Fix merge conflict, maybe

* Fix merge conflict

* Updated outdated reference

* Fixed portable_generator.yml

* Implemented a number of requested changes, move bit masks to a shared component

* Navigate listings via the navmap

* First attempt at improving efficiency

* Second attempt at optimization, entity grouping added for solar panels

* Finished solar panel entity joining

* Finished major revisions, code clean up needed

* Finializing optimizations

* Made requested changes

* Bug fix, removed obsolete code

* Bug fixes

* Bug fixes

* STarted revisions

* Further revisions

* More revision

* Finalizing revisions. Need to make RT PR

* Code tidying

* More code tidying

* Trying to avoid merge conflicts

* Trying to avoid merge conflicts

* Removed use of PVS

* Improving efficiency

* Addressed a bunch of outstanding issues

* Clear old data on console refresh

* UI adjustments

* Made node comparison more robust. More devices can be combined into one entry

* Added missing component 'dirty'

(cherry picked from commit 1de682e23fd3cb832fa3328a7e6c4bd4b1a858f7)
2024-01-22 18:28:33 +01:00
Kara
a23dce4702 Rename Miasma to Ammonia (#22791)
* Rename Miasma to Ammonia

* Namespace changes

* Map change????? why
2023-12-22 23:12:06 +01:00
Nemanja
23cbc4245e A return to foam (foam rework) (#20831) 2023-10-31 18:54:02 +01:00
deltanedas
950acba0e3 Ion storm event (#20277)
* ion storm event prototype + locale

* add lawsets

* use lawsets, make borgs ion storm targets

* ion storm rule and ion storm target

* lawset prototype

* use lawsets

* update silicon law system to use lawsets and support ion storm event

* new toys

* fix

* more fix

* fixy

* ion storm admin logging

* assigning laws makes borg provide its own laws, other stuff

* 1h reoccurence

* 50% chance

* better call saul

* emagLaws is required

* add announcment audio

* fixy

* family friendly gaming

* fixy

* address reviews

* fixy

* more fixy and no erp

* pro

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-10-31 18:51:30 +01:00
DrSmugleaf
4877e2aaf8 Replace string data fields with LocId where relevant (#20883) 2023-10-14 22:02:30 +02:00
Nemanja
1c227ad200 closet skeleton event (#19802) 2023-09-27 21:59:12 +02:00
deltanedas
24810d916b ninja 2 electric boogaloo (#15534)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-09-10 16:20:27 +10:00
DrSmugleaf
a88e747a0b Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
deltanedas
e65212ab90 better solar flare (#19189)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-08-19 16:39:35 -07:00
Moony
81e4668df3 Revert "Make power grid check event force APCs off (#17935)" (#18731)
This reverts commit d21e4a1d4e.
2023-08-06 13:39:48 -05:00
metalgearsloth
b0b1597aad Fix cargo gifts (#18449)
Some of the IDs were invalid and no typeserializer.
2023-07-30 12:53:54 -06:00
deltanedas
88eaf7a772 dragon minor refactor and stuff (#18149)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-07-25 10:32:12 +10:00
Slava0135
d21e4a1d4e Make power grid check event force APCs off (#17935)
* replace query with enumerator

* remove unnecessary imports

* prevent from toggling APC during event

* all entity query i guess
2023-07-18 15:11:43 -06:00
Slava0135
839720b538 Fix vent critters spawn (#17833)
* VentCrittersRule scaling chance + spawn on station

* merge mouse migration and vent critters

* fix prototypes

* check if there is no valid locations
2023-07-09 13:25:05 -06:00
Slava0135
41cf8cc554 add immovable rod event (#17278) 2023-07-02 09:40:07 -04:00
Slava0135
34bdb773f9 Mass hallucinations event (#17321)
* paracusia component auto comp state

* it works

* rule component config
2023-06-15 00:45:50 -06:00
Tom Leys
db81e59013 NanoTrasen might send Gifts to the station via Cargo (#16556)
* Rebase Cargo Gifts

* Remove Chaos values from gifts (for now)

* Translate CargoGifts, rename fields

* Fix gift errors, detect missing products

* Fix order Id, some crate IDs

* Fix get Station. Gifts for Sec, Med, Fire, spacing

* Minimum players for various gifts

# Conflicts:
#	Resources/Prototypes/GameRules/cargo_gifts.yml
2023-05-22 15:55:27 -06:00
crazybrain23
419ef47faa space glue 1984 (#16533) 2023-05-18 01:10:40 +10:00
Slava0135
0a9bb5024f Add space glue (#16355) 2023-05-15 01:35:10 +10:00
deltanedas
76645a460c lube 1984 (#15996) 2023-05-12 14:37:08 -04:00
metalgearsloth
0e81cb4319 Remove diseases (#15684) 2023-05-07 17:50:37 +10:00
Nim
78f56a4369 Slimes and their habitats (#15379)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2023-05-01 18:21:39 +10:00
LudwigVonChesterfield
6af0a91af3 Fixes Typo In Station Event Documentation. (#15932) 2023-04-30 11:43:49 +10:00
Nemanja
51506e3d30 Fix station events that use update loops (#15834) 2023-04-29 13:15:06 +10:00
Nemanja
59349b1b9b Gamerule Entities, Take 2 (#15765) 2023-04-25 20:23:14 -04:00
metalgearsloth
d3552dae00 Revert "Gamerule Entities" (#15724) 2023-04-24 16:21:05 +10:00
Nemanja
39cc02b8f9 Gamerule Entities (#15513) 2023-04-24 15:20:51 +10:00
Moony
0898c8a837 More events (#6894)
* Implements bureaucratic error and random sentience.

* Adds the Vent Critters event.

* bug moment

* forgot ignores.

* undo something i included in the PR by mistake.

* address review
2022-02-25 23:10:09 -06:00