This commit is contained in:
Page Asgardius 2024-09-26 13:06:33 -07:00
parent 1eb98a23cd
commit f5d435734c
10 changed files with 32 additions and 6 deletions

View file

@ -36,6 +36,7 @@ func _on_body_entered(body):
if body.weakness == speciality:
print("weakness")
#Input.start_joy_vibration(0,0,1,3)
Global.result[3] += attack * crit
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > (attack * crit):
Global.dstats[Global.dparty[Global.dcpchar][0]][0] -= attack * crit
@ -47,6 +48,7 @@ func _on_body_entered(body):
else:
Global.cstats[Global.party[Global.cpchar][0]][0] = 0
else:
Global.result[3] += attack
#Input.start_joy_vibration(0,1,0,2)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > attack:

View file

@ -36,7 +36,7 @@ func _on_body_entered(body):
if !body.is_in_group(btype):
if body.is_in_group("players") && Global.dificulty != 1:
if body.weakness == speciality:
print("weakness")
Global.result[3] += attack * crit
#Input.start_joy_vibration(0,0,1,3)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > (attack * crit):
@ -49,6 +49,7 @@ func _on_body_entered(body):
else:
Global.cstats[Global.party[Global.cpchar][0]][0] = 0
else:
Global.result[3] += attack
#Input.start_joy_vibration(0,1,0,2)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > attack:

View file

@ -31,6 +31,7 @@ func _on_body_entered(body):
if body.is_in_group("players") && Global.dificulty != 1:
if body.weakness == 3:
print("weakness")
Global.result[3] += attack * crit
#Input.start_joy_vibration(0,0,1,3)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > (attack * crit):
@ -43,6 +44,7 @@ func _on_body_entered(body):
else:
Global.cstats[Global.party[Global.cpchar][0]][0] = 0
else:
Global.result[3] += attack
#Input.start_joy_vibration(0,1,0,2)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > attack:

View file

@ -30,6 +30,7 @@ func _on_body_entered(body):
if !body.is_in_group(btype) && Global.live == 1:
if body.is_in_group("players") && Global.dificulty != 1:
if body.weakness == 0:
Global.result[3] += attack * crit
print("weakness")
#Input.start_joy_vibration(0,0,1,3)
if Global.debug:
@ -43,6 +44,7 @@ func _on_body_entered(body):
else:
Global.cstats[Global.party[Global.cpchar][0]][0] = 0
else:
Global.result[3] += attack
#Input.start_joy_vibration(0,1,0,2)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > attack:

View file

@ -31,6 +31,7 @@ func _on_body_entered(body):
if body.is_in_group("players") && Global.dificulty != 1:
if body.weakness == 1:
print("weakness")
Global.result[3] += attack * crit
#Input.start_joy_vibration(0,0,1,3)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > (attack * crit):
@ -43,6 +44,7 @@ func _on_body_entered(body):
else:
Global.cstats[Global.party[Global.cpchar][0]][0] = 0
else:
Global.result[3] += attack
#Input.start_joy_vibration(0,1,0,2)
if Global.debug:
if Global.dstats[Global.dparty[Global.dcpchar][0]][0] > attack: