Adds modular changeling. Modular changeling means changelings now purchase the powers they want. Adds a few new powers as well as a framework for easily adding new ones.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3308 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-03-16 19:10:42 +00:00
parent 2c069f8a97
commit 5c60282cee
11 changed files with 755 additions and 10 deletions
@@ -211,6 +211,9 @@
if (!src.client)
msg += "[t_He] [t_has] a vacant, braindead stare...\n"
if (src.digitalcamo)
msg += "[t_He] looks replusingly uncanny!\n"
msg += "*---------*</span>"
usr << msg
+1 -1
View File
@@ -1096,7 +1096,7 @@
handle_changeling()
if (mind)
if (mind.special_role == "Changeling" && changeling)
changeling.chem_charges = between(0, (max((0.9 - (changeling.chem_charges / 50)), 0.1) + changeling.chem_charges), 50)
changeling.chem_charges = between(0, ((max((0.9 - (changeling.chem_charges / 50)), 0.1)*changeling.chem_recharge_multiplier) + changeling.chem_charges), changeling.chem_storage)
if ((changeling.geneticdamage > 0))
changeling.geneticdamage = changeling.geneticdamage-1
@@ -31,6 +31,9 @@
msg += "It isn't responding to anything around it; it seems to be asleep.\n"
msg += "</span>"
if (src.digitalcamo)
msg += "It looks replusingly uncanny!\n"
msg += "*---------*</span>"
usr << msg
@@ -629,6 +629,6 @@
handle_changeling()
if (mind)
if (mind.special_role == "Changeling" && changeling)
changeling.chem_charges = between(0, (max((0.9 - (changeling.chem_charges / 50)), 0.1) + changeling.chem_charges), 50)
changeling.chem_charges = between(0, ((max((0.9 - (changeling.chem_charges / 50)), 0.1)*changeling.chem_recharge_multiplier) + changeling.chem_charges), changeling.chem_storage)
if ((changeling.geneticdamage > 0))
changeling.geneticdamage = changeling.geneticdamage-1
+6 -1
View File
@@ -213,6 +213,9 @@
//Wizard mode, but can be used in other modes thanks to the brand new "Give Spell" badmin button
var/obj/effect/proc_holder/spell/list/spell_list = list()
//Changlings, but can be used in other modes
var/obj/effect/proc_holder/changpower/list/power_list = list()
//List of active diseases
var/viruses = list() // replaces var/datum/disease/virus
@@ -263,4 +266,6 @@ the mob is also allowed to move without any sort of restriction. For instance, i
var/canweaken = 1 // determines if this mob can be weakened/knocked down by things
var/nopush = 0 //Can they be shoved?
var/area/lastarea = null
var/area/lastarea = null
var/digitalcamo = 0 // Can they be tracked by the AI?