forked from ReScrap/ScrapHacks
Added dbg.nuke() which destroy everything in the Level
This commit is contained in:
parent
50541eadb1
commit
41b37b2037
1 changed files with 13 additions and 0 deletions
13
lib/dbg.py
13
lib/dbg.py
|
@ -121,6 +121,19 @@ def enable_all_conv():
|
||||||
print(len(CharConversor.ConversionChars))
|
print(len(CharConversor.ConversionChars))
|
||||||
print "Done!"
|
print "Done!"
|
||||||
|
|
||||||
|
def nuke():
|
||||||
|
E=Scrap.GetFirst()
|
||||||
|
me = Scrap.UsrEntity(0)
|
||||||
|
while E:
|
||||||
|
if E.Name==me.Name:
|
||||||
|
E = Scrap.GetEntity(E.NextInSlot)
|
||||||
|
try:
|
||||||
|
E.Life=0
|
||||||
|
E.Invulnerable=0
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
E = Scrap.GetEntity(E.NextInSlot)
|
||||||
|
|
||||||
def become(name):
|
def become(name):
|
||||||
enable_all_conv()
|
enable_all_conv()
|
||||||
import CharConversor
|
import CharConversor
|
||||||
|
|
Loading…
Reference in a new issue