Commit Graph

745 Commits

Author SHA1 Message Date
Qustinnus 5140cff38c [reviewpls] Adds moodlets to the game - [Please give suggestions for trait additions in comments] (#35475)
Floyd / Qustinnus (Sprites by Ausops, Some moodlets by Ike709)

add: Adds mood, which can be found by clicking on the face icon on your screen.
add: Adds various moodlets which affect your mood. Try eating your favourite food, playing an arcade game, reading a book, or petting a doggo to increase your moo. Also be sure to take care of your hunger on a regular basis, like always.
add: Adds config option to disable/enable mood.
add: Indoor area's now have a beauty var defined by the amount of cleanables in them, (We can later expand this to something like rimworld, where structures could make rooms more beautiful). These also affect mood. (Janitor now has gameplay purpose besides slipping and removing useless decals)
remove: Removes hunger slowdown, replacing it with slowdown by being depressed
imageadd: Icons for mood states and depression states


What this PR is

This PR adds a system that allows player to gain and lose moodlets based on events occuring to, and around them. These events then give the player a mood value based on what it is. For example a hug could give you +1 mood, while being stabbed in the eye with a screwdriver can give -5 mood. All these moodlets together determine the mood of your character which currently affects the following things:

    Movement speed - If you are very sad you move slower. Replacing movement slow from hunger. (hunger now instead affects mood)
    Screen blur - If you are sad you gain an overlay that slightly blurs the screen, increasing in severity as you get sadder.
    Interaction / do after speed - If you are sad or happy your interaction speed with things such as handcuffs is changed. with a 25% longer time if you are sad, or 10% shorter time if you are extremely happy.
    Hunger rate - You gain hunger slower if you are very happy.
2018-03-08 14:15:57 +13:00
Kyle Spier-Swenson 0e337c6489 [s]Adds detection for spoofed 512 clients (#36169)
* Adds detection for spoofed 512 clients

* actually reject the client.

* Fixes Shift Failure
2018-03-07 12:26:49 +13:00
Ashe Higgs 5c8d845f56 [s] Improves and secures trait assignment code, allows their pref to be changed midround, tweaks RDS and Night Vision (#36160)
* Traits but less buggy

* no tick while dead

* fix security vuln
2018-03-06 15:57:42 +02:00
Kyle Spier-Swenson e83c6626a3 Cleans up save file update code. (#36031) 2018-03-05 13:56:22 +01:00
Kyle Spier-Swenson 1e24836c02 Add support for auto admin when ran in single user mode
address is null in single user mode, but we didn't support that because address has been null because of a byond bug, but now that this is a config we don't have to care since its off in production.
2018-03-01 16:46:21 -08:00
Ashe Higgs ab9e2e8902 Adds minor roundstart traits! (ala CDDA, etc.) (#35440)
* Roundstart traits

* Unspaghettifies night vision

* Fuck everything

* Issues patch
2018-03-02 13:39:44 +13:00
Jordie 23a45889ed Modernizes SQL admin loading (#35264)
* updates sqladmins with excluded flags and tempminning

* rank, editing and permission protections; json backup

* fixes

* reverted the wrong file

* fix slidecolor cascading and disabled switches not being sent in form

* removes debug uncommenting

* whoops this too

* commas fix + versions for changelog entry headers since 3.0

* actually account for can_edit_flags and use of @ with - or *

* fixes and rearrangement of admin > localhost > autoadmin precedence

* in case you want to not have autologin autoadmins
2018-03-02 13:38:26 +13:00
AnturK 619b273ed3 html_interface removal and crew monitoring console refactor. (#35431)
Quick changes list:

    html_interface gone
    unused card interface gone
    minimap gone from crew console(subsystem not disabled in case something else wants to use it)
    ui_host() now takes user parameter
    Some assets moved around.

Fixes #22124
2018-02-16 09:31:21 +13:00
Kyle Spier-Swenson 176a181be6 Fixes blacklisted byond builds 2018-02-13 14:39:20 -08:00
Kyle Spier-Swenson 3494d14c60 More blacklisting 2018-02-12 14:14:03 -08:00
Kyle Spier-Swenson aad3bddffc [s]Blacklists the most recent version of byond for basically being a wall hack (#35516)
* Blacklisted client builds.

* Missed a spot

* glob was a mistake
2018-02-11 10:36:27 +13:00
Ashe Higgs da961200f0 Fixes button lock not saving (#35465) 2018-02-10 10:58:06 -05:00
MrStonedOne 7fa0f51abf Fixes job exp hounding the database more than it needed to.
There is no need to select the current values if we make sure to use the right operations.
Next on my list is a more generic batched sql system that can do things like select rows based on a list of primary keys, using one query (by abusing the in keyword) as well has abtract away the need to directly do overriding add_timers.
2018-02-07 03:57:15 -08:00
ShizCalev ee18d6f8e2 Fixes clockwork sigil candidate runtime, cleans up some jobban checks with defines (#34907)
* Cleanup

* .

* Synced special_role & factions with role defines

* Revert

* more cleanup

* fix
2018-02-04 03:03:34 -06:00
Cruix 47a57f63c5 Added transit tubes to the RPD (#35074) 2018-02-04 02:44:59 -06:00
Kyle Spier-Swenson 47f3d89265 raises the cid check disconnect time out (#35244)
Disconnects from deleting the client are immediate, where are other commands are queued to some degree or another, browse is the worst one of all since it has to queue behind after connect resource sends as well as the asset cache or browse_rsc calls.

I'm finding hints that clients on lagger connections are getting disconnected before getting the reconnect command, and I was able to reproduce this myself on a cell phone connection while connecting to terry
2018-02-03 14:09:25 -05:00
Leo bf8983dd7e Merge pull request #35150 from DaxDupont/myanusisbleeding
Fixes a naughty dot
2018-01-31 22:38:29 -02:00
Dax Dupont 7968bd40f7 Fixes errand dot 2018-01-30 21:27:34 +01:00
Kyle Spier-Swenson 265b5e0e45 Makes the asset cache faster (#35003)
Winexists contacts the client and blocks, slowing down asset cache sends needlessly.

We now send multiple assets between verified sends. speeding up how quick preloading happen and reducing the number of junk files created in the clients cache.
2018-01-29 04:04:31 -05:00
Jordan Brown f98a4e66cd Merge pull request #34755 from ChuckTheSheep/Current-Color-as-Default-Color-in-Inputs
All color inputs use current color as default choice
2018-01-24 19:13:58 -05:00
MrDoomBringer 20a6c0cdd7 Adds ~70 more suicides (#34522)
Does what it says on the tin, probably a terrible idea
2018-01-23 20:38:31 +13:00
ChuckTheJittai 02033f1756 All color inputs use current color as default choice
Went through all the color inputs and made the "default" argument the current color of what is being selected.
2018-01-21 13:07:35 -05:00
Joan Lung b30e2934e7 Moths, except I have stolen them and they no longer conflict (#34498)
* Moths, except with less conflicts

* if I remove your wings, will you die?

* it would be extremely painful
2018-01-19 10:32:22 -05:00
Jordan Brown f616007e9d Revert "Removes duplicate goonchat font-awesome (#34400)" (#34640)
This reverts commit d013e207dc.
2018-01-19 16:29:25 +01:00
Jordan Brown d013e207dc Removes duplicate goonchat font-awesome (#34400)
* Removes duplicate goonchat font-awesome

* Fix font awesome path
2018-01-19 16:28:41 +01:00
Jordan Brown 1998d6dc47 Merge pull request #34331 from Shadowlight213/expplayervisibility
Players can now see their own tracked playtime
2018-01-19 09:44:35 -05:00
Cyberboss 6fe468e3b4 Moves load_motd to config controller 2018-01-15 10:44:25 -05:00
Kyle Spier-Swenson 5bceb36588 Fixes compiler errors in the preload_rsc external resource thingy (#34061)
Fixes compiler errors in the preload_rsc external resource thingy
2018-01-15 10:32:20 -05:00
Tad Hardesty 9f0022cb08 Fix slot machine design icon 2018-01-12 07:05:00 -08:00
Shadowlight213 a9736714e8 Fixes displaying non crew roles in the exp report.
Lets players see their own playtime.
Fixes admin exp bypass not using the correct proc to check rights.
2018-01-11 14:02:01 -08:00
Dax Dupont 03982074c5 PDA Interface color is now an option 2018-01-01 23:23:02 +01:00
Tad Hardesty 739e17dfa3 Maybe make R&D console icons load faster (#33749)
* Maybe make design icons load faster

* Move design icon generation to asset_cache file
2017-12-27 19:04:52 +13:00
kevinz000 614f7a27d7 Logs coords for hrefs 2017-12-25 00:30:32 -08:00
Armhulen e72cfeba72 code improvements from mso and co (#33485)
* eees zed

* mk?

* probably

* *burps*

* lol code

* thanks, cyberboss. you're the best

* why'd i do that?

* 😎
2017-12-18 20:50:35 -06:00
Emmett Gaines 25080ff2c4 defines math (#33498) 2017-12-17 11:02:11 -05:00
oranges d25ddc86f8 add view range respects widescreen (#33581)
It will simply increment the x and y independently

This prevents a runtime of trying to add a number to a string
2017-12-16 23:09:13 -05:00
Emmett Gaines 4ec09a0c19 Re-Support old hotkey mode behaviour (#33460)
* supports old hotkey mode behavior

* testmerge fixes
2017-12-17 15:35:47 +13:00
Jordie e889f56d7b Feedback changes (#33441)
* various feedback changes

* no bad github no spaces
2017-12-15 11:36:08 +13:00
Kyle Spier-Swenson 4e929c74a9 Deadmin tweaks: Admins without +AUTOLOGIN start deadmined. AUTOLOGIN defaults to on. (#33480)
* Deadmin tweaks, Admins without +ADMIN start deadmined.
Deadmining no longer destroys the admin datum.
Admins without +ADMIN start deadmined, reloading admins re-deadmins them.
Moved some code around to make it more sane
People with +PERMISSION can now deadmin or readmin other admins at will.

* Adds new flag for if the role should automatically log in, defaults to on, can be removed with -AUTOLOGIN
Also fixes a bug in permission panel not handling these cases gracefully
2017-12-13 22:03:37 -05:00
AnturK 3d813853b5 Roundend report refactor (#33246)
* Roundend report refactor

* I won't be fixining every moved part but here you go

* Preparation for feedback

* Fixup

* First draft of feedback (wip)

* Simple version of feedback for custom objectives/explanation texts

* Debug verb removal

* Fixes & show again action button

* Admin objective handling

* Fix and first step of css standarization.

* Every time

* More css

* Fix

* Fixes, abductee datum, css tweak

* Feedback and css fix

* CLIENT DETAILS DATUM + CLIENT ACTIONS + spilled css fix

* Integrates clockult badcode

* Fix

* Fix lists in assoc feedback

* Unified antagonists and teams feedbacks, bumped up antagonists version

* Adds chat link to reopen the the report

* Fixes some clockcult stuff, passes antag name to feedback

* review stuff

* fix

* Adds some missing spacing

* Roundend corners, has css gone too far.

* Spacing between same antags

* Changeling and traitor objectives now have same spacing

* Wizar report typo fix

* Wrap brother team.

* Also move it to more relevant file

* Fixes cult summon objective

* Fixes roundend report for full-round observers

* Fixes wizard with apprentices roundend report

* Tutorial scarabs don't show in roundend anymore, adds some check_ticks

* Prettier station goals

* Merges roundend delay things

* Spread the lag around

* Fixes relogin qdeling eminence

* ckey -> key
2017-12-11 11:57:20 -05:00
Tad Hardesty cfe23dddca Replace pAI verb tab with an action button (#33358)
pAI suicide is now standardized with other suicides. The Software
Interface verb has been changed to an action button. This eliminates the
need for a verb tab for only two verbs.
2017-12-08 23:46:05 -05:00
oranges caf024ec92 Merge pull request #33350 from Cyberboss/FixConfig
panic_address -> panic_server_address
2017-12-08 22:37:44 +13:00
jammer312 f07421a002 Makes actionbuttons remember positions where you locked them. (#33150)
* conjure spells fix

* added newline at end of file

* actionbuttons positioning memory

* remade id generation

* added memory reset on mass reset

* small fix
2017-12-08 22:29:42 +13:00
Cyberboss 344d294bb8 panic_address -> panic_server_address 2017-12-06 23:35:26 -05:00
deathride58 08504355d4 Adds support for non-1:1 screen ratios (Doesn't add widescreen) (#32950)
* adds support for non-1:1 screen ratios for fullscreen overlays

* prevents future copypasta, adds widescreen support to clickcatchers

* oops, makes it actually compile

* HOPEFULLY makes it actually compile, makes projectiles and mouse_angle_from_client support widescreen

* i need shittier shitcode

* !!!HOPEFULLY!!! fixes the screen fuckery

* Fixes compiling errors. Tested locally, it seems like it works

* fixes runtime in mouse_angle_from_client

* Fixes non-1:1 TGUI runtimes for borgs and ghosts

* adds actual defines for fullscreen overlay resolution

* makes varediting view call change_view to make clickcatcher regenerate proper

* testmerge toggle widescreen verb and fixes vving view

* FUCK - fixes test verb to properly use change_view, so clickcatchers regenerate and such

* fixes parallax runtimes - how'd i miss this

* removes debug verb
2017-12-05 20:45:47 -05:00
ninjanomnom 7b7b67edd8 In-code key handling system 2017-11-30 07:40:27 -05:00
Emmett Gaines 7c69cdcb8a Revert math (#33059)
* Revert "all this wrapping and it's not even christmas (#33035)"

This reverts commit faaf151580.

* Revert "fuck me for forgetting to graph this one"

This reverts commit 45d7acea2f.

* Revert "defines math"

This reverts commit 2817a1737b.
2017-11-23 20:59:52 -05:00
ninjanomnom 2817a1737b defines math 2017-11-22 17:36:58 -05:00
ShizCalev 8eafaccc88 Cleans up unused code 2017-11-20 00:03:33 -05:00
duncathan salt 1792d92a57 RPD ui improvements (#32736)
* continued work on the tgui RPD

* RPD tgui is 1:1 in functionality with old RPG ui

* minor improvements to RPD functionality

* pipe dispenser ui update

* revert

* fixes
2017-11-18 13:03:47 +13:00