mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-23 16:42:49 +00:00
- Replaced them with a whole range of inventory slot flags. These now govern whether an item can or can't be placed in a certain inventory slot. See setup.dm for information on the flags. These flags only affect humans tho, as humans are the only beings with an inventory to talk of. - Standardized some gun code and some other pieces of code as I came accross them. I hate indented variable definitions! This commit should not bring any change whatsoever to the game from a player's perspective. Revision: r3659 Author: baloh.matevz
106 lines
2.7 KiB
Plaintext
106 lines
2.7 KiB
Plaintext
/obj/item/weapon/gun/energy/ionrifle
|
|
name = "ion rifle"
|
|
desc = "A man portable anti-armor weapon designed to disable mechanical threats"
|
|
icon_state = "ionrifle"
|
|
fire_sound = 'Laser.ogg'
|
|
origin_tech = "combat=2;magnets=4"
|
|
w_class = 4.0
|
|
flags = FPRINT | TABLEPASS | CONDUCT | USEDELAY
|
|
slot_flags = SLOT_BACK
|
|
charge_cost = 100
|
|
projectile_type = "/obj/item/projectile/ion"
|
|
|
|
|
|
|
|
/obj/item/weapon/gun/energy/decloner
|
|
name = "biological demolecularisor"
|
|
desc = "A gun that discharges high amounts of controlled radiation to slowly break a target into component elements."
|
|
icon_state = "decloner"
|
|
fire_sound = 'pulse3.ogg'
|
|
origin_tech = "combat=5;materials=4;powerstorage=3"
|
|
charge_cost = 100
|
|
projectile_type = "/obj/item/projectile/energy/declone"
|
|
|
|
obj/item/weapon/gun/energy/staff
|
|
name = "staff of change"
|
|
desc = "an artefact that spits bolts of coruscating energy which cause the target's very form to reshape itself"
|
|
icon = 'gun.dmi'
|
|
icon_state = "staffofchange"
|
|
item_state = "staffofchange"
|
|
fire_sound = 'emitter.ogg'
|
|
flags = FPRINT | TABLEPASS | CONDUCT | USEDELAY
|
|
slot_flags = SLOT_BACK
|
|
w_class = 4.0
|
|
charge_cost = 200
|
|
projectile_type = "/obj/item/projectile/change"
|
|
origin_tech = null
|
|
var/charge_tick = 0
|
|
|
|
|
|
New()
|
|
..()
|
|
processing_objects.Add(src)
|
|
|
|
|
|
Del()
|
|
processing_objects.Remove(src)
|
|
..()
|
|
|
|
|
|
process()
|
|
charge_tick++
|
|
if(charge_tick < 4) return 0
|
|
charge_tick = 0
|
|
if(!power_supply) return 0
|
|
power_supply.give(200)
|
|
update_icon()
|
|
return 1
|
|
|
|
/obj/item/weapon/gun/energy/floragun
|
|
name = "floral somatoray"
|
|
desc = "A tool that discharges controlled radiation which induces mutation in plant cells."
|
|
icon_state = "floramut100"
|
|
item_state = "gun"
|
|
fire_sound = 'stealthoff.ogg'
|
|
charge_cost = 100
|
|
projectile_type = "/obj/item/projectile/energy/floramut"
|
|
origin_tech = "materials=2;biotech=3;powerstorage=3"
|
|
modifystate = "floramut"
|
|
var/charge_tick = 0
|
|
var/mode = 0 //0 = mutate, 1 = yield boost
|
|
|
|
New()
|
|
..()
|
|
processing_objects.Add(src)
|
|
|
|
|
|
Del()
|
|
processing_objects.Remove(src)
|
|
..()
|
|
|
|
|
|
process()
|
|
charge_tick++
|
|
if(charge_tick < 4) return 0
|
|
charge_tick = 0
|
|
if(!power_supply) return 0
|
|
power_supply.give(100)
|
|
update_icon()
|
|
return 1
|
|
|
|
attack_self(mob/living/user as mob)
|
|
switch(mode)
|
|
if(0)
|
|
mode = 1
|
|
charge_cost = 100
|
|
user << "\red The [src.name] is now set to increase yield."
|
|
projectile_type = "/obj/item/projectile/energy/florayield"
|
|
modifystate = "florayield"
|
|
if(1)
|
|
mode = 0
|
|
charge_cost = 100
|
|
user << "\red The [src.name] is now set to induce mutations."
|
|
projectile_type = "/obj/item/projectile/energy/floramut"
|
|
modifystate = "floramut"
|
|
update_icon()
|
|
return |