-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
2,002 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
extends Control | ||
# class_name Main | ||
|
||
# Declare member variables here. Examples: | ||
# var a = 2 | ||
# var b = "text" | ||
onready var game = $Game | ||
onready var ui = $UI | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
#func _process(delta): | ||
# pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extends Thing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends Resource | ||
class_name Fighter | ||
|
||
var race : Race | ||
|
||
func _init(r): | ||
race = r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
extends Buff | ||
extends Thing | ||
class_name Item | ||
|
||
signal onSetNum() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,19 @@ | ||
extends Actor | ||
class_name Monster | ||
# view is MonsterV | ||
|
||
# race is Race | ||
export(Resource) var race | ||
# 角色名称 | ||
export(String) var alias | ||
# 玩家名称 | ||
export(String) var character_name | ||
# 设置基本属性,肉身HP,灵力MP,神识AP | ||
export(int) var Hp = 0 | ||
export(int) var Mp = 0 | ||
export(int) var Ap = 0 | ||
export(int) var Hp_max = 0 | ||
export(int) var Mp_max = 0 | ||
export(int) var Ap_max = 0 | ||
export(int) var Hp_temp = 0 | ||
export(int) var Mp_temp = 0 | ||
export(int) var Ap_temp = 0 | ||
# 设置等级 | ||
export(int) var level = 0 | ||
# 设置经验值 | ||
export(int) var experience = 0 | ||
|
||
# 获得最大肉体值 | ||
func get_max_hp(): | ||
var maxhp = 0 | ||
if race and race is Race: | ||
maxhp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) | ||
else: | ||
print("race is ",race) | ||
return maxhp | ||
return maxhp | ||
# 攻击方式 | ||
export(Dictionary) var attacks = {} | ||
# 目前的攻击方式 | ||
export(String) var current_attack = "" | ||
# 防御方式 | ||
export(Dictionary) var defenses = {} | ||
# 目前的防御方式 | ||
export(String) var current_defense = "" | ||
|
||
# 获得最大灵力值 | ||
func get_max_mp(): | ||
var maxmp = 0 | ||
if race and race is Race: | ||
maxmp = int(rand_range(race.Hp_dice,level * race.Hp_dice)) | ||
else: | ||
print("race is ",race) | ||
return maxmp | ||
return maxmp | ||
func _init(r): | ||
race = r | ||
|
||
# 获得最大神识值 | ||
func get_max_ap(): | ||
var maxap = 0 | ||
if race and race is Race: | ||
maxap = int(rand_range(race.Hp_dice,level * race.Hp_dice)) | ||
else: | ||
print("race is ",race) | ||
return maxap | ||
return maxap | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ var quantity = 1 | |
var level = 1 | ||
|
||
func use(): | ||
pass | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.