Commit Graph

1228 Commits

Author SHA1 Message Date
Mykhailo Bykhovtsev
90c28aa6f5 Another small gravity update (#6862) 2019-08-16 19:40:13 +02:00
Mykhailo Bykhovtsev
1c6e9a8281 Finding Newton's G theory (#6754)
Falling base damage was reduced from 60 to 40. Also you no longer take remaining damage from limbs to the chest.

    Changed falling limb priority damage from head > arms > leg to legs > arms> head

    Added new Malf ability to Malfunction gravity. it costs 2500 to research and 300 CPU to use. The ability will disable station gravity for 3 seconds and push them back on the ground with force as if they fell from 1 Z level.
2019-07-29 23:22:25 +03:00
Werner
e3e13ec14a More interactions for small mobs (#6764)
Small mobs such as rats can now bite cables.
Small mobs that can ventcrawl now interact with atmospheric machines that contain pumps
Small mobs can no longer block airlocks by standing in them.
2019-07-24 20:52:06 +03:00
Erki
514e1f2aa4 Makes sounds with a low enough volume only audible within line of sight (#6515)
It has been posited that it doesn't make sense to hear certain sounds through walls. So, I proceeded to go and change that.

All sounds with a volume of 50 or less will now be played only to the "hearers" list. This is basically people within line of sight. I also rewrote the lower levels of the sound API with this. The code is now more modular, while retaining the same main API entry point playsound.

This needs a test merge to see how badly I broke shit.
2019-07-13 17:50:01 +03:00
Mykhailo Bykhovtsev
df4ccdd7b4 Bugfixes (#6664)
Fixes #6504

Fixes #6508

Modular guns can now be used for turret construction

bugfixes were seperated from: #6505
2019-07-05 09:17:54 +03:00
Lady Fowl
99bc56fc39 Borg Adjustments (#6600)
balance: "Medical borg's are now able to handle tanks, breath mask's and organs with chem gripper."
    tweak: "Renames Hunter Killers to Military Frames."
2019-07-04 22:35:43 +03:00
alsoandanswer
e004413c18 adds cool animations (#6533) 2019-06-14 17:53:58 +02:00
skull132
0f830f1d25 Logging 2019-06-03 01:45:49 +03:00
skull132
c2d6f6f055 Logging 2019-06-03 01:26:32 +03:00
alsoandanswer
0ba36f1828 Refactors objects.dmi and items.dmi, and a few more little things (#6487)
Refactors objects.dmi and items.dmi

Adds some more uses to glass jar - now you can use it as a tip jar AND a reagent container!
you can also see reagents inside like a beaker

also improves sprites for wrapping paper and the pocketwatch

This basically makes it easier for future sprite improvements
2019-06-02 19:12:54 +03:00
alsoandanswer
1bab746d17 adds new sounds (the not stupid version) (#6307) 2019-05-05 23:51:08 +02:00
Mykhailo Bykhovtsev
15640f0286 Lohikar's bugfixes (#6364) 2019-05-05 23:06:48 +02:00
Mykhailo Bykhovtsev
539c909161 Buffing containment field generators by 25% (#6293) 2019-04-19 00:47:30 +02:00
Mykhailo Bykhovtsev
cfe684a8a4 Animal traps fixes and improvement (#6152)
Fixes #6150

Animal traps now visually display what prey is inside of them by adding mob's icon as underlay.

Tesla no longer logs spawn of new miniballs

Fixes main changelog where it is supposed to be addition.

Fixes #6158

Examining animal trap with prey now also displays examine message of the prey itself too.
2019-04-05 23:58:10 +03:00
Mykhailo Bykhovtsev
51f817ab64 Gravity generator Fix. (#6237) 2019-03-31 11:39:13 +02:00
LordFowl
8d436c4a03 Converts all necessary << outputs into the to_chat() macro. (#6076)
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly;

All << is converted into to_chat().
2019-03-10 23:39:03 +02:00
Mykhailo Bykhovtsev
2c4011dde4 Tesla tweak update to previous update and re-haul[buff] (#5994)
This Pr tweaks previous update

Grounding rods now are vital for how many miniballs of Tesla can be contained without it going nuts and melt stuff. 1 rod = 4 miniballs. So with standard setup 4 rods = 16 miniballs max and that is around 4 million W energy.

Each time Tesla melts coil/rod/emitter it will loose a single miniball and drop in energy.

Tesla miniballs no longer shoot beams, instead they shoot main ball which shoot coils, accounting for energy produced by all miniballs.

Tesla miniballs no longer zap. Instead they shoot main Tesla ball which shoots one single beamn, which accounts how much power each miniball produces.

Tesla now looses more and faster energy with number of miniballs it has. Energy loss changes after 12 balls and after 16 miniballs.

Each miniball produces 156250W

Tesla Engine room is reduced in size, field is now 5x5.

Tesla now moves smoothly tile-by-tile. No more jumps
2019-03-01 20:27:52 +02:00
Alberyk
35822ec970 Fixes aut'akh repair (#6104)
This pr allow aut'akh to repair their assisted organs without having to do impossible robotics surgery on them.
2019-03-01 19:55:24 +02:00
LordFowl
0537ae6b0c Power Insulated (#6055)
It is now no longer to electrocute yourself by merely clicking on an exposed power cable with an object that happens to be conductive. Power cables are now insulated.

It is now possible to sever cables with an object that is sharp or edgy by clicking on an exposed power cable with said object while on help intent (to alleviate potential misclicks while fighting in maint, which one assumes is normally done in harm intent.) If the sharp object is conductive you will electrocute yourself.
2019-02-20 21:54:17 +02:00
Mykhailo Bykhovtsev
f83895cb82 Fixing runtimes V2 (#6006) 2019-02-11 01:05:12 +02:00
Mykhailo Bykhovtsev
e7ff9f8931 Making certain SMES and Blast Doors be critical + remapping Tesla APC and SM blast doors (#5993) 2019-01-29 13:23:35 +01:00
Mykhailo Bykhovtsev
db0d918d8c Fixing tesla with no balls (#5988)
This PR fixes Tesla not having miniballs. Problem was that it would delete its own generated balls. Fixes #5749

Tesla that has 9 or more balls will start to melt down any tesla coils or grounding rods.

Tesla that has 10 or more balls will start to target and melt down emitters

Tesla with no balls looses power as intended, thus dying with less than 0 power.
2019-01-27 17:31:49 +02:00
Alberyk
76b743a986 Adds the Aut'akh unathi (#5919)
* Base work for the unathi robot subspecies.

* Adds metabolism species, kidney vars, and the robot unathi organs.

* Moves some action buttons to organs, pretty much a bay port right now. Todo: the unathi and alien stuff should also go here.

* First autakh implant power.

* Fixes the organs action button this time.

* Finishes more implants, and interactions with flashs and vaurca.

* Prepare for great changes.

* Drops the real bomb, boss.

* He who fights with monsters.

* Far more work into augments and limb removing powers.

* Limb verbs should be good now.

* A LOT of work into the assited organ, allowing it to bleed and etc, as well adding a new chem that will stop bleeding in their case.

* Probably the last work on implants.

* Some extra touches.

* Some tweaks to the species.

* More fixes and adds kyre's sprites.

* More runtime fixes.

* Fixes the species name too.

* Fixes travis.

* Updates this file too to work with the new tools procs.

* Adds changelog

* Fixed changelog.

* Unathi hair and lore description.

* Some tweaks to this too.

* Locks away them for now, they will be released after we got all the events and etc done.

* Changes this chemical.

* Fixes an airlock runtime.

* Adds the non scan flag to the autakh, mostly due to some bizzare interactions with changelings and cloning.

* Organs removal changes; can't take out the organ if it is too damage.

* Restricts them back again.

* Robotic organs now have the proper icons and names.

* Adds sprites for their organs and some extra tweaks.

* Fixes this missing icon.

* emp should also now hurt assited organs.

* Tweaks more organ related things.

* Fixes the head not being properly set as well.

* Fixes their flags.

* fixes the flag for real this time.

* Poze's review.

* Changes the au'takh organ buttons to don't be animated.

* Helps with adminbus or something.

* Fowl's requested changes.

* Fixes a typo.

* Robotic limb's brute and burn mods are now controlled by the limb model.

* Fowl's changes once more.

* Stops some spam.

* More grammar.

* No eal.

* Skull's review.
2019-01-23 19:27:44 +01:00
Mykhailo Bykhovtsev
94f215c014 Fixing Z level cable update and substations (#5937)
Oh boi, this one is a tiny in terms of lines, yet a huge impact. It absolutely solves problem with powernet bug of cables not updating through Z levels properly. Spend lots of time and especially intellectual effort to debug this thing and finally comparing Bay's code and debugging ours showed that lines 359 and 364 should be power_list(T, src, 12) because that stands for marked and we have unmarked cables.

Fixes Z level update of cables, now it updates them properly. So the substations work. Fixes #5165 , Fixes #5883 , Fixes #5655

Fixes mapping of cables

Increases charge of runtime SMES

Adds Z powernet to runtime levels for debug and tests

Adds Z level supply pipes and vents for debugging and tests
2019-01-14 10:55:46 +02:00
Erki
f29506a45a Leave any sanity you had at the door step (#5885) 2019-01-03 19:08:54 +01:00
BurgerLUA
f7fc5371c4 Tesla Movement Reworks (#5693)
The Tesla has not been nerfed or buffed, but more appropriately reworked.

The tesla can move across z-levels when it is not contained, however it cannot phase through reinforced floors or walls. These new features mostly contain the tesla to the engineering sublevel for about 10 minutes, until RNG dictates that it reaches other departments on all levels, or if very lucky, escapes to the derelict and doesn't bother the station for another 30 minutes.
2018-12-22 00:29:16 +02:00
POSIXCompliant
dcb00cecdc Fixes Particle Accelerators not functioning when hacked to level 3. (#5765) 2018-12-17 11:25:59 +01:00
Mykhailo Bykhovtsev
b23f17bc64 Fixing old/new bugs/runtimes (#5763)
Fixes #3410

Ranged hostile mob stop if they are in range of fire, instead of keep going to point blank range. They also try to get to person within 6 tiles, not point blank.

Hostile mobs also check if their target is in the view or not.

Fixes #4468

Fixes #2867

Fixes #2721

Fixes #2678

Character input limit in Security/Medecal records was increased from 1024 to 3027 for all fields, to keep it consistent with character setup records. Fixes #5766

Fixes Energy net turret sprites. Updates spawned ionrifle turret to allow for two modes, adds lethal turret sprite for ionrifle.
2018-12-16 15:23:42 +02:00
Mykhailo Bykhovtsev
21cbff31d4 SMES and APC update (#5578)
SMES now show how much of input they receive

SMES and APC estimates how much time it will take to deplete it.

Runtime map now uses its SMES, and it is wired to TEG's

Added Stack and Queue data structures for use
2018-12-05 15:43:10 +02:00
BurgerLUA
17547bbe52 Vault Overhaul (#5612)
Vault was poorly designed and an antag deathtrap. 
This PR changes it and the contents inside so it's desirable for some antags.
2018-11-16 22:36:39 +01:00
BurgerLUA
4319c45133 Thirst Mechanics (#5255)
Overview
Adds thirst mechanics. Thirst mechanics work exactly like hunger mechanics where if you don't drink enough liquid, you become thirsty and move slower. Several other mechanics involving drinks were also changed.

For organic races, you gain hydration by consuming beverages and water. Water is the most effective way of hydrating yourself. IPCs are not affected by hydration and do not have to worry about it. If you overeat or overdrink, your nutrition decreases faster until you are of normal hunger and thirst levels.

Penalties for not eating or drinking are now more severe. If you refuse to drink or eat all shift, you will be up to 33% slower and take twice as much pain damage. The amount scales based on your hunger or thirst levels. If you are considered hungry or thirsty, it starts scaling until you're starving or seriously dehydrated. If you overeat and overdrink as well, you get a ~5% reduced movement and pain tolerance with each mechanic.

The icons for hunger have been updated to be more specific, and they match the new thirst indicators as well. https://i.imgur.com/QQbWxYI.png

You can now also inject beverages into your blood for x4 effectiveness. Before, IV dripping yourself with vodka did nothing but give you a small amount of toxins, but now it should be a hell of a party.

Dionaea can now be affected by beverages with respect to nutrition gains and temperature changes. Dionaea cannot be affected by some effects, such as stuttering and intoxication, still.

Healing effects for certain beverages (tea, milk) were removed. This a HRP server, milk shouldn't heal you.
2018-10-07 00:14:47 +03:00
Panter
9725d1d756 Corrected all occurrences of the typo 'recieve'. (#5236)
I replaced all occurrences of the typo 'recieve' with the correct spelling 'receive'.
2018-09-06 19:41:29 +02:00
BurgerLUA
c2708ba0a4 Xenobiology Map Overhaul (#5032)
Revamps Xenobiology so it's worthy of a research station.
2018-08-05 09:42:39 +02:00
BurgerLUA
8519dcc393 .loc = to forceMove() (#4937)
As requested, this PR is changed to only include all .loc = to forceMove() changes.
2018-08-04 01:48:58 +03:00
Werner
5c108a1ed7 Fixes #3769 (#4849)
Caused by a div by 0 runtime.
2018-06-03 12:55:33 +03:00
Alberyk
7e131bc383 Fixes vaurca lack of natural insulation (#4654)
-fixes #4597
2018-04-23 22:49:58 +02:00
Ron
d1c1d84bde Refactors gravity checking (#4591)
Removes a lot of duplicated or redundant code from areas when checking gravity.
2018-04-12 20:31:05 +03:00
BurgerLUA
c005549772 Mining Map Fixes (#4583)
Fixes the map as intended. This fix makes it actually look good.
2018-04-12 20:28:02 +03:00
LordFowl
1086e1fdb2 [Ready for Review] Unapologetic Psych Buffs - Now with 80% less Mike Pence! (#4377)
This PR removes brain surgery's ability to instantly cure all traumas. Now traumas have been roughly divided into four categories of treatment:
1: Chakra therapy cures traumas that directly affect physical behavior, such as tourettes or paralysis. It is accomplished via the crystal therapy pod available to the psychiatrist.

2: Hypnotic therapy cures traumas that directly affect mental behavior, such as phobias or confusions. It is accomplished via the mesmetron pocketwatch available to the psychiatrist.

3: Isolation therapy cures traumas that cause hallucinations. It is accomplished via the metronome and facilitated by the isolation room available to the psychiatrist.

4: Surgical therapy cures traumas that do not fit into the above categories. It is accomplished via brain surgery.

Using the crystal therapy pod's neural scan function will provide the psychiatrist the brain damage the patient suffers from in numerical form. It falls upon the psychiatrist to determine how much of this brain damage is being caused by mental traumas the crystal therapy pod is equipped to deal with. Excessive cycles will cause increasing amounts of radiation damage.

The mesmetron pocketwatch requires the patient to believe in hypnosis. It then puts the patient into a slumber, where the psychiatrist can hypnotically suggest new behavior, provided the patient continues to believe in hypnosis. Each suggestion cures a single hypnotic trauma.
The isolation room is equipped with a metronome. When active, the metronome will have a chance every ticktock of the metronome to cure an isolation trauma, provided the patient is totally alone.

The psychiatry office has been expanded into a complete mental health ward. The only thing it is lacking is beds, as I believe recovering mental health patients still belong in the recovery ward.

The chaplain can also cure isolation and chakra traumas by dispelling the demons within with his null rod. Staring at the supermatter unprotected has been known to hypnotize. Electricity applied by any source directly to the head is also known to sometimes cure electroshock trauma.
2018-04-08 16:29:33 +03:00
LordFowl
64e386785c Abling Disability (#4485)
This PR implements a system for manipulating a client's color safely and also ports a prioritization system for sorting client color from /tg/. Currently this PR also implements client coloration in the form of color blindness, namely:
Monochromacy
Deuteranopia
Tritanopia
Protanopia

DTP are mild brain traumas, whereas monocrhomacy is a severe brain trauma.
Furthermore, this PR removes the Needs Glasses prompt in character creation, and replaces it with a disability selector, allowing people to more closely refine their special little snowflakes.
Current disabilities available:
Nervousness
Nearsightedness
Deuteranopia
Tritanopia
Protanopia
Deafness
Muteness
2018-04-05 21:57:50 +03:00
LordFowl
e2e798382c [Ready for Review] Nerfs IPCs Part 1/1,034 (#4229)
Refactors electrocute_act slightly. Electricity will now only start in your hands if ground_zero is explicitly set to l_hand or r_hand. All instances where electrocute_act is called because you touched something (IE opening a crate, touching the powergrid) have been set so that ground_zero is your currently active hand.

Otherwise, ground_zero will be randomly selected from available organs.

This is important because it is the siemens_coefficient of ground_zero only that affects electrical conductivity. EG if you get tesla_zapped in the chest you will not be saved by wearing insulated gloves. Once the electricity is in your body it does not matter.

Sufficiently powerful electricity (shock_damage >= 6) will induce an EMP in the relevant contact zones. This EMP will affect all items in the relevant organ only. Shock damage will still become reduced as the arc propagates through your body, and the EMP's produced will be updated accordingly.

The IPC power cell organ will now produce effects when EMP'd based on the current damage value of the organ pre-decrement, ranging from stuttering and blurriness to unconsciousness. Other special EMP effects for other IPC organs are pending, but I am thinking of holding it off for Part 2/1,034

Baton class weapons have been modified. Their raw force damage has been reduced, but they will now deal shock damage to a roughly equivalent value.

Harmbatons will deal 5 brute and 10 shock, and their electrocute_act will have a defined def zone (e.g it is a localized shock and there will be no arcs)

Cattleprods will deal 3 brute and 6 shock on both harm and help intents, and their electrocute_act is non-localized and will cause arcing.

Stunrods will deal 7 brute and 14 shock on both harm and help intents, and their electrocute_act is non-localized and will cause arcing.

(For clarification, cattleprods and stunrods currently still deal no brute on help intent, but will cause shock damage)

Fixes an issue with electrocute_act where if def_zone is called would not actually do anything.
2018-03-10 17:18:27 +02:00
Juani2400
395a7b3d60 [Map] Medical revamp and major changes. (#4324)
Complete remap of the Medical main level. Expect bugs and missing
equipment.

Added a new isolation wing to Medical.

Changed the nuke's position, to a much safer, new location.

Added an alternative exit to the Bunker.

Added a new store that only the HoP can grant access into.
-Detective and CSI's offices have been moved to a level above Security.

New Security training area, for cadets and other uses you may find to
it.

New transfer/escape shuttle. Not the final version, probably. Test of
acceptance from the community in progress. Not entirely convince by the
design.

New Research-coloured folders (Sprite recolouring by Fire and Glory).

Slightly remapped Kitchen. Tighter on space, big on table surface
area.

New Research Office by Xenobiology, after a lot of requests.

Vault entrance has been redesigned to fit a bit more with its purpose.

A lot of bugfixes, missing stuff, and minor suggestions.

Fixes #4311.

Fixes #4225.
2018-03-10 17:14:48 +02:00
kevinz000
c000070a5b Pixel Projectiles (#4105)
Projectile hitscan effects moved to /effects/projectiles folder.
Most of projectile firing code and some of impact code refactored, and projectile hitscan effects refactored with ported TGcode (which is mostly TGcode I wrote anyways 😎)
Projectiles can now be fired at any angle, instead of just at the center of turfs!
Projectiles are now [in theory] 100% accurate down to 0.001 of a pixel.
2018-03-10 17:13:24 +02:00
Lohikar
a86398d0d2 Code Cleanup: (Bump(), Bumped()) -> (Collide(), CollidedWith()) (#4349)
This PR rips out the old Bump() and Bumped() procs and replaces them with Collide() and CollidedWith() respectively. Behavior should be the same, but Bump() should no longer be double-called, and no longer relies on spawns.

Other changes:

LAssailant is now a weakref.
Some direct loc setting are now forceMove().
2018-03-08 09:39:53 +02:00
Erki
20fc059ca7 Bugfix/runtime cleanup (#4249)
Some RTs.

Fixes #4091
Fixes #4092
Fixes #4077
2018-02-08 11:59:11 +02:00
LordFowl
ad00601b81 Ports /tg/ Brain Trauma (#3979) 2018-01-27 12:13:19 -06:00
Lohikar
0abc1d2a65 Repath a bunch of things to /mob/abstract childtypes (#4111)
* Repaths eyes, observers, dview, and new_players to /mob/abstract subtypes.

* Adds /mob/abstract, a base type for 'abstract' mobs that aren't meant to be directly affected by the game world.
2018-01-24 11:27:14 +01:00
Lohikar
6f85f08718 Convert a bunch of legacy overlay calls to SSoverlays (#4015)
Bunch of overlay conversions I found in an old stash I had forgotten about.
2018-01-07 00:34:47 +02:00
Lohikar
57e898d8e8 Light Sounds & Emergency Lighting (#3966)
changes:

Light tubes now make a noise when turning on.
If a light loses power, it will switch to "emergency mode": the light will glow a dim red, drawing power from a small integrated cell that should last approximately 10 minutes. If the light has power, it will charge its cell.
Light flickers now play the flicker sound for each blink instead of once.
Split lighting.dm into three files: fixtures.dm, construction.dm, and bulbs.dm.
Light fixtures now use stat to represent on-state (as they can be off for multiple reasons): the on var has thus been removed.
Lightswitches now glow in the dark and make sounds when toggled.
Some code/idea for emergency lighting from TG, light sound from Interbay, lightswitch sounds from Bay.

Depends on #3948.
2017-12-17 11:30:35 +02:00
Lohikar
81685214df Cache light fixture overlays (#3948)
changes:

Light fixture overlays are now cached.
BlendRGB is now cached (used by light fixture overlays)
Nightmode now only tints the bulb instead of both the bulb and the fixture itself.
2017-12-10 00:17:09 +02:00