mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-28 02:52:01 +00:00
-Redid icons to be more optimized at compile by setting icon = 'icons/folder/icon.dmi' instead of just icon = 'icon.dmi', meaning that Dream Maker doesn't have to search through every single file for every single .dmi. This shouldn't lead to any errors because of how I went about it, plus the fact that Dream Maker would have freaked out if I screwed something up. Also moved around 2 icons that weren't sorted well. r4146 compile time: 1 minute, 40 seconds r4147 compile time: 45 seconds [VGTG] git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4147 316c924e-a436-60f5-8080-3fe189b3f50e
41 lines
967 B
Plaintext
41 lines
967 B
Plaintext
/obj/item/weapon/am_containment
|
|
name = "antimatter containment jar"
|
|
desc = "Holds antimatter."
|
|
icon = 'icons/obj/machines/antimatter.dmi'
|
|
icon_state = "jar"
|
|
density = 0
|
|
anchored = 0
|
|
force = 8
|
|
throwforce = 10
|
|
throw_speed = 1
|
|
throw_range = 2
|
|
|
|
var/fuel = 10000
|
|
var/fuel_max = 10000//Lets try this for now
|
|
var/stability = 100//TODO: add all the stability things to this so its not very safe if you keep hitting in on things
|
|
|
|
|
|
ex_act(severity)
|
|
switch(severity)
|
|
if(1.0)
|
|
explosion(get_turf(src), 1, 2, 3, 5)//Should likely be larger but this works fine for now I guess
|
|
if(src)
|
|
del(src)
|
|
return
|
|
if(2.0)
|
|
if(prob((fuel/10)-stability))
|
|
explosion(get_turf(src), 1, 2, 3, 5)
|
|
if(src)
|
|
del(src)
|
|
return
|
|
stability -= 40
|
|
if(3.0)
|
|
stability -= 20
|
|
//check_stability()
|
|
return
|
|
|
|
proc/usefuel(var/wanted)
|
|
if(fuel < wanted)
|
|
wanted = fuel
|
|
fuel -= wanted
|
|
return wanted |