Commit Graph

16505 Commits

Author SHA1 Message Date
Zulker Nayeen Nahiyan
6e550d7308 Cleanup helper files maths.dm, time.dm, type2type.dm, add macros for bit-manipulation
`maths.dm`:
	Rewrite `Gcd(x)` to remove recursive behaviour.
	Remove `RaiseToPower(x)` and its usage from `event_manager.dm`.
	Rename `Lerp()` to `Interpolate()`.
	Add `Square(x)`, which squares a number.
	Rearrange most of the functions in the file. (trigonometric functions together, etc.)

`type2type.dm`:
	Rewrite `num2hex()` and optimise `hex2num()` for superior clarity and a 100% speed improvement.
	Correct indenting, spaces, make switches more concise.

`time.dm`:
	Remove old, slanderous commented-out function `/proc/time_stamp()`

`lists.dm`:
	Add the macros, `BITTEST(bitfield,index)`, `BITSET(...)`, `BITRESET(...)`
	  and `BITFLIP(...)` for bit-manipulation and use them where 20+ files
	  do it manually, for arguments of reader clarity and standardness.
2015-01-09 21:55:11 +06:00
Zulker Nayeen Nahiyan
fbffce744c Fixes typos and indenting present in the destilery module, and renames it to distillery
Updates the #include's for the renamed files in `baystation12.dme`
2015-01-09 20:49:36 +06:00
Zuhayr
0d56551319 Merge pull request #7729 from Baystation12/dev-freeze
Dev freeze
2015-01-07 18:15:03 +10:30
Tramziller
29a0ae2ad6 Response to #7686 2015-01-06 21:48:56 +01:00
Zuhayr
07298fa31a Merge pull request #7697 from Tramziller/dev-freeze
Shot airlock fix
2015-01-07 06:02:06 +10:30
Zuhayr
ab711b5080 Merge pull request #7695 from Amunak/patch-1
Makes LOOC dark turquoise, fixes #7681
2015-01-07 04:33:56 +10:30
ccomp5950
27765f799f Merge branch 'dev-freeze' of github.com:Baystation12/Baystation12 into dev
Conflict resolution.

Conflicts:
	code/ATMOSPHERICS/components/unary/vent_pump.dm
2015-01-06 12:36:28 -05:00
Zuhayr
cb88860f6b Merge resolution. 2015-01-07 03:43:12 +10:30
Mloc
7570cf7ea7 Merge pull request #7708 from comma/master
Fixes #7707
2015-01-06 15:28:32 +00:00
Chinsky
38c69bab64 Fixes #7707 2015-01-06 13:14:20 +03:00
Zuhayr
66759eff3c Adds Borer bantype, halves borer resist time, comments out Devour Brain verb, expands borer welcome text. 2015-01-06 11:11:34 +10:30
Tramziller
06e6277dc6 Fixed bug of peridaxon healing robotic organs 2015-01-05 22:17:40 +01:00
Tramziller
be48eccad2 Airlock that are BROKEN (shot or like) can have their electronics removed (for repairs) even when their bolts are dropped 2015-01-05 20:39:00 +01:00
Amunak
c34a8ee859 Admin name colour msay colour fix
Admin name colour in msay now matches their default OOC colour. Hopefully fixes some concerns presented in #7657.
2015-01-05 18:40:52 +01:00
Amunak
e5512518bb Makes LOOC dark turquoise, fixes #7681 2015-01-05 13:48:22 +01:00
mkalash
559e224446 Allows the autolathe maintenance panel to be accessed even if disabled. Fixes #7677. Adds feedback when a someone tries to interact with a disabled autolathe with the panel closed. 2015-01-04 22:43:20 -05:00
mkalash
f9e352b768 Gets rid of the white wire in Omega's new wire system. The background of the UI is white, so you can't read the wire's name. I replace it with dark red. 2015-01-04 22:26:41 -05:00
mkalash
536e4bd237 Adds missing paranthesis in logic for airlock's hasPower(). Fixes #7653 2015-01-04 22:09:00 -05:00
mkalash
6e8d2c55b0 Adds stack amount check when loading materials into the exosuit fabricator. Fixes #7665 2015-01-04 21:34:50 -05:00
PsiOmegaDelta
d1d88fa365 Merge pull request #7687 from Tramziller/Girder_fix
Fixes bug where girders can be destroyed with stun beams.
2015-01-04 23:50:36 +01:00
Mloc
ec9b46399b Merge pull request #7673 from SkyMarshal/patch-3
Fixes runtime with deleted cameras.
2015-01-04 21:06:42 +00:00
SkyMarshal
863351a474 Changes the runtime protection to be more general-case. 2015-01-04 13:32:11 -07:00
Tramziller
fb86581159 Fixes bug where girders can be destroyed with stun beams. 2015-01-04 21:12:32 +01:00
Zuhayr
9fa73784a5 Fixes #7660 2015-01-05 01:05:13 +10:30
Zuhayr
f7cd72b7f9 Fixes #7670 2015-01-04 19:06:45 +10:30
Zuhayr
81603032d3 Fixes #7671 2015-01-04 19:05:55 +10:30
SkyMarshal
65163dfcc5 Fixes runtime with deleted cameras. 2015-01-04 01:22:37 -07:00
PsiOmegaDelta
fedc8eab16 Merge pull request #7651 from Kelenius/ofFloorbotsAndFootprints
Of floorbots and footprints
2015-01-04 08:57:02 +01:00
mkalash
6d9c2671b9 Copies extinguisher code to exosuit extinguisher, fixes #7603 2015-01-04 00:43:19 -05:00
Atlantiscze
5f921676d8 ZAS Emergency fix
- Fixes massive losses of heat during ZAS operation.
2015-01-04 02:16:07 +01:00
Ccomp5950
c78ad9666a Merge pull request #7649 from Kelenius/ofDionaeAndDrugs
Fixes a tiny typo and a comment
2015-01-03 17:43:32 -05:00
Ccomp5950
ba6562026a Merge pull request #7648 from Kelenius/ofMonkeysAndVents
Restores monkey's ability to ventcrawl
2015-01-03 17:41:44 -05:00
Kelenius
080dfc7850 Removes duplicated code from blood decals 2015-01-04 00:59:33 +03:00
Zuhayr
af432c0c42 Merge pull request #7650 from Mloc/bs12-sleepyedges2
kludge for freezing zas, pending share_ratio fixes.
2015-01-04 07:51:45 +10:30
Kelenius
1ac8beb18d Makes floorbots clean footprints, makes footprints dry out
Fixes #5944
2015-01-04 00:20:00 +03:00
Mloc-Argent
c55b7ec7c8 kludge for freezing zas, pending share_ratio fixes.
Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2015-01-03 21:16:12 +00:00
Kelenius
c1d07cd77b Fixes a tiny typo and a comment
So basically toxins are not processed like all other reagents - instead
that is handled to the liver. Since dionae/dionas have no liver, toxins
would never leave their system. There is a check for aliens to
forcefully call ..(), but due to a typo it was only called if the drug
had any toxpwr. Since mindbreaker (and several others) has toxpwr = 0,
such drugs would never leave a poor diona's... khm, system.

The question to how diona even get affected by those in the first place
stays open.

Fixes #6994.
2015-01-03 23:19:14 +03:00
Kelenius
4c63e6a3ea Restores monkey's ability to ventcrawl
Fixes #7474.
2015-01-03 22:41:57 +03:00
Zuhayr
982998d08d Fixes #7636 2015-01-03 06:53:29 +10:30
Zuhayr
ce1a90c584 Fixes #7635 2015-01-03 06:43:15 +10:30
Zuhayr
2c82daa594 Fixes #7599 2015-01-03 06:30:43 +10:30
Zuhayr
014729a001 Addendum to previous commits. 2015-01-03 05:52:29 +10:30
Zuhayr
a34a1f66cf Fixes #7632 2015-01-03 05:23:44 +10:30
Chinsky
5e0676df49 Merge pull request #7631 from Zuhayr/dev-freeze
More fixes.
2015-01-02 20:52:27 +03:00
Chinsky
f30981ab71 Merge pull request #7610 from Loganbacca/trainfixes
Cargo train fixes
2015-01-02 20:51:19 +03:00
Loganbacca
f3b893942f More cargo train fixes
- Fixes #5906
- Fixes #5939
- Fixes #6282
- Fixes #6634 (properly this time)
- Fixed a bug with updating train stats (causing trains to be super slow if hitched while running)
- Updated train verbs (start/stop/remove key) to only show up if you are in the same turf
- Moved all train specific verbs to their own verb category: "Vehicle"
2015-01-03 01:27:10 +13:00
Zuhayr
e63798ea4e Fixes oversight with decompiler. 2015-01-02 20:42:59 +10:30
Zuhayr
15801e9f50 Fixes #7596 2015-01-02 19:55:50 +10:30
Zuhayr
a255fe48ca Fixes #7619 2015-01-02 19:28:30 +10:30
Zuhayr
261f3f935c Fixes #7627 2015-01-02 19:19:01 +10:30