//Title: Turf Transformation
//Credit to: Tom of Dantom
//Contributed by: Jtgibson
/*
This little bit of code allows you to change a turf into another kind of turf.
Why is it useful? It saves you the work of typing out all of this stuff over
and over again. -- Jtgibson
*/
turf/proc/Change(new_type)
// replace turf with one of type newtype
var/turf/T = src
src = null
T = new(new_type,T) // replace T
///*
//Testing code/sample implementation:
turf/verb/change_turf(new_type in typesof(/turf))
set src in oview(0)
src.Change(new_type)
//*/
ID:195096
![]() Nov 21 2006, 9:26 am
|
|