Commit Graph

1974 Commits

Author SHA1 Message Date
AnturK
f28b2d60b9 Adds achievement metadata table (#48007)
* Renames hub_id to database_id
Adds achievement_metadata table.

* Fixups

* enum
2019-11-30 18:34:42 +11:00
carlarctg
fd0cfe9389 The Defib Nerf (Defibs are no longer a 10 second paralyze) (#47675)
* hardstuns? nostuns*

* WELCOME TO THE HAPPY HOTEL

* YOU'RE GOING TO LOVE IT HERE

* whoops i accidentally a status effect and a new item

* skog alert

* Update code/game/objects/items/defib.dm

Co-Authored-By: skoglol <33292112+kriskog@users.noreply.github.com>

* Update code/game/objects/items/defib.dm

Co-Authored-By: skoglol <33292112+kriskog@users.noreply.github.com>
2019-11-29 14:31:54 +01:00
Ryll Ryll
85de1066f0 Freeze! Adds holding people up with guns. (#47677)
About The Pull Request

Attacking someone with a gun at point blank with grab intent will now hold them at gunpoint. This means you will automatically shoot the target if they move or attack, though they're still free to rummage around in their (or your, if you continue standing next to them) inventory, speak (including using radios), and throw things. The shooter may roam around a 3 tile box radius without breaking the hold-up, allowing them to reposition themselves, though breaking visibility will break the hold-up. In addition, if you're several tiles away and they make a break for it, they may be able to dodge the projectile. Tactical choices!


For the first 3 seconds after the hold-up, any triggered reaction shot will deal normal damage.
Between 3-10 seconds after, any triggered reaction shot will deal double damage.
After 10 seconds, the reaction shot will deal 2.5x damage.

The ramp-up is to give weapons with weaker per-shot damage like disablers, laser guns, and the .38 the ability to be useful for arrests and stick ups, without affecting combat balance too much. If you got someone you're trying to kill to hold still for 2 seconds at point blank range, you may as well just keep shooting them rather than fiddle with holding them up. If you're gonna resist, it's best to do it quickly!

Lastly, if the shooter is attacked and takes damage from anything, they have a chance to flinch and fire in reaction. This is a 50% chance, unless they're hit in the arm holding the gun, in which case it's an 80% chance.

Why It's Good For The Game

Adds in mechanical backing for taking people hostage or being able to arrest people with the threat of violence rather than actually carrying out that violence. Trying to take hostages or hold people up right now will just get you immediately shove spammed mid-"DROP $500 OR FAILRP" unless the other person feels like playing along. This makes cooperating or risking getting shot an actual choice, increasing mechanical depth while also adding more roleplay potential.

Also yes, the target cuffing themselves will not trigger the reaction shot, so holding someone up, backing up, and throwing cuffs at them is a valid move.
2019-11-28 21:30:52 +13:00
AnturK
a31c460dc0 Moves achievements from Hub to DB. (#47617)
Drops byond hub support and adds score and top 50 browsers.

Requires DB changes and manual creation of migration script if we want to keep old achievements so no random merges please.
2019-11-26 20:35:28 +13:00
KomradeSpectre
db878e848b Adds a new element, Self-Knockback. (#47938)
* Adds a new element, Self-Knockback.

* Squashes a potential edgecase runtime in projectile_selfknockback before it can even happen.

* Allows item_selfknockback to interact with dense turfs now.

* Made self-knockback utilize the Element Bespoke flag to allow custom force and speed values on attachment.

* fixes newline issue, adds a usage comment.

* fixes the newline issue in self-knockback for real this time, thanks TortoiseGit.

* i swear on god almighty if this doesn't fix the newline issue, i'll eat a shoe.

* Testing newline lint
2019-11-25 21:34:14 +00:00
Emmett Gaines
12a4983b75 Adds a flag for bespoke elements (#47807)
* Adds a flag for bespoke elements

And applies it to firestacker

* Improves bespoke documentation
2019-11-25 17:53:00 +01:00
Rob Bailey
b4ded1ad00 The Bomb (#47929)
I spent a ridiculous amount of time on this.

Arm order now works like:
input disk
input nuke code, press E
input time, press E
press ARM to activate
press ARM again to deactivate (with disk)
press C to clear code input while ready but not armed
2019-11-25 11:50:52 +02:00
XDTM
cec90df582 Nanite timer rework and general code improvements (#47745) 2019-11-21 20:36:47 -08:00
ShizCalev
0ef3974ff4 Merge pull request #47837 from mrhugo13/New_Mob_Size
New MOB_SIZE define & Megafauna Fix
2019-11-19 13:25:42 -05:00
Unknown
33d4fc3613 Part 2 - Shitcode Tendency 2019-11-19 13:10:17 +01:00
ShizCalev
2769ebb17f Adds international garbage day, a day to respect janitors everywhere (#47846) 2019-11-19 00:05:26 -05:00
Emmett Gaines
5481515dff Removes the non bitflag slot defines (#47742)
Removes the non bitflag slot defines
2019-11-17 17:52:11 -08:00
oranges
8fd624e5a6 Adds international garbage day, a day to respect janitors everywhere 2019-11-17 22:38:55 +00:00
MrPerson
cccdcc6d04 Shooting a BSA beam at the SM will make it delaminate (#47748)
* BSA beam delams the SM via a new signal

Adds a BSA beam blocker element that blocks bluespace artillery beams. SM and singulo have it.

* Shut up Travis

* Destroy the singularity when it's BSA'd

* No shooting nar-nar with BSA

* Removed an incorrect and unhelpful comment
2019-11-17 19:22:51 +01:00
Unknown
d1f4e93457 Part 1 - Phantom Code 2019-11-17 13:50:23 +01:00
Emmett Gaines
6ffc35a83b Converts gravity slowdown into a movespeed mod and removes movement_delay() (#47808)
Gravity still needs a rewrite but at least it's a speed modification now.

EDIT: And now it's the last one, goodbye movement_delay()!

cl ninjanomnom
fix: Gravity slowdown applies to all mobs instead of just humanoids
tweak: If you're floating in high gravity somehow you're no longer slowed down
/cl
2019-11-17 13:21:31 +13:00
Emmett Gaines
70cc9d71c1 Migrates equipment slowdown to a movespeed mod (#47782) 2019-11-16 05:28:51 -08:00
Rob Bailey
3cb6432f80 Revert "Makes REF a macro (#47723)" (#47811)
This reverts commit b5b1ce67f7.
2019-11-15 16:36:07 -05:00
Emmett Gaines
b5b1ce67f7 Makes REF a macro (#47723) 2019-11-15 00:27:30 -08:00
Emmett Gaines
75c981b66a Converts slowdown from lacking limbs into a movespeed modifier (#47761)
* Converts slowdown from lacking limbs into a movespeed modifier

* Losing arms only slows you down if you have no legs
2019-11-14 21:37:54 +01:00
Couls
26a61a489c ports TGMCs click hack for non-hotkey players ports classic keybinds from TGMC (#47670)
About The Pull Request

Ports tgstation/TerraGov-Marine-Corps#2977, overrides click proc to return focus back to chat bar using winsets also ports tgstation/TerraGov-Marine-Corps#1904 which has two sets of defaults for hotkey and classic mode
fixes #47672 fixes #47659

much credit to @Rohesie and the TGMC team for a bunch of these improvements
Why It's Good For The Game

lets the non-hotkey players walk and talk again
Changelog

cl
add: Custom keybinds will now check what style (classic / hotkey) you prefer when resetting if you use classic mode make sure to reset your keybinds to default!
add: multiple keybind support
tweak: non-hotkey mode keeps focus on chat
fix: pressing 4 as cyborg now properly cycles
fix: AI location hotkeys now work again
/cl
2019-11-14 09:22:33 +13:00
Emmett Gaines
d8d1abadd1 Grab movespeed modifier (#47728)
* Migrates grab move delay to a movemod

Doesn't work until all grab state changes are hooked in

* Replaces grab_state sets with proc

`\bgrab_state\s*?=\s*?(\w+)` => `setGrabState($1)`
Check over the results, this will catch a couple false positives

* Catches a missed increment and fixes a bug
2019-11-13 03:30:28 -08:00
spookydonut
dd6fa5eded More spawn/sleep removals (#47634)
* remove more spawns

* more

* more

* varsets

* oops

* unfuck this
2019-11-13 03:07:59 -08:00
Krysonism
738b4fcae7 Da bottle update. Empty glass bottles, bottle crafting, hooch & moonshine bottles. (#47696)
* bottle bottle bottle

* newline
2019-11-12 17:54:49 -05:00
XDTM
196568e0d1 Timestop prevents speech (#47695) 2019-11-11 11:51:09 -05:00
AnturK
c20b4d5ab2 Replaces lentext with length (#47585) 2019-11-07 11:42:33 -05:00
Ghom
f325b3e5a0 Fixing "walking down stairs shows falling message" (#47588)
* I'm too tired to even PR it atm.

* Update code/game/turfs/turf.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update code/game/turfs/turf.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update code/game/turfs/turf.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* atom signal, not movable.
2019-11-07 11:26:43 -05:00
Time-Green
2f5326524b fixes reaction chambers sometimes not waking up (#47613) 2019-11-07 10:48:22 -05:00
spookydonut
2591ce17a6 Travis EOF newline detection v3 (#47539)
* scream

* aaa

* aaa

* new one
2019-11-04 19:16:50 -08:00
Couls
070bb5e69c Port Custom hotkeys from TGMC (#47003)
* custom keybindings

* Update _lists.dm

* Update robot.dm

* modify weights and clean up some vars

* Update say.dm

* Apply suggestions from code review

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* some review changes

* formatting

* include focus hack, remove me_wrapper, give default keybinds to new characters, misc fixes

* revert hack and more reviews

* remove another focus hack

this was causing issues with the keydown proc returning early
2019-11-03 01:35:30 -07:00
RaveRadbury
daf3db97de [READY] Social Service Mood Boosts Part 1: Clown and Mime Fan quirks (#47254)
* Adds mutually exclusive Clown and Mime Fan traits based off of Spiritual quirk

* Adds positive moodlets for sitting in rooms, adds pins and moodlets for pins

Need to figure out why the progress bar for being buckled doesn't show up.

* I forgot that Spiritual is 1 point.

* Reverts examining for mood boost and room mood boost events
2019-11-02 19:34:00 -04:00
Rohesie
9dd28d5180 ID fix (#47387) 2019-10-30 16:17:55 -07:00
XDTM
a3aa020af3 Makes nanites more accessible, giving them a separate research… (#47421) 2019-10-30 16:12:38 -07:00
Tlaltecuhtli
10ba7c11ef paychecks are now a % of the budget instead of fixed numbers (#47303)
* Update maps.txt

* 1

* fjdsfpsepi

* dasdasd

* hgd

* 2

* 3

* woops
2019-10-30 18:36:01 -04:00
py01
61c77619fb ablative trenchcoat fixes and cleanup (#47419) 2019-10-30 02:01:21 -07:00
XDTM
caed3b9556 Changes nanite extra setting strings into defines (#47437) 2019-10-30 01:41:48 -07:00
XDTM
e8d9e915b6 Merge branch 'master' of https://github.com/tgstation/tgstation into ThisRULES 2019-10-26 17:47:59 +02:00
XDTM
6bc1824649 Addresses review 2019-10-26 17:45:15 +02:00
Qustinnus
8a01398814 Adds achievement datums (#47058)
* First step

* achievements part 1

* epic

* done

* epic

* removes test datums

* adds minecraft achievement

* asss

* ass 2

* ass

* fix

* UPGRADE

* back-end partially

* back-end

* woops

* epic

* linted

* Achievements (#19)

* initialize SSachievements lists

* achievement ui actually tries to load

* witty commit description

* menu

* done

* done

* jesus christ

* ok linter

* Update code/datums/achievements/_achievement_data.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update _achievement_data.dm

* Update misc_achievements.dm

* Update achievements.dm

* Update

* And a space, goddamit!

* Rebuild tgui

* woops

* bruh moemnet

* ok conflicts

* finally
2019-10-26 05:57:42 -07:00
AnturK
bec3e60880 Multiz and isolated ruins support. (#47336)
Two new always_load_with options for ruins.
Use PLACE_ISOLATED to load the secondary ruin part in separate z level.
Use PLACE_BELOW to load it on the z level below.
2019-10-26 21:06:05 +13:00
nemvar
372189aad8 Prevent prevent contents explosion proc (#47337)
About The Pull Request

Proc literally only existed to return a boolean. Contents explosion is a clusterfuck anyhows. Basically it works something like this:

If the turf is the epicenter: GetAllContents of the contents and call ex_act on them directly. But it doesn't get the contents of whatever returns true on prevents_contents_explosion.
Otherwise: Call ex_act on the turf which calls the contents_explosion proc which has nothing to do with the prevents_content_explosion proc.

This is barely the smallest droplets of water onto a hot stone.

PR replaces the proc with a bitflag in flags_1.
2019-10-26 21:05:25 +13:00
spookydonut
436fb42f5e Adds more 513 compat stuff (#47230)
* Adds more 513 compat stuff

* tan

* ooops casing
2019-10-26 20:56:54 +13:00
AnturK
e83da09890 Allows specifying amount in spawn verb (#47343)
* Allows specifying amount in spawn verb

* Same cap as create panel.
2019-10-25 02:37:41 -07:00
TheChosenEvilOne
e0bcd2538f [Ready] Deadchat control component, also a chance for deadchat controlled birdboat. (#47110)
* Dead chat controlled singularity!
It just can't go wrong.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Renames the input_cooldown var to make more sense.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Begone ugly checks.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* oh yeah, I can just do this.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Replaced the deadchat control with a component.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Autodoc

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Removed the leftover global list.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Possessed goose, bye singularity.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* vomit

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Deadchat plays singularity

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Removed global mode completely, also reviews.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Reviews.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* alrighty then

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2019-10-23 22:00:22 +02:00
XDTM
9e0fd9fc5a Merge branch 'master' of https://github.com/tgstation/tgstation into ThisRULES 2019-10-22 22:46:07 +02:00
skoglol
2a4957420a Dynamic ruleset threat scaling and various fixes (#47100)
* baby steps.

* baby steps

* Nothing works yet.

* getting closer

* Base modes work

* Squashed some bugs, fixed config.

* small cleanup.

* dynamic.json, spaces to tabs

* Disabled events on dynamic.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Third and second ruleset probability.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Highlander ruleset stacking works correctly now.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Fixed a comment.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Allow changing variables in game mode with config.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Continue after invalid variable.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* Changed how revolution ruleset ends the round.

Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>

* fixed rule probs, stacking/ready bug, logging.

* More logging.

* Moved persistent check.

* Revs dont end on rev loss.

* Brothers count correctly no.

* Revs no longer makes borgs, deads or off-z players revheads.

* No headrev replacements.

* revs now refund on fail, reviews

* comment

* no game option changes.
2019-10-22 18:16:30 +02:00
spessbandit
e3d1e5c53e ghosts can't use monitors; dextrous animals can climb crates; fixes atrocious spelling (#47262) 2019-10-22 04:37:35 -07:00
skoglol
938e66f62c Adds sorting to most input() lists (#47117)
* Adds sorting to most input() lists.

* Sorted some global lists, added more input sorting

* Should now use correct sort everywhere.

* compiles

* Last fixes.
2019-10-22 04:28:42 -07:00
XDTM
efe63e3b47 Nanite program rebalancing, added two new mood programs (#47227)
* Nanite program rebalancing, added two new mood programs

* stealth immunity
2019-10-21 22:09:42 +11:00
Jordie
de85502ef9 Merge pull request #47199 from ninjanomnom/mom-says-update-your-icon
Makes an update_overlays() proc to manage overlays added by update_icon()
2019-10-21 21:12:51 +11:00