14 Commits
Author SHA1 Message Date
1af71a7c45 Unfuck shields by not making them process a huge list constantly. (#21428)
Ship shields currently occupy something like 40% of every machinery
process ticks. Basically generators make a fuckhuge list of all
generated shields (1.5k in the Horizon's case) and then they iterate
over this list every tick strengthening the shields.

The idea in this PR is to shunt shield logic to an abstract datum.
Fields no longer store strength individually; they store damage taken.
They only process once they take damage, they reduce that damage by the
field gain tick value every tick, and then they stop processing when
they no longer need to. Shield strengthening is shunted off to a signal,
so we only need to traverse the big ass list once every round probably.

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2025-10-07 12:34:20 +00:00
FluffyandGitHub 404c90f688 Replaced the outside turfs with exoplanet ones for the digsite (#20066)
Replaced the outside turfs with exoplanet ones for the digsite.
Fixed some exoplanet areas not having an exoplanet base turf.
Wrote a unit test for exoplanet areas to ensure they have an exoplanet
base turf.
2024-10-20 18:49:39 +00:00
28613fcec5 Some bugfixes. (#19707)
Fixes #19636
Fixes #19612 
Fixes build mode buttons going under darkness
Fixes items overlaying above closed shutters

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2024-07-27 10:10:50 +00:00
FluffyGitHubFluffyGhost <FluffyGhost>
29f616a5b1 Removed various set backgrounds (#18634)
* Atomization

* sadf

---------

Co-authored-by: FluffyGhost <FluffyGhost>
2024-03-13 21:27:27 +00:00
cadd19beac Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update

* fix that verb

* cl

* fix that

* toworld

* this is pointless

* update info

* siiiiick..

* vv edit update

* fix that

* fix editing vars

* fix VV

* Port the /TG/ globals controller.

* part 1

* part 2

* oops

* part 3

* Hollow Purple

* sadas

* bsbsdb

* muda na agaki ta

* ids 1-15

* 16-31

* 41-75

* bring me back to how things used to be before i lost it all

* the strength of mayhem

* final touches

* cl

* protect some vars

* update sdql2 to use glob

* stuff?

* forgot that is not defined there

* whoops

* observ

* but it never gets better

* a

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2023-12-26 01:16:02 +00:00
7f466a2ce0 Adds shield diffusers and modifies shields - Continuation (#13398)
* Adds shield diffusers and modifies shields

* Addresses my own review comments on original PR.

* Linter error.

* Diffuser code tidying + improvement.

* Matt's review comment, missing leading /

Co-authored-by: TGW <mc-casper@hotmail.dk>
2022-04-04 19:25:30 +01:00
Casper3667andGitHub f98b5582e5 Hull Shields now also protect asteroid rock walls (#12932) 2022-02-19 14:01:48 +01:00
Casper3667andGitHub 6d4131648c makes the hull shield make shielding over some floor types (#13105) 2022-02-06 12:00:33 -03:00
Casper3667andGitHub 4c98e01f7b Multi-z shields (#12568) 2021-10-06 19:12:12 -03:00
WernerandGitHub 6d8a94d408 Simulated to Unsimulated (#6410) 2019-05-19 16:22:54 +02:00
ErkiandGitHub 42e843d20d Fixes #3096 and #3461 (#3728)
Fixes #3096 which exists because T != U.
Fixes #3461 which exists because I should read the code I'm refactoring instead of getting carried away by RANGE_TURFS being faster.
2017-10-22 02:37:30 +03:00
Lohikarandskull132 b5472e50f4 Convert a fuck ton of machines to Initialize() (#2985)
Needs testing, but shouldn't break anything. Also adds Destroy() to the SMES base class.
2017-07-14 20:08:59 +03:00
skull132andGitHub 405366d15f Fixes #2803, #2553, #2597 & #2498 (#2940)
Fixes #2803
Fixes #2553
Fixes #2597 (Couldn't find a cleaner way to make this work, unfortunately. Not all procs-as-verbs can be used as procs.)
Fixes #2498
Fixes #2912
2017-07-04 00:52:42 +03:00
mwerezak 58e0b659d4 Reorganizes shieldgen source code and icon files 2014-08-10 11:58:25 -04:00