[s] Martial arts granted by equipped items no longer persist through cloning. (#22684)

* Martial arts no longer persist through cloning

* Remove unnessecary var declarations

* Combo counter

---------

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-10-03 08:47:19 +02:00
committed by GitHub
co-authored by Adrer
parent 89214a1f59
commit 2672d02eb3
7 changed files with 38 additions and 16 deletions
+5 -1
View File
@@ -155,7 +155,7 @@
slowdown_active = SHOES_SLOWDOWN
magboot_state = "gravboots"
magpulse_name = "micro gravitational traction system"
var/datum/martial_art/grav_stomp/style = new //Only works with core and cell installed.
var/datum/martial_art/grav_stomp/style //Only works with core and cell installed.
var/jumpdistance = 5
var/jumpspeed = 3
var/recharging_rate = 6 SECONDS
@@ -165,6 +165,10 @@
var/obj/item/assembly/signaler/anomaly/grav/core = null
var/obj/item/stock_parts/cell/cell = null
/obj/item/clothing/shoes/magboots/gravity/Initialize()
. = ..()
style = new()
/obj/item/clothing/shoes/magboots/gravity/Destroy()
QDEL_NULL(style)
QDEL_NULL(cell)