Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

modify_scale becomes unremovable from the entity when updating #71

Open
JustCyra opened this issue Mar 7, 2024 · 2 comments
Open

modify_scale becomes unremovable from the entity when updating #71

JustCyra opened this issue Mar 7, 2024 · 2 comments
Labels
bug Something isn't working can't reproduce Issues that I cannot reproduce

Comments

@JustCyra
Copy link

JustCyra commented Mar 7, 2024

When a modify_scale power with a resource that is used as a modifier is updated every tick via apoli:action_over_time power for example, the power becomes unremovable via the /power remove command, only way to remove it is via /power clear @s command.
Error message printed in chat when attempting to: An unexpected error occurred trying to execute that command

I wasn't able to test if it is also unremovable when updating outside of the 1 tick example but if so that could be troublesome

Used power:

{
    "type": "apoli:multiple",
    "hidden": false,

    "resource": {
        "type": "apoli:resource",
        "min": 0,
        "max": 5000,
        "start_value": 5000,
        "hud_render": {
            "should_render": true
        }
    },
    "tick_resource":{
        "type": "apoli:action_over_time",
        "interval": 1,
        "condition": {
            "type": "apoli:resource",
            "resource": "*:*_resource",
            "comparison": "<",
            "compare_to": 5000
        },
        "entity_action": {
            "type": "apoli:change_resource",
            "resource": "*:*_resource",
            "operation": "add",
            "change": 1
        }
    },

	"scale_height": {
          "type": "apugli:modify_scale",
          "delay": 0,
          "scale_type": "pehkui:height",
          "modifier": {
              "operation": "multiply_base_multiplicative",
              "value": 0.3
          }
	},
	"scale_width": {
          "type": "apugli:modify_scale",
          "delay": 0,
          "scale_type": "pehkui:width",
          "modifier": {
              "operation": "multiply_base_multiplicative",
              "value": -0.2
          }
	},
	"scale_resource": {
          "type": "apugli:modify_scale",
          "delay": 0.0,
          "scale_type": "pehkui:width",
          "modifier": {
              "operation": "multiply_base_multiplicative",
              "value": 0.0,
              "resource": "*:*_resource",
              "modifier": {
                  "operation": "multiply_total_multiplicative",
                  "value": -0.99995
              }
          }
	}
}
@MerchantPug
Copy link
Owner

Is there a log associated with the command? Just wondering.

@JustCyra
Copy link
Author

JustCyra commented Mar 7, 2024

Huh oddly enough I am unable to reproduce this bug even with the exact same setup I had...

@MerchantPug MerchantPug added bug Something isn't working can't reproduce Issues that I cannot reproduce labels Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working can't reproduce Issues that I cannot reproduce
Projects
None yet
Development

No branches or pull requests

2 participants