Import current DEMON v0.19 source, assets and development handoff
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
extends RefCounted
|
||||
var failures=0
|
||||
func check(ok,label):
|
||||
if not ok:failures+=1;push_error("SINGLE PUNISHMENT QA: "+label)
|
||||
func run(g):
|
||||
await g.get_tree().create_timer(.3).timeout
|
||||
g.start_game();g.set_process(false)
|
||||
for kind in range(6):
|
||||
for gender_kind in [0,5]:
|
||||
g.reset_shift();g.game_started=true;g.paused=false
|
||||
var w=g.workshop;w.unlock=5;g.development.xp=2170
|
||||
var d=w.add_station(kind,Vector3(3,0,0));g.uid=gender_kind;w.spawn();var s=g.souls.back()
|
||||
s.entering=false;s.entry_time=1;g.set_soul_reveal(s.visual,1)
|
||||
check(s.required==[kind] and s.task_icon_nodes.size()==1,"one assigned icon at max level")
|
||||
var reward=w.Economy.reward([kind],2170);var gold=g.coins;var root=s.node
|
||||
w.attach(s,0);w.step_station(d,.5,false)
|
||||
for i in range(220):
|
||||
if d.soul<0:break
|
||||
w.step_station(d,.1,true)
|
||||
check(d.soul==-1 and not d.ready and g.index_of(s.id)<0,"completed device releases soul %d/%d"%[kind,gender_kind])
|
||||
check(g.done==1 and g.coins==gold+reward.gold and g.essence==1,"single reward after one device")
|
||||
check(g.life.burns.size()==1,"completion starts burning")
|
||||
w.finish(d);check(g.done==1 and g.coins==gold+reward.gold,"no duplicate reward")
|
||||
g.life.update(1.7);check(not root.visible,"body and cloth gone at end of dissolve")
|
||||
g.life.update(.31);await g.get_tree().process_frame
|
||||
check(not is_instance_valid(root) and g.life.burns.is_empty(),"body cloth and fire removed")
|
||||
print("SINGLE PUNISHMENT QA ","PASSED" if failures==0 else "FAILED",": six apparatuses, male/female souls, max level, one icon, burning, rewards and cleanup")
|
||||
g.get_tree().quit(1 if failures else 0)
|
||||
Reference in New Issue
Block a user