Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stun and knockback for player #441

Merged
merged 30 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
27e695d
Move mob scripts
snipercup Nov 3, 2024
b1a96e0
Move states to state machine
snipercup Nov 3, 2024
f711048
Add comments
snipercup Nov 5, 2024
4fad2b1
Refactor
snipercup Nov 5, 2024
4049d80
Add dash move
snipercup Nov 5, 2024
95d819f
Add dash to mobeditor
snipercup Nov 6, 2024
2a7efa3
Give dash to mob
snipercup Nov 6, 2024
0236939
Correction of dash
snipercup Nov 6, 2024
3e5afad
Add mobs to city square
snipercup Nov 6, 2024
46f7d93
Hide content lists
snipercup Nov 6, 2024
f7919be
Save content list visibility state
snipercup Nov 6, 2024
b520703
Add drain attributes to editor
snipercup Nov 8, 2024
f51333f
Add depleting effect to data
snipercup Nov 9, 2024
38c664b
Add poison attribute
snipercup Nov 9, 2024
0047b2b
Add drain to playerattribute
snipercup Nov 9, 2024
814b5b1
Deplete other attributes
snipercup Nov 9, 2024
70ff42b
Give poison attack
snipercup Nov 9, 2024
e58a024
Add maxed effect
snipercup Nov 9, 2024
fd67c25
player dies full of poison
snipercup Nov 9, 2024
0ab6c77
Add antidote
snipercup Nov 10, 2024
30e02e3
Mob editor extra attributes
snipercup Nov 10, 2024
ff0fa9b
Restructure attributes
snipercup Nov 10, 2024
1d25642
Support both grids
snipercup Nov 10, 2024
7430708
Add damage spinbox
snipercup Nov 10, 2024
3a64b21
replace melee damage
snipercup Nov 11, 2024
89d9d89
Cooldown and knockback
snipercup Nov 11, 2024
b691fb3
Implement knockback
snipercup Nov 11, 2024
a02ee65
Add stun and knockback
snipercup Nov 11, 2024
2dce25a
Implement mob attack cooldown
snipercup Nov 11, 2024
161e562
give stun attack to drone
snipercup Nov 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions ItemProtosets.tres
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ json_data = "[
\"mob_loot\",
\"destroyed_furniture_medium\",
\"disassembled_furniture_medium\",
\"test_items\",
\"debris_urban\"
],
\"items\": [
Expand Down Expand Up @@ -3041,8 +3040,7 @@ json_data = "[
\"core\": {
\"itemgroups\": [
\"tree_destroyed\",
\"generic_forest_finds\",
\"test_items\"
\"generic_forest_finds\"
],
\"items\": [
\"stone_spear\"
Expand All @@ -3067,8 +3065,7 @@ json_data = "[
\"references\": {
\"core\": {
\"itemgroups\": [
\"generic_field_finds\",
\"test_items\"
\"generic_field_finds\"
],
\"items\": [
\"stone_spear\"
Expand Down Expand Up @@ -3299,5 +3296,35 @@ json_data = "[
\"two_handed\": false,
\"volume\": 150,
\"weight\": 5
},
{
\"Medical\": {
\"amount\": -50,
\"attributes\": [
{
\"amount\": 0,
\"id\": \"poison\"
}
],
\"order\": \"Lowest first\"
},
\"description\": \"A small bottle that contains antidote. It helps to recover from poison.\",
\"id\": \"bottle_antidote\",
\"image\": \"./Mods/Core/Items/antidote_32.png\",
\"max_stack_size\": 5,
\"name\": \"Bottle of antidote\",
\"references\": {
\"core\": {
\"itemgroups\": [
\"test_items\",
\"kitchen_cupboard\"
]
}
},
\"sprite\": \"antidote_32.png\",
\"stack_size\": 1,
\"two_handed\": false,
\"volume\": 5,
\"weight\": 0.1
}
]"
20 changes: 7 additions & 13 deletions Mods/Core/Itemgroups/Itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
"max": 1,
"min": 1,
"probability": 20
},
{
"id": "bottle_antidote",
"max": 1,
"min": 1,
"probability": 20
}
],
"mode": "Collection",
Expand Down Expand Up @@ -1055,22 +1061,10 @@
"probability": 100
},
{
"id": "long_stick",
"max": 1,
"min": 1,
"probability": 100
},
{
"id": "sharp_stone",
"id": "bottle_antidote",
"max": 1,
"min": 1,
"probability": 100
},
{
"id": "steel_scrap",
"max": 22,
"min": 22,
"probability": 100
}
],
"mode": "Collection",
Expand Down
37 changes: 32 additions & 5 deletions Mods/Core/Items/Items.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"mob_loot",
"destroyed_furniture_medium",
"disassembled_furniture_medium",
"test_items",
"debris_urban"
],
"items": [
Expand Down Expand Up @@ -3035,8 +3034,7 @@
"core": {
"itemgroups": [
"tree_destroyed",
"generic_forest_finds",
"test_items"
"generic_forest_finds"
],
"items": [
"stone_spear"
Expand All @@ -3061,8 +3059,7 @@
"references": {
"core": {
"itemgroups": [
"generic_field_finds",
"test_items"
"generic_field_finds"
],
"items": [
"stone_spear"
Expand Down Expand Up @@ -3293,5 +3290,35 @@
"two_handed": false,
"volume": 150,
"weight": 5
},
{
"Medical": {
"amount": -50,
"attributes": [
{
"amount": 0,
"id": "poison"
}
],
"order": "Lowest first"
},
"description": "A small bottle that contains antidote. It helps to recover from poison.",
"id": "bottle_antidote",
"image": "./Mods/Core/Items/antidote_32.png",
"max_stack_size": 5,
"name": "Bottle of antidote",
"references": {
"core": {
"itemgroups": [
"test_items",
"kitchen_cupboard"
]
}
},
"sprite": "antidote_32.png",
"stack_size": 1,
"two_handed": false,
"volume": 5,
"weight": 0.1
}
]
Binary file added Mods/Core/Items/antidote_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

importer="texture"
type="CompressedTexture2D"
uid="uid://cxs3y5a4cpiiw"
path="res://.godot/imported/iron_stalker_64.png-10d738756de49dcfb1f8e658ca28a50e.ctex"
uid="uid://dfaljl61p1krn"
path="res://.godot/imported/antidote_32.png-843f603b8918b33ff96475b54885794d.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Mods/Core/Mobs/iron_stalker_64.png"
dest_files=["res://.godot/imported/iron_stalker_64.png-10d738756de49dcfb1f8e658ca28a50e.ctex"]
source_file="res://Mods/Core/Items/antidote_32.png"
dest_files=["res://.godot/imported/antidote_32.png-843f603b8918b33ff96475b54885794d.ctex"]

[params]

Expand Down
Loading