Beeg fixpack
This commit is contained in:
@@ -152,6 +152,11 @@ public class EffectService
|
||||
_game.UseItem(item);
|
||||
}
|
||||
|
||||
public void DoubleExp()
|
||||
{
|
||||
_game.DoubleExp();
|
||||
}
|
||||
|
||||
public void RaiseCurrentWeaponAttack()
|
||||
{
|
||||
if (string.IsNullOrEmpty(_player.EquipmentComponent.EquippedWeapon.Value.ItemName))
|
||||
@@ -172,6 +177,34 @@ public class EffectService
|
||||
SfxDatabase.Instance.Play(SoundEffect.IncreaseStat);
|
||||
}
|
||||
|
||||
public void LowerCurrentArmorDefense()
|
||||
{
|
||||
if (string.IsNullOrEmpty(_player.EquipmentComponent.EquippedArmor.Value.ItemName))
|
||||
return;
|
||||
|
||||
var currentArmor = (Armor)_player.EquipmentComponent.EquippedArmor.Value;
|
||||
currentArmor.DecreaseArmorDefense(1);
|
||||
SfxDatabase.Instance.Play(SoundEffect.DecreaseStat);
|
||||
}
|
||||
|
||||
public void RestoreParameters(IPlayer player)
|
||||
{
|
||||
var hpToRestore = player.HealthComponent.MaximumHP.Value;
|
||||
player.HealthComponent.SetCurrentHealth(hpToRestore);
|
||||
|
||||
var vtToRestore = player.VTComponent.MaximumVT.Value;
|
||||
player.VTComponent.SetVT(vtToRestore);
|
||||
|
||||
var attackToRestore = player.AttackComponent.MaximumAttack.Value - player.AttackComponent.CurrentAttack.Value;
|
||||
player.AttackComponent.Restore(attackToRestore);
|
||||
|
||||
var defenseToRestore = player.DefenseComponent.MaximumDefense.Value - player.DefenseComponent.CurrentDefense.Value;
|
||||
player.DefenseComponent.Restore(defenseToRestore);
|
||||
|
||||
if (player.LuckComponent.Luck.Value < player.LuckComponent.InitialLuck)
|
||||
player.LuckComponent.IncreaseLuck(player.LuckComponent.InitialLuck - player.LuckComponent.Luck.Value);
|
||||
}
|
||||
|
||||
public void RaiseLevel()
|
||||
{
|
||||
var expToNextLevel = _player.ExperiencePointsComponent.ExpToNextLevel.Value - _player.ExperiencePointsComponent.CurrentExp.Value;
|
||||
|
||||
@@ -64,6 +64,8 @@ public partial class Armor : Node3D, IArmor
|
||||
|
||||
public void IncreaseArmorDefense(int bonus) => _bonusDefense += bonus;
|
||||
|
||||
public void DecreaseArmorDefense(int lowerAmount) => _bonusDefense = Mathf.Max(_bonusDefense - lowerAmount, 0);
|
||||
|
||||
public ItemTag ItemTag => Stats.ItemTag;
|
||||
|
||||
[Save("armor_stats")]
|
||||
|
||||
@@ -28,6 +28,7 @@ collision_mask = 0
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
double_sided = false
|
||||
alpha_cut = 1
|
||||
|
||||
@@ -28,6 +28,7 @@ collision_mask = 0
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
shaded = true
|
||||
texture_filter = 0
|
||||
|
||||
@@ -29,6 +29,7 @@ collision_mask = 0
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0322805, 0)
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
shaded = true
|
||||
double_sided = false
|
||||
|
||||
@@ -32,6 +32,7 @@ shape = SubResource("BoxShape3D_03cqg")
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.999973, 0.00489444, -0.00548299, -0.00488109, 0.999985, 0.00244357, 0.00549488, -0.00241672, 0.999982, 0, 0, 0)
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
shaded = true
|
||||
texture_filter = 0
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_cjlom")
|
||||
UsableItemTag = 15
|
||||
UsableItemTag = 17
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Ablution"
|
||||
Description = "Lowers HP to 1."
|
||||
SpawnRate = 0.5
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
BonusLuck = 0.05
|
||||
BonusLuck = 5
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3gj16")
|
||||
UsableItemTag = 14
|
||||
UsableItemTag = 16
|
||||
ElementalDamageType = 0
|
||||
Name = "An Bradán Feasa"
|
||||
Description = "Doubles EXP temporarily."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_mhyhg")
|
||||
UsableItemTag = 22
|
||||
UsableItemTag = 24
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Atomization"
|
||||
Description = "Permanently Lowers Defense by 1."
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c3a2pvu1xwn26"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b4brs6e73yjlq" path="res://src/items/effect/textures/Green Talisman.png" id="1_5si68"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmsp3k1inb55m" path="res://src/items/effect/textures/Blue Talisman.png" id="1_5si68"]
|
||||
[ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_pkr04"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_pkr04")
|
||||
UsableItemTag = 19
|
||||
UsableItemTag = 21
|
||||
ElementalDamageType = 0
|
||||
Name = "Blue Talisman"
|
||||
Description = "Permanently Increases DEF by 1."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_13loo")
|
||||
UsableItemTag = 25
|
||||
UsableItemTag = 27
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Cell Degradation"
|
||||
Description = "Permanently Lowers All Parameters by 1."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_b16hc")
|
||||
UsableItemTag = 26
|
||||
UsableItemTag = 28
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Clone"
|
||||
Description = "Creates another enemy when thrown.
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_n1557")
|
||||
UsableItemTag = 12
|
||||
UsableItemTag = 13
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Cosmos"
|
||||
Description = "Raises current Level by 1."
|
||||
SpawnRate = 0.5
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
BonusLuck = 0.05
|
||||
BonusLuck = 5
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_vs32u")
|
||||
UsableItemTag = 24
|
||||
UsableItemTag = 26
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Dullness"
|
||||
Description = "Permanently Lowers Attack by 1."
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3l06v")
|
||||
UsableItemTag = 13
|
||||
UsableItemTag = 15
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Entropic Seal"
|
||||
Description = "Random effect."
|
||||
SpawnRate = 0.5
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
BonusLuck = 0.05
|
||||
BonusLuck = 5
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_4oq2l")
|
||||
UsableItemTag = 18
|
||||
UsableItemTag = 20
|
||||
ElementalDamageType = 0
|
||||
Name = "Scripture Sign: Gospel of Dimension"
|
||||
Description = "Warps target to the exit. No effect on player if exit has not been found."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_axhfw")
|
||||
UsableItemTag = 17
|
||||
UsableItemTag = 19
|
||||
ElementalDamageType = 0
|
||||
Name = "Scripture Sign: Gospel of Paths"
|
||||
Description = "Teleports target to a random location."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_mnvt1")
|
||||
UsableItemTag = 20
|
||||
UsableItemTag = 22
|
||||
ElementalDamageType = 0
|
||||
Name = "Green Talisman"
|
||||
Description = "Permanently Increases Luck."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_tlglo")
|
||||
UsableItemTag = 23
|
||||
UsableItemTag = 25
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Grudge"
|
||||
Description = "Permanently Lowers Luck."
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://c3qkrtgmngetc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddw0tkd6bt1rx" path="res://src/items/effect/textures/Grudge.png" id="1_kik76"]
|
||||
[ext_resource type="Texture2D" uid="uid://ri5h1p4e10gl" path="res://src/items/effect/textures/Meltical Wave.png" id="1_kik76"]
|
||||
[ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_2sema"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_2sema")
|
||||
UsableItemTag = 28
|
||||
UsableItemTag = 29
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Meltical Wave"
|
||||
Description = "Melts all currently equipped items."
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cv8p0egs52jaq"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b4brs6e73yjlq" path="res://src/items/effect/textures/Green Talisman.png" id="1_4jur3"]
|
||||
[ext_resource type="Texture2D" uid="uid://6fcjbqispxwq" path="res://src/items/effect/textures/Red Talisman.png" id="1_4jur3"]
|
||||
[ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_as50m"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_as50m")
|
||||
UsableItemTag = 21
|
||||
UsableItemTag = 23
|
||||
ElementalDamageType = 0
|
||||
Name = "Red Talisman"
|
||||
Description = "Permanently Increases Attack by 1."
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_nyxl3")
|
||||
UsableItemTag = 13
|
||||
UsableItemTag = 14
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Regression"
|
||||
Description = "Lowers current Level by 1."
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://di2r6s4duri7g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://5w5hgs6gm032" path="res://src/items/effect/textures/Spellsign; Reprieval Wave.png" id="1_r2g4a"]
|
||||
[ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_rv4ut"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_rv4ut")
|
||||
UsableItemTag = 30
|
||||
ElementalDamageType = 0
|
||||
Name = "Scripture Sign: Reprieval Wave"
|
||||
Description = "Restores All Parameters."
|
||||
SpawnRate = 0.5
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
BonusLuck = 0
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
TelluricResistance = 0
|
||||
HydricResistance = 0
|
||||
IgneousResistance = 0
|
||||
FerrumResistance = 0
|
||||
HolyResistance = 0
|
||||
CurseResistance = 0
|
||||
ThrowSpeed = 12.0
|
||||
ThrowDamage = 0
|
||||
ItemTag = 0
|
||||
Texture = ExtResource("1_r2g4a")
|
||||
metadata/_custom_type_script = "uid://b5w4iw4iqmxtn"
|
||||
@@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="EffectItemStats" load_steps=3 format=3 uid="uid://cc5utcc7ge2xd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://borohnknxtl81" path="res://src/items/effect/textures/Rust Inducer.png" id="1_56ucr"]
|
||||
[ext_resource type="Script" uid="uid://b5w4iw4iqmxtn" path="res://src/items/effect/EffectItemStats.cs" id="2_4hxg1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_4hxg1")
|
||||
UsableItemTag = 12
|
||||
ElementalDamageType = 0
|
||||
Name = "Spell Sign: Rust Indicator"
|
||||
Description = "Lowers Currently Equipped Armor's Defense."
|
||||
SpawnRate = 0.5
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
BonusLuck = 5
|
||||
BonusHP = 0
|
||||
BonusVT = 0
|
||||
AeolicResistance = 0
|
||||
TelluricResistance = 0
|
||||
HydricResistance = 0
|
||||
IgneousResistance = 0
|
||||
FerrumResistance = 0
|
||||
HolyResistance = 0
|
||||
CurseResistance = 0
|
||||
ThrowSpeed = 12.0
|
||||
ThrowDamage = 5
|
||||
ItemTag = 0
|
||||
Texture = ExtResource("1_56ucr")
|
||||
metadata/_custom_type_script = "uid://b5w4iw4iqmxtn"
|
||||
BIN
Zennysoft.Game.Ma/src/items/effect/textures/Blue Talisman.png
Normal file
BIN
Zennysoft.Game.Ma/src/items/effect/textures/Blue Talisman.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bmsp3k1inb55m"
|
||||
path.bptc="res://.godot/imported/Blue Talisman.png-285c9b1bb181f7362a9c9ab7331979c4.bptc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/effect/textures/Blue Talisman.png"
|
||||
dest_files=["res://.godot/imported/Blue Talisman.png-285c9b1bb181f7362a9c9ab7331979c4.bptc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=true
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
@@ -29,6 +29,7 @@ collision_mask = 0
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.370004, 0)
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
texture_filter = 0
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ collision_mask = 0
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.272665, 0)
|
||||
layers = 5
|
||||
pixel_size = 0.05
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
double_sided = false
|
||||
alpha_antialiasing_mode = 1
|
||||
|
||||
@@ -39,6 +39,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.190116, 0)
|
||||
shape = SubResource("CapsuleShape3D_o8f22")
|
||||
|
||||
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
|
||||
pixel_size = 0.0075
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
render_priority = 100
|
||||
|
||||
@@ -31,6 +31,7 @@ shape = SubResource("BoxShape3D_03cqg")
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
texture_filter = 0
|
||||
render_priority = 100
|
||||
|
||||
@@ -35,6 +35,7 @@ shape = SubResource("SphereShape3D_xxdqr")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0)
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
texture_filter = 0
|
||||
texture = SubResource("ViewportTexture_xxdqr")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bg3654q6tmtbk"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bg3654q6tmtbk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bq8aaf1ae4afh" path="res://src/items/weapons/Weapon.cs" id="1_7pkyf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnkshsssabl0" path="res://src/items/weapons/textures/Air Sword.png" id="2_udu2u"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_1051i"]
|
||||
height = 0.725098
|
||||
@@ -28,8 +29,10 @@ collision_mask = 0
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.005
|
||||
billboard = 2
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_udu2u")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pickup"]
|
||||
shape = SubResource("CapsuleShape3D_wll7p")
|
||||
|
||||
Reference in New Issue
Block a user