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

Night vision toggling #151

Merged
merged 5 commits into from
Nov 1, 2024
Merged

Conversation

pheenty
Copy link
Contributor

@pheenty pheenty commented Oct 21, 2024

О PR

Добавляет возможность переключения прибора ночного видения и очков ниндзя.

Почему / Баланс

Частично фиксит #49.
Тенеморфу добавлю аналогичное в #138
Нужно, чтобы дать ночное зрение дракону и карпам по итогам https://discord.com/channels/1111698541841240164/1297618376998387912

Медиа

image
image

  • Я добавил к этому PR скриншоты/видео, демонстрирующие его изменения в игре, или этот PR не требует демонстрации в игре

Changelog

🆑 pheenty

  • add: Прибор ночного видения теперь можно переключать.

Comment on lines 18 to 21
[ViewVariables(VVAccess.ReadWrite), DataField("playSound"), AutoNetworkedField]
public bool PlaySound { get; set; } = true; // For dragon
[DataField("toggleOnSound")]
public SoundSpecifier ToggleOnSound = new SoundPathSpecifier("/Audio/Stories/Misc/night_vision.ogg");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[ViewVariables(VVAccess.ReadWrite), DataField("playSound"), AutoNetworkedField]
public bool PlaySound { get; set; } = true; // For dragon
[DataField("toggleOnSound")]
public SoundSpecifier ToggleOnSound = new SoundPathSpecifier("/Audio/Stories/Misc/night_vision.ogg");
[DataField("toggleOnSound")]
public SoundSpecifier? ToggleOnSound = new SoundPathSpecifier("/Audio/Stories/Misc/night_vision.ogg");

И проверку на null в коде, вместо еще одной переменной.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот так?

Copy link
Contributor

@doublechest0 doublechest0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переработай всю систему на использование ItemToggle

@pheenty
Copy link
Contributor Author

pheenty commented Oct 25, 2024

Переработай всю систему на использование ItemToggle

А для дракона тогда как?

@doublechest0 doublechest0 merged commit 3526564 into Space-Stories:master Nov 1, 2024
9 of 12 checks passed
@pheenty pheenty deleted the nv_tv_switching branch November 1, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants