Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

FlowerBuff

An asset by BTOTHER
The page banner background of a mountain and forest
FlowerBuff hero image

Quick Information

0 ratings
FlowerBuff icon image
BTOTHER
FlowerBuff

FlowerBuff is a powerful, simple and easy to use Buff system plugin for Godot.Change Log:v0.0.3:Improving performancev0.0.2- Add a signal to be emitted when the computation is complete: FlowerBuffManager.compute_ok- Fixed: automatically call compute() after removing buff (after remove_buff())

Supported Engine Version
4.1
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

FlowerBuff

English

正式发布!当前版本:v0.0.3!

README

🤔这是什么?🤔

FlowerBuff 是一个为 Godot 开发的强大、简单、易用的 Buff 系统插件。

✨特性✨

  • 支持自定义 buff 逻辑
  • 自动处理 buff 应用、持续、冷却等状态
  • 简单的 API 使用
  • 良好的扩展性

🫡安装🫡

  1. clone 本项目
  2. 将 addons/FlowerBuff 放进你的项目中的 addons 文件夹
  3. 重新加载项目

需要 Godot 4.x 版本。

⏱️快速上手⏱️

创建 buff 类

新建一个继承自 FlowerBaseBuff 的脚本:

class_name SimpleBuff 
extends FlowerBaseBuff

func take_effect():
   print("Buff启动")

func un_take_effect():
   print("Buff结束")

应用 buff

在场景中添加 FlowerBuffManager 节点,设置 target 属性,然后在 buff_list 中添加自定义的 buff:

# 使用代码
FlowerBuffManager.add_buff(_buff:FlowerBaseBuff)

调用 FlowerBuffManager.compute() 来处理 buff 逻辑。

📃文档📃

你可以在 这里 查看更多文档。

🫥更新日志🫥

v 0.0.3:

  • 添加 add_buff_list()remove_buff_list()

v 0.0.2:

  • 增加计算完成信号:FlowerBuffManager.compute_ok

  • 修改:移除 buff 后自动调用 compute()remove_buff() 之后)

FlowerBuff is a powerful, simple and easy to use Buff system plugin for Godot.

Change Log:
v0.0.3:
Improving performance
v0.0.2
- Add a signal to be emitted when the computation is complete: FlowerBuffManager.compute_ok
- Fixed: automatically call compute() after removing buff (after remove_buff())

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
FlowerBuff icon image
BTOTHER
FlowerBuff

FlowerBuff is a powerful, simple and easy to use Buff system plugin for Godot.Change Log:v0.0.3:Improving performancev0.0.2- Add a signal to be emitted when the computation is complete: FlowerBuffManager.compute_ok- Fixed: automatically call compute() after removing buff (after remove_buff())

Supported Engine Version
4.1
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers