mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 03:21:42 +00:00
Fixed a runtime issue with demonsblood. Was causing runtimes because data was inheriting the bloods data var (which is a list).
The drink will still maintain it's reagents and data vars but when ingested and procesed the blood is ignored. Downsides, you can't get sick from ingesting blood in a drink (which..you shouldn't anywho) Possible future updates: since blood is an amnetic substance make the person have nausia for ingesting it if quantities are high
This commit is contained in:
@@ -2814,8 +2814,8 @@ datum
|
||||
if (adj_drowsy) M.drowsyness = max(0,M.drowsyness + adj_drowsy)
|
||||
if (adj_sleepy) M.sleeping = max(0,M.sleeping + adj_sleepy)
|
||||
|
||||
if(!src.data) data = 1
|
||||
src.data += boozepwr
|
||||
if(!src.data || (!isnum(src.data) && src.data.len)) data = 1 //if it doesn't exist we set it. if it's a list we're going to set it to 1 as well. This is to
|
||||
src.data += boozepwr //avoid a runtime error associated with drinking blood mixed in drinks (demon's blood).
|
||||
|
||||
var/d = data
|
||||
|
||||
@@ -3363,7 +3363,6 @@ datum
|
||||
description = "AHHHH!!!!"
|
||||
color = "#820000" // rgb: 130, 0, 0
|
||||
boozepwr = 3
|
||||
|
||||
ethanol/vodkatonic
|
||||
name = "Vodka and Tonic"
|
||||
id = "vodkatonic"
|
||||
|
||||
Reference in New Issue
Block a user